Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile
Commits
cf4b3140
Commit
cf4b3140
authored
Sep 15, 2020
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不在logoActivity申请权限
parent
9c7bb047
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
mobile/src/main/java/cn/garymb/ygomobile/ui/activities/LogoActivity.java
.../java/cn/garymb/ygomobile/ui/activities/LogoActivity.java
+7
-15
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/activities/LogoActivity.java
View file @
cf4b3140
package
cn.garymb.ygomobile.ui.activities
;
package
cn.garymb.ygomobile.ui.activities
;
import
android.app.Activity
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.os.Build
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Bundle
;
...
@@ -12,7 +13,7 @@ import cn.garymb.ygomobile.YGOStarter;
...
@@ -12,7 +13,7 @@ import cn.garymb.ygomobile.YGOStarter;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.ui.home.MainActivity
;
import
cn.garymb.ygomobile.ui.home.MainActivity
;
public
class
LogoActivity
extends
Base
Activity
{
public
class
LogoActivity
extends
Activity
{
Handler
handler
;
Handler
handler
;
Runnable
runnable
;
Runnable
runnable
;
...
@@ -25,20 +26,6 @@ public class LogoActivity extends BaseActivity {
...
@@ -25,20 +26,6 @@ public class LogoActivity extends BaseActivity {
YGOStarter
.
startGame
(
this
,
null
);
YGOStarter
.
startGame
(
this
,
null
);
finish
();
finish
();
return
;
return
;
}
if
(!
isTaskRoot
())
{
finish
();
return
;
}
}
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
Intent
data
)
{
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
// 拒绝时, 关闭页面, 缺少主要权限, 无法运行
if
(
requestCode
==
REQUEST_PERMISSIONS
&&
resultCode
==
PermissionsActivity
.
PERMISSIONS_DENIED
)
{
finish
();
}
else
{
}
else
{
handler
=
new
Handler
();
handler
=
new
Handler
();
runnable
=
new
Runnable
()
{
runnable
=
new
Runnable
()
{
...
@@ -51,6 +38,11 @@ public class LogoActivity extends BaseActivity {
...
@@ -51,6 +38,11 @@ public class LogoActivity extends BaseActivity {
handler
.
postDelayed
(
runnable
,
1000
);
handler
.
postDelayed
(
runnable
,
1000
);
Toast
.
makeText
(
LogoActivity
.
this
,
R
.
string
.
logo_text
,
Toast
.
LENGTH_SHORT
).
show
();
Toast
.
makeText
(
LogoActivity
.
this
,
R
.
string
.
logo_text
,
Toast
.
LENGTH_SHORT
).
show
();
}
}
if
(!
isTaskRoot
())
{
finish
();
return
;
}
}
}
protected
void
hideBottomUIMenu
()
{
protected
void
hideBottomUIMenu
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment