OSDN Git Service

Remove catch now api has hit googlefood.
authorKenny Guy <kennyguy@google.com>
Thu, 18 Sep 2014 11:58:18 +0000 (12:58 +0100)
committerKenny Guy <kennyguy@google.com>
Thu, 18 Sep 2014 11:58:18 +0000 (12:58 +0100)
Bug: 17543647
Change-Id: Ie0b57719393a705e8c02b226d3e3f57dbf43d800

src/com/android/launcher3/compat/LauncherAppsCompatVL.java

index c4a9783..e0d28b5 100644 (file)
@@ -82,11 +82,7 @@ public class LauncherAppsCompatVL extends LauncherAppsCompat {
         synchronized (mCallbacks) {
             mCallbacks.put(callback, wrappedCallback);
         }
-        try {
-            mLauncherApps.registerCallback(wrappedCallback);
-        } catch (Throwable e) {
-            // STOPSHIP(kennyguy): Remove when LRW71 hits googlefood
-        }
+        mLauncherApps.registerCallback(wrappedCallback);
     }
 
     public void removeOnAppsChangedCallback(
@@ -96,11 +92,7 @@ public class LauncherAppsCompatVL extends LauncherAppsCompat {
             wrappedCallback = mCallbacks.remove(callback);
         }
         if (wrappedCallback != null) {
-            try {
-                mLauncherApps.unregisterCallback(wrappedCallback);
-            } catch (Throwable e) {
-                // STOPSHIP(kennyguy): Remove when LRW71 hits googlefood
-            }
+            mLauncherApps.unregisterCallback(wrappedCallback);
         }
     }