From 179296966f8d7db0a31e32254ff0effd0a51bbea Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 15 Oct 2014 09:35:51 +0400 Subject: use solid black background in dark theme add option to keep screen awake while reading add play store feature graphic bump version --- src/org/fox/ttcomics/ViewComicActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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)); } } -- cgit v1.2.3