Skip to content

Commit 1445aea

Browse files
committed
修复 隐藏状态栏失效
1 parent 05da117 commit 1445aea

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
44
apply plugin: 'kotlin-kapt'
5-
65
android {
76
signingConfigs {
87
release {
@@ -50,7 +49,7 @@ dependencies {
5049
implementation 'androidx.core:core-ktx:1.1.0'
5150
implementation 'com.makeramen:roundedimageview:2.3.0'
5251
implementation 'com.github.bumptech.glide:glide:4.10.0'
53-
annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0'
52+
kapt 'com.github.bumptech.glide:compiler:4.10.0'
5453
implementation 'jp.wasabeef:glide-transformations:4.0.1'
5554
implementation 'com.squareup.retrofit2:retrofit:2.7.0'
5655
implementation 'com.squareup.okhttp3:logging-interceptor:4.2.2'

kotlin_arch/src/main/java/com/czq/kotlin_arch/basePage/base/BaseActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract class BaseActivity<T : IBasePrensenter> : AppCompatActivity(), IBaseVie
2424
override fun onCreate(savedInstanceState: Bundle?) {
2525
super.onCreate(savedInstanceState)
2626
if (!needTitle()) {
27-
requestWindowFeature(Window.FEATURE_NO_TITLE)
27+
supportActionBar?.hide()
2828
} else {
2929
supportActionBar?.setDisplayHomeAsUpEnabled(true)
3030
}

0 commit comments

Comments
 (0)