diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt index e43b179a..3ede526f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt @@ -16,6 +16,7 @@ import android.provider.MediaStore import android.telephony.PhoneNumberUtils import android.view.View import android.view.ViewGroup +import android.view.WindowInsetsController import android.view.WindowManager import android.widget.EditText import android.widget.ImageView @@ -104,6 +105,10 @@ class EditContactActivity : ContactActivity() { } else { initContact() } + + if (isRPlus()) { + window.insetsController?.setSystemBarsAppearance(0, WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS) + } } override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) { diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt index 5e2ca888..faded3f9 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt @@ -9,6 +9,7 @@ import android.net.Uri import android.os.Bundle import android.provider.ContactsContract import android.view.View +import android.view.WindowInsetsController import android.view.WindowManager import android.widget.RelativeLayout import com.bumptech.glide.Glide @@ -59,6 +60,10 @@ class ViewContactActivity : ContactActivity() { showFields = config.showContactFields contact_wrapper.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN setupMenu() + + if (isRPlus()) { + window.insetsController?.setSystemBarsAppearance(0, WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS) + } } override fun onResume() {