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
5458e02f
Commit
5458e02f
authored
Dec 18, 2018
by
feihuaduo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复资源不复制的bug
parent
42b4e719
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
mobile/src/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
...c/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
+4
-2
mobile/src/main/java/cn/garymb/ygomobile/utils/PermissionUtil.java
...c/main/java/cn/garymb/ygomobile/utils/PermissionUtil.java
+2
-2
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/home/MainActivity.java
View file @
5458e02f
...
@@ -57,6 +57,8 @@ public class MainActivity extends HomeActivity{
...
@@ -57,6 +57,8 @@ public class MainActivity extends HomeActivity{
mImageUpdater
=
new
ImageUpdater
(
this
);
mImageUpdater
=
new
ImageUpdater
(
this
);
//动态权限
//动态权限
// ActivityCompat.requestPermissions(this, PERMISSIONS, 0);
// ActivityCompat.requestPermissions(this, PERMISSIONS, 0);
//资源复制
checkRes
();
}
}
@SuppressLint
({
"StringFormatMatches"
,
"StringFormatInvalid"
})
@SuppressLint
({
"StringFormatMatches"
,
"StringFormatInvalid"
})
...
@@ -69,8 +71,7 @@ public class MainActivity extends HomeActivity{
...
@@ -69,8 +71,7 @@ public class MainActivity extends HomeActivity{
// break;
// break;
// }
// }
// }
// }
//资源复制
checkRes
();
}
}
private
void
checkRes
()
{
private
void
checkRes
()
{
...
@@ -126,6 +127,7 @@ public class MainActivity extends HomeActivity{
...
@@ -126,6 +127,7 @@ public class MainActivity extends HomeActivity{
protected
void
onDestroy
()
{
protected
void
onDestroy
()
{
YGOStarter
.
onDestroy
(
this
);
YGOStarter
.
onDestroy
(
this
);
super
.
onDestroy
();
super
.
onDestroy
();
if
(
mResCheckTask
!=
null
)
mResCheckTask
.
unregisterMReceiver
();
mResCheckTask
.
unregisterMReceiver
();
}
}
...
...
mobile/src/main/java/cn/garymb/ygomobile/utils/PermissionUtil.java
View file @
5458e02f
...
@@ -46,7 +46,7 @@ public class PermissionUtil {
...
@@ -46,7 +46,7 @@ public class PermissionUtil {
dialog
.
dismiss
();
dialog
.
dismiss
();
}
}
});
});
dialog
.
show
();
//
dialog.show();
return
dialog
;
return
dialog
;
}
}
return
null
;
return
null
;
...
@@ -72,7 +72,7 @@ public class PermissionUtil {
...
@@ -72,7 +72,7 @@ public class PermissionUtil {
dialog
.
setOnDismissListener
(
new
DialogInterface
.
OnDismissListener
()
{
dialog
.
setOnDismissListener
(
new
DialogInterface
.
OnDismissListener
()
{
@Override
@Override
public
void
onDismiss
(
DialogInterface
dialogInterface
)
{
public
void
onDismiss
(
DialogInterface
dialogInterface
)
{
isNotificationPermission
(
context
);
isNotificationPermission
(
context
)
.
show
()
;
}
}
});
});
dialog
.
setRightButtonListener
(
new
DialogInterface
.
OnClickListener
()
{
dialog
.
setRightButtonListener
(
new
DialogInterface
.
OnClickListener
()
{
...
...
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