Merge "Fixed placemente of Autofill UI for virtual views." into oc-dev

This commit is contained in:
Felipe Leme
2017-05-08 21:07:57 +00:00
committed by Android (Google) Code Review
2 changed files with 7 additions and 1 deletions

View File

@@ -7443,7 +7443,7 @@ public class Activity extends ContextThemeWrapper
final int offsetX = (anchorBounds != null)
? anchorBounds.left - actualAnchorBounds.left : 0;
int offsetY = (anchorBounds != null)
? anchorBounds.top - actualAnchorBounds.top : 0;
? anchorBounds.bottom - actualAnchorBounds.bottom : 0;
final boolean wasShowing;

View File

@@ -16,6 +16,7 @@
package com.android.server.autofill.ui;
import static com.android.server.autofill.Helper.sDebug;
import static com.android.server.autofill.Helper.sVerbose;
import android.annotation.NonNull;
import android.annotation.Nullable;
@@ -337,6 +338,11 @@ final class FillUi {
@Override
public void show(WindowManager.LayoutParams p, Rect transitionEpicenter,
boolean fitsSystemWindows, int layoutDirection) {
if (sVerbose) {
Slog.v(TAG, "AutofillWindowPresenter.show(): fit=" + fitsSystemWindows
+ ", epicenter="+ transitionEpicenter + ", dir=" + layoutDirection
+ ", params=" + p);
}
UiThread.getHandler().post(() -> mWindow.show(p));
}