Merge "Make SuggestionController guard RuntimeException."
diff --git a/packages/SettingsLib/src/com/android/settingslib/suggestions/SuggestionController.java b/packages/SettingsLib/src/com/android/settingslib/suggestions/SuggestionController.java
index f740f7c..b0451b7 100644
--- a/packages/SettingsLib/src/com/android/settingslib/suggestions/SuggestionController.java
+++ b/packages/SettingsLib/src/com/android/settingslib/suggestions/SuggestionController.java
@@ -107,7 +107,7 @@
} catch (NullPointerException e) {
Log.w(TAG, "mRemote service detached before able to query", e);
return null;
- } catch (RemoteException e) {
+ } catch (RemoteException | RuntimeException e) {
Log.w(TAG, "Error when calling getSuggestion()", e);
return null;
}
@@ -120,7 +120,7 @@
}
try {
mRemoteService.dismissSuggestion(suggestion);
- } catch (RemoteException e) {
+ } catch (RemoteException | RuntimeException e) {
Log.w(TAG, "Error when calling dismissSuggestion()", e);
}
}
@@ -133,7 +133,7 @@
try {
mRemoteService.launchSuggestion(suggestion);
- } catch (RemoteException e) {
+ } catch (RemoteException | RuntimeException e) {
Log.w(TAG, "Error when calling launchSuggestion()", e);
}
}