Commit 7e994b2a authored by wanglei's avatar wanglei

...

parent 3d004dc9
......@@ -130,14 +130,15 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
showRateDialog()
}
if (mainShowCount >= 2) {
if (mainShowCount >= 2 && showPermissionDialog) {
val appName = this.resources.getString(R.string.app_name)
// 在Activity中调用创建快捷方式的方法
ShortcutUtils.requestCreateShortcut(
this, "my_shortcut_id", "My Shortcut", "Open My App quickly",
this, "my_shortcut_id", "$appName Shortcut", "Open My App quickly",
Splash2Activity::class.java, R.mipmap.logo
)
}
if (mainShowCount >= 3) {
if (mainShowCount >= 3&& showPermissionDialog) {
showRateDialog()
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment