diff --git a/core/java/android/content/pm/LauncherApps.java b/core/java/android/content/pm/LauncherApps.java index 2d50b5aa6ffbb..c95a5bf5c780a 100644 --- a/core/java/android/content/pm/LauncherApps.java +++ b/core/java/android/content/pm/LauncherApps.java @@ -190,7 +190,7 @@ public class LauncherApps { return info; } } catch (RemoteException re) { - return null; + throw new RuntimeException("Failed to call LauncherAppsService"); } return null; } @@ -259,7 +259,7 @@ public class LauncherApps { try { return mService.isPackageEnabled(packageName, user); } catch (RemoteException re) { - return false; + throw new RuntimeException("Failed to call LauncherAppsService"); } } @@ -275,7 +275,7 @@ public class LauncherApps { try { return mService.isActivityEnabled(component, user); } catch (RemoteException re) { - return false; + throw new RuntimeException("Failed to call LauncherAppsService"); } }