mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 15:27:55 -04:00
Remove AppCompat crash handling
The linked issue has been fixed
This commit is contained in:
parent
214cb18ac0
commit
3ec2d48a38
@ -17,8 +17,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.kiwix.kiwixmobile.core.base
|
package org.kiwix.kiwixmobile.core.base
|
||||||
|
|
||||||
import android.content.res.Configuration
|
|
||||||
import android.os.Build
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import androidx.annotation.LayoutRes
|
import androidx.annotation.LayoutRes
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
@ -50,16 +48,6 @@ abstract class BaseActivity : AppCompatActivity() {
|
|||||||
unbinder = ButterKnife.bind(this)
|
unbinder = ButterKnife.bind(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO https://issuetracker.google.com/issues/141132133 remove this once appcompat has been fixed
|
|
||||||
override fun applyOverrideConfiguration(overrideConfiguration: Configuration?) {
|
|
||||||
if (Build.VERSION.SDK_INT in Build.VERSION_CODES.LOLLIPOP..Build.VERSION_CODES.N_MR1 &&
|
|
||||||
(resources.configuration.uiMode == applicationContext.resources.configuration.uiMode)
|
|
||||||
) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
super.applyOverrideConfiguration(overrideConfiguration)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
unbinder?.unbind()
|
unbinder?.unbind()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user