Prevent crash app when AutofillManager#startSessionLocked() is called

Bug: 141165119
Test: atest CtsAutoFillServiceTestCases
Test: manual. Install sample app in bug and make sure app does not
crash and log error after applying the fix.

Change-Id: If61553126b694a0d520691a963f728cb46cb521d
This commit is contained in:
Joanne Chung
2020-02-12 11:36:30 +08:00
parent 7d36a8d3ae
commit 1676bec234

View File

@@ -1793,6 +1793,9 @@ public final class AutofillManager {
client.autofillClientResetableStateAvailable();
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
} catch (SyncResultReceiver.TimeoutException e) {
// no-op, just log the error message.
Log.w(TAG, "Exception getting result from SyncResultReceiver: " + e);
}
}