mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Merge "Update compat layer for API review changes to LauncherApps" into ub-now-porkchop
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user