diff options
author | Andrew Dolgov <[email protected]> | 2013-11-28 23:09:09 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-11-28 23:09:09 +0400 |
commit | fd396785011855d62e60bc9e2b77d9f3c3f8d984 (patch) | |
tree | 014b50a8c65bfb624da5ff51260086c4af2f2d8b /src/org | |
parent | e36580667c6d6a4458ef46cc4dc6b753a39472f2 (diff) |
add workaround for actionbar being transparent on dark theme which
looked ugly on kitkat fullscreen mode
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/fox/ttcomics/ViewComicActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/org/fox/ttcomics/ViewComicActivity.java b/src/org/fox/ttcomics/ViewComicActivity.java index 3b8f8c9..c8b1999 100644 --- a/src/org/fox/ttcomics/ViewComicActivity.java +++ b/src/org/fox/ttcomics/ViewComicActivity.java @@ -14,6 +14,8 @@ import android.content.Intent; import android.content.SharedPreferences;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
+import android.graphics.Color;
+import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
@@ -70,6 +72,10 @@ public class ViewComicActivity extends CommonActivity { //getSupportActionBar().hide();
} */
+
+ 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));
+ }
}
@Override
|