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

Unified Diff: components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java

Issue 2394773006: android: Use DisplayAndroid in java (Closed)
Patch Set: javadoc Created 4 years, 2 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
Index: components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java
diff --git a/components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java b/components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java
index ed385fb1d73a24110a79afde59b069777d722666..4df957b8b95ca94f509bae067f47a68dbf3b991c 100644
--- a/components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java
+++ b/components/autofill/android/java/src/org/chromium/components/autofill/AutofillKeyboardAccessory.java
@@ -20,7 +20,7 @@ import android.widget.TextView;
import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.ui.UiUtils;
import org.chromium.ui.base.WindowAndroid;
-import org.chromium.ui.gfx.DeviceDisplayInfo;
+import org.chromium.ui.display.DisplayAndroid;
/**
* The Autofill suggestion view that lists relevant suggestions. It sits above the keyboard and
@@ -48,7 +48,7 @@ public class AutofillKeyboardAccessory extends LinearLayout
mWindowAndroid = windowAndroid;
mAutofillDelegate = autofillDelegate;
- int deviceWidthPx = DeviceDisplayInfo.create(getContext()).getDisplayWidth();
+ int deviceWidthPx = DisplayAndroid.get(getContext()).getDisplayWidth();
mMaximumLabelWidthPx = deviceWidthPx / 2;
mMaximumSublabelWidthPx = deviceWidthPx / 4;

Powered by Google App Engine
This is Rietveld 408576698