diff --git a/app/build.gradle b/app/build.gradle index c4b721e..c816c7b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId "top.itning.yunshuclassschedule" minSdkVersion 21 targetSdkVersion 28 - versionCode 63 - versionName "2.5.7" + versionCode 64 + versionName "2.5.8" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" javaCompileOptions { annotationProcessorOptions { diff --git a/app/src/main/java/top/itning/yunshuclassschedule/ui/activity/MainActivity.kt b/app/src/main/java/top/itning/yunshuclassschedule/ui/activity/MainActivity.kt index 65944b2..8c9aadc 100644 --- a/app/src/main/java/top/itning/yunshuclassschedule/ui/activity/MainActivity.kt +++ b/app/src/main/java/top/itning/yunshuclassschedule/ui/activity/MainActivity.kt @@ -173,26 +173,6 @@ class MainActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedList * 新用户引导 */ private fun newUserStudy() { - if (App.sharedPreferences.getBoolean(ConstantPool.Str.ADD_GROUP_DIALOG_STATE.get(), true)) { - AlertDialog.Builder(this) - .setTitle("建议") - .setMessage("加入反馈交流群?") - .setPositiveButton("立即加入") { _, _ -> - val intent = Intent() - intent.data = Uri.parse("mqqopensdkapi://bizAgent/qm/qr?url=http%3A%2F%2Fqm.qq.com%2Fcgi-bin%2Fqm%2Fqr%3Ffrom%3Dapp%26p%3Dandroid%26k%3DHh8H9ozRSxWd6evU4lUK8fe-4Lfnshg4") - try { - startActivity(intent) - } catch (e: Exception) { - Toast.makeText(this, "未安装手Q或安装的版本不支持", Toast.LENGTH_LONG).show() - } finally { - App.sharedPreferences.edit().putBoolean(ConstantPool.Str.ADD_GROUP_DIALOG_STATE.get(), false).apply() - } - } - .setNegativeButton("不再提示") { _, _ -> - App.sharedPreferences.edit().putBoolean(ConstantPool.Str.ADD_GROUP_DIALOG_STATE.get(), false).apply() - } - .show() - } if (App.sharedPreferences.getBoolean(ConstantPool.Str.NEW_USER_IS_STUDY.get(), false)) { return } diff --git a/app/src/main/java/top/itning/yunshuclassschedule/util/ThemeChangeUtil.kt b/app/src/main/java/top/itning/yunshuclassschedule/util/ThemeChangeUtil.kt index 16bc36b..bbb3679 100644 --- a/app/src/main/java/top/itning/yunshuclassschedule/util/ThemeChangeUtil.kt +++ b/app/src/main/java/top/itning/yunshuclassschedule/util/ThemeChangeUtil.kt @@ -93,6 +93,7 @@ object ThemeChangeUtil { val window = activity.window //设置状态栏透明 window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS) + window.navigationBarColor = ContextCompat.getColor(activity, R.color.nightThemeColorPrimary) } } diff --git a/build.gradle b/build.gradle index b457400..46bb855 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.3.41' + ext.kotlin_version = '1.3.50' ext.greendao_version = '3.2.2' repositories {