mirror of
				https://github.com/SimpleMobileTools/Simple-Contacts.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	use the new way of using transparent top screens
This commit is contained in:
		@@ -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'
 | 
			
		||||
 
 | 
			
		||||
@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user