Merge "Do not show UI when currentID changed." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ff5eb06e3d
@@ -311,12 +311,22 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
|
|||||||
@Override
|
@Override
|
||||||
public void requestShowFillUi(AutofillId id, int width, int height,
|
public void requestShowFillUi(AutofillId id, int width, int height,
|
||||||
IAutofillWindowPresenter presenter) {
|
IAutofillWindowPresenter presenter) {
|
||||||
try {
|
synchronized (mLock) {
|
||||||
final ViewState currentView = mViewStates.get(mCurrentViewId);
|
if (id.equals(mCurrentViewId)) {
|
||||||
mClient.requestShowFillUi(mWindowToken, id, width, height,
|
try {
|
||||||
currentView.getVirtualBounds(), presenter);
|
final ViewState view = mViewStates.get(id);
|
||||||
} catch (RemoteException e) {
|
mClient.requestShowFillUi(mWindowToken, id, width, height,
|
||||||
Slog.e(TAG, "Error requesting to show fill UI", e);
|
view.getVirtualBounds(),
|
||||||
|
presenter);
|
||||||
|
} catch (RemoteException e) {
|
||||||
|
Slog.e(TAG, "Error requesting to show fill UI", e);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (DEBUG) {
|
||||||
|
Slog.d(TAG, "Do not show full UI on " + id + " as it is not the current view ("
|
||||||
|
+ mCurrentViewId + ") anymore");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user