Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(738)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java

Issue 2806633002: [Home] Only use thick progress bar on older Android versions (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java
index 4710a3418d8e74c2390fc95a98edc1a0ade6492e..2e298372c06ed752cfd2dd1d47716f20e423b425 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java
@@ -10,6 +10,7 @@ import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
+import android.os.Build;
import android.support.v7.widget.Toolbar;
import android.util.AttributeSet;
import android.view.View;
@@ -131,7 +132,12 @@ public class BottomToolbarPhone extends ToolbarPhone {
@Override
protected int getProgressBarHeight() {
- return getResources().getDimensionPixelSize(R.dimen.chrome_home_progress_bar_height);
+ // On Android versions that do not support themed status bars (< M), use a thicker progress
+ // bar so it is more visible.
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
+ return getResources().getDimensionPixelSize(R.dimen.chrome_home_progress_bar_height);
+ }
+ return super.getProgressBarHeight();
}
@Override
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698