1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +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:
Vasiliy Bout 2010-07-21 12:26:20 +00:00
parent bba485307f
commit c363a06058
2 changed files with 11 additions and 1 deletions

View file

@ -95,7 +95,9 @@ public class PreferenceActivity extends ZLPreferenceActivity {
);
lookNFeelCategory.addOption(ZLAndroidApplication.Instance().AutoOrientationOption, "autoOrientation");
if (!ZLAndroidApplication.Instance().isAlwaysShowStatusBar()) {
lookNFeelCategory.addOption(ZLAndroidApplication.Instance().ShowStatusBarOption, "showStatusBar");
}
lookNFeelCategory.addOption(ZLAndroidApplication.Instance().DontTurnScreenOffOption, "dontTurnScreenOff");
lookNFeelCategory.addPreference(new ScrollbarTypePreference(this, lookNFeelCategory.Resource, "scrollbarType"));

View file

@ -22,6 +22,7 @@ package org.geometerplus.zlibrary.ui.android.library;
import java.util.HashMap;
import android.app.Application;
import android.os.Build;
import org.geometerplus.zlibrary.core.options.ZLBooleanOption;
import org.geometerplus.zlibrary.core.sqliteconfig.ZLSQLiteConfig;
@ -45,11 +46,18 @@ public class ZLAndroidApplication extends Application {
ourApplication = this;
}
public boolean isAlwaysShowStatusBar() {
return Build.DISPLAY != null && Build.DISPLAY.contains("simenxie");
}
ZLAndroidApplicationWindow myMainWindow;
@Override
public void onCreate() {
super.onCreate();
if (isAlwaysShowStatusBar()) {
ShowStatusBarOption.setValue(true);
}
new ZLSQLiteConfig(this);
new ZLAndroidImageManager();
new ZLAndroidDialogManager();