Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8621ff5 authored by Yohei Yukawa's avatar Yohei Yukawa Committed by android-build-merger
Browse files

Handle exceptions from #requestPermission()

am: 93278ca1

Change-Id: I5e8a3a9a670b1e794ce3af670fb30ffc4b8302a5
parents d098555a 93278ca1
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -580,7 +580,13 @@ public abstract class IInputConnectionWrapper extends IInputContext.Stub {
                        return;
                    }
                    if (grantUriPermission) {
                        try {
                            inputContentInfo.requestPermission();
                        } catch (Exception e) {
                            Log.e(TAG, "InputConnectionInfo.requestPermission() failed", e);
                            args.callback.setCommitContentResult(false, args.seq);
                            return;
                        }
                    }
                    final boolean result =
                            ic.commitContent(inputContentInfo, flags, (Bundle) args.arg2);