use the new way of using transparent top screens

This commit is contained in:
tibbi 2020-11-01 19:20:05 +01:00
parent 681ea5a136
commit f7bf678588
3 changed files with 3 additions and 9 deletions

View File

@ -57,7 +57,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.31.11'
implementation 'com.simplemobiletools:commons:5.31.18'
implementation 'joda-time:joda-time:2.10.1'
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5'
implementation 'com.github.tibbi:IndicatorFastScroll:08f512858a'

View File

@ -62,7 +62,7 @@ class EditContactActivity : ContactActivity() {
private var originalContactSource = ""
override fun onCreate(savedInstanceState: Bundle?) {
useDynamicTheme = false
showTransparentTop = true
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_edit_contact)
@ -98,11 +98,6 @@ class EditContactActivity : ContactActivity() {
}
}
override fun onResume() {
super.onResume()
window.statusBarColor = Color.TRANSPARENT
}
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
super.onActivityResult(requestCode, resultCode, resultData)
if (resultCode == RESULT_OK) {

View File

@ -42,7 +42,7 @@ class ViewContactActivity : ContactActivity() {
private val COMPARABLE_PHONE_NUMBER_LENGTH = 9
override fun onCreate(savedInstanceState: Bundle?) {
useDynamicTheme = false
showTransparentTop = true
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_view_contact)
@ -58,7 +58,6 @@ class ViewContactActivity : ContactActivity() {
override fun onResume() {
super.onResume()
window.statusBarColor = Color.TRANSPARENT
isViewIntent = intent.action == ContactsContract.QuickContact.ACTION_QUICK_CONTACT || intent.action == Intent.ACTION_VIEW
if (isViewIntent) {
handlePermission(PERMISSION_READ_CONTACTS) {