use of org.chromium.components.autofill.AutofillKeyboardAccessory in project AndroidChromium by JackyAndroid.
the class AutofillKeyboardAccessoryBridge method init.
/**
* Initializes this object.
* This function should be called at most one time.
* @param nativeAutofillKeyboardAccessory Handle to the native counterpart.
* @param windowAndroid The window on which to show the suggestions.
*/
@CalledByNative
private void init(long nativeAutofillKeyboardAccessory, WindowAndroid windowAndroid) {
if (windowAndroid == null || windowAndroid.getActivity().get() == null) {
nativeViewDismissed(nativeAutofillKeyboardAccessory);
dismissed();
return;
}
mNativeAutofillKeyboardAccessory = nativeAutofillKeyboardAccessory;
mAccessoryView = new AutofillKeyboardAccessory(windowAndroid, this);
mContext = windowAndroid.getActivity().get();
}
Aggregations