Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Commit

Permalink
navigationBarColor follow theme
Browse files Browse the repository at this point in the history
  • Loading branch information
itning committed Aug 27, 2019
1 parent 204440b commit dfc0927
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit dfc0927

Please sign in to comment.