Merge "Handle exceptions from #requestPermission()" into nyc-mr1-dev
This commit is contained in:
@@ -580,7 +580,13 @@ public abstract class IInputConnectionWrapper extends IInputContext.Stub {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (grantUriPermission) {
|
if (grantUriPermission) {
|
||||||
inputContentInfo.requestPermission();
|
try {
|
||||||
|
inputContentInfo.requestPermission();
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.e(TAG, "InputConnectionInfo.requestPermission() failed", e);
|
||||||
|
args.callback.setCommitContentResult(false, args.seq);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
final boolean result =
|
final boolean result =
|
||||||
ic.commitContent(inputContentInfo, flags, (Bundle) args.arg2);
|
ic.commitContent(inputContentInfo, flags, (Bundle) args.arg2);
|
||||||
|
|||||||
Reference in New Issue
Block a user