aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-08-12 22:16:29 -0700
committerScott Jackson <daneren2005@gmail.com>2015-08-12 22:16:29 -0700
commit3546ef68b6b0e34537802fa44f4fe5fc68623504 (patch)
treefded4a12b4b7e8475e373b51e35d50fe03bfd890 /app/src
parent9625ed087aa3aa75a969dcabbce4b736127cd522 (diff)
downloaddsub-3546ef68b6b0e34537802fa44f4fe5fc68623504.tar.gz
dsub-3546ef68b6b0e34537802fa44f4fe5fc68623504.tar.bz2
dsub-3546ef68b6b0e34537802fa44f4fe5fc68623504.zip
Fix broken transulecent bar on KK where the status bar can't be colored
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/adapter/SectionAdapter.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/adapter/SectionAdapter.java b/app/src/main/java/github/daneren2005/dsub/adapter/SectionAdapter.java
index f0181347..eec1dedb 100644
--- a/app/src/main/java/github/daneren2005/dsub/adapter/SectionAdapter.java
+++ b/app/src/main/java/github/daneren2005/dsub/adapter/SectionAdapter.java
@@ -447,8 +447,10 @@ public abstract class SectionAdapter<T> extends RecyclerView.Adapter<UpdateViewH
}
selectedViews.clear();
- Window window = ((SubsonicFragmentActivity) context).getWindow();
- window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
+ Window window = ((SubsonicFragmentActivity) context).getWindow();
+ window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
+ }
}
});
}