Cleanup of not used ImeTracing.getInstance() try-catch block

Inner called function IInputMethodManagerGlobalInvoker.isImeTraceEnabled
already contains RuntimeException.rethrowFromSystemServer() which will
raise an exception rather than returning an empty object.

Test: atest android.view.inputmethod.cts
Fix: 233710165
Change-Id: Ice4aa19c32b3da951be74189d3dda6411591d2a8
This commit is contained in:
Felix Stern
2023-03-07 15:42:32 +00:00
parent 8b0a18473b
commit c771134f94

View File

@@ -62,11 +62,7 @@ public abstract class ImeTracing {
if (isSystemProcess()) {
sInstance = new ImeTracingServerImpl();
} else {
try {
sInstance = new ImeTracingClientImpl();
} catch (RuntimeException e) {
Log.e(TAG, "Exception while creating ImeTracingClientImpl instance", e);
}
sInstance = new ImeTracingClientImpl();
}
}
return sInstance;