Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb213ba7 authored by Kenny Guy's avatar Kenny Guy Committed by Android (Google) Code Review
Browse files

Merge "Update compat layer for API review changes to LauncherApps" into ub-now-porkchop

parents 393afd34 577e7dc7
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -82,7 +82,11 @@ public class LauncherAppsCompatVL extends LauncherAppsCompat {
        synchronized (mCallbacks) {
            mCallbacks.put(callback, wrappedCallback);
        }
        mLauncherApps.addCallback(wrappedCallback);
        try {
            mLauncherApps.registerCallback(wrappedCallback);
        } catch (Throwable e) {
            // STOPSHIP(kennyguy): Remove when LRW71 hits googlefood
        }
    }

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