summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-10-15 09:35:51 +0400
committerAndrew Dolgov <[email protected]>2014-10-15 09:35:51 +0400
commit179296966f8d7db0a31e32254ff0effd0a51bbea (patch)
tree7c48fe5bb51d55ab821ee413e69f3fadd7f11e93 /src
parent4384b802c88293568fa72e128b3b03725c6631cb (diff)
use solid black background in dark theme
add option to keep screen awake while reading add play store feature graphic bump version
Diffstat (limited to 'src')
-rw-r--r--src/org/fox/ttcomics/ViewComicActivity.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/fox/ttcomics/ViewComicActivity.java b/src/org/fox/ttcomics/ViewComicActivity.java
index 9a9ce89..aea6cc6 100644
--- a/src/org/fox/ttcomics/ViewComicActivity.java
+++ b/src/org/fox/ttcomics/ViewComicActivity.java
@@ -46,6 +46,9 @@ public class ViewComicActivity extends CommonActivity {
setTheme(m_prefs.getBoolean("use_dark_theme", false) ? R.style.DarkTheme : R.style.AppTheme);
requestWindowFeature(Window.FEATURE_PROGRESS);
+
+ if (m_prefs.getBoolean("prevent_screen_sleep", false))
+ getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
setContentView(R.layout.activity_view_comic);
@@ -74,7 +77,7 @@ public class ViewComicActivity extends CommonActivity {
} */
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT && m_prefs.getBoolean("use_dark_theme", false)) {
- getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.BLACK));
+ getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.BLACK));
}
}