mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 19:42:17 +02:00
Always show status bar on SimenXie devices
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@1613 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
bba485307f
commit
c363a06058
2 changed files with 11 additions and 1 deletions
|
@ -95,7 +95,9 @@ public class PreferenceActivity extends ZLPreferenceActivity {
|
||||||
);
|
);
|
||||||
|
|
||||||
lookNFeelCategory.addOption(ZLAndroidApplication.Instance().AutoOrientationOption, "autoOrientation");
|
lookNFeelCategory.addOption(ZLAndroidApplication.Instance().AutoOrientationOption, "autoOrientation");
|
||||||
|
if (!ZLAndroidApplication.Instance().isAlwaysShowStatusBar()) {
|
||||||
lookNFeelCategory.addOption(ZLAndroidApplication.Instance().ShowStatusBarOption, "showStatusBar");
|
lookNFeelCategory.addOption(ZLAndroidApplication.Instance().ShowStatusBarOption, "showStatusBar");
|
||||||
|
}
|
||||||
lookNFeelCategory.addOption(ZLAndroidApplication.Instance().DontTurnScreenOffOption, "dontTurnScreenOff");
|
lookNFeelCategory.addOption(ZLAndroidApplication.Instance().DontTurnScreenOffOption, "dontTurnScreenOff");
|
||||||
lookNFeelCategory.addPreference(new ScrollbarTypePreference(this, lookNFeelCategory.Resource, "scrollbarType"));
|
lookNFeelCategory.addPreference(new ScrollbarTypePreference(this, lookNFeelCategory.Resource, "scrollbarType"));
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ package org.geometerplus.zlibrary.ui.android.library;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
import android.app.Application;
|
import android.app.Application;
|
||||||
|
import android.os.Build;
|
||||||
|
|
||||||
import org.geometerplus.zlibrary.core.options.ZLBooleanOption;
|
import org.geometerplus.zlibrary.core.options.ZLBooleanOption;
|
||||||
import org.geometerplus.zlibrary.core.sqliteconfig.ZLSQLiteConfig;
|
import org.geometerplus.zlibrary.core.sqliteconfig.ZLSQLiteConfig;
|
||||||
|
@ -45,11 +46,18 @@ public class ZLAndroidApplication extends Application {
|
||||||
ourApplication = this;
|
ourApplication = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isAlwaysShowStatusBar() {
|
||||||
|
return Build.DISPLAY != null && Build.DISPLAY.contains("simenxie");
|
||||||
|
}
|
||||||
|
|
||||||
ZLAndroidApplicationWindow myMainWindow;
|
ZLAndroidApplicationWindow myMainWindow;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
|
if (isAlwaysShowStatusBar()) {
|
||||||
|
ShowStatusBarOption.setValue(true);
|
||||||
|
}
|
||||||
new ZLSQLiteConfig(this);
|
new ZLSQLiteConfig(this);
|
||||||
new ZLAndroidImageManager();
|
new ZLAndroidImageManager();
|
||||||
new ZLAndroidDialogManager();
|
new ZLAndroidDialogManager();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue