Optimized translucence for lollipop on image preview
authorAndy Scherzinger <info@andy-scherzinger.de>
Thu, 6 Aug 2015 17:14:52 +0000 (19:14 +0200)
committerAndy Scherzinger <info@andy-scherzinger.de>
Thu, 6 Aug 2015 17:14:52 +0000 (19:14 +0200)
res/values/colors.xml
src/com/owncloud/android/ui/preview/PreviewImageActivity.java

index d596928..58a3eee 100644 (file)
@@ -42,4 +42,5 @@
 
     <!-- special transparent action bar colors for image preview -->
     <color name="owncloud_blue_transparent">#201D2D44</color>
+    <color name="owncloud_blue_dark_transparent">#40162233</color>
 </resources>
\ No newline at end of file
index b08a1f8..5cbacfc 100644 (file)
@@ -132,6 +132,10 @@ public class PreviewImageActivity extends FileActivity implements
                     }
                 }
             });
+
+            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
+                getWindow().setStatusBarColor(getResources().getColor(R.color.owncloud_blue_dark_transparent));
+            }
         }
             
         if (savedInstanceState != null) {