mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Possible fix for Android 4.X crash
This commit is contained in:
parent
21a16f1df6
commit
e726689ce3
@ -20,14 +20,13 @@
|
||||
package org.kiwix.kiwixmobile.utils;
|
||||
|
||||
import org.kiwix.kiwixmobile.KiwixMobileActivity;
|
||||
import org.kiwix.kiwixmobile.R;
|
||||
|
||||
public class StyleUtils {
|
||||
public static int dialogStyle() {
|
||||
if (KiwixMobileActivity.nightMode) {
|
||||
return android.R.style.Theme_Material_Dialog;
|
||||
return android.R.style.Theme_Holo_Dialog;
|
||||
} else {
|
||||
return android.R.style.Theme_Material_Light_Dialog;
|
||||
return android.support.v7.appcompat.R.style.Theme_AppCompat_Light_Dialog_Alert;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user