mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
chore: Add TODOs, remove debugging
This commit is contained in:
@@ -319,16 +319,7 @@ public class QuickstepLauncher extends Launcher implements RecentsViewContainer,
|
||||
mDepthController = new DepthController(this);
|
||||
mOverviewBlurEnabled = isOverviewBackgroundBlurEnabled();
|
||||
getTheme().applyStyle(getOverviewBlurStyleResId(), true);
|
||||
// In QuickstepLauncher.java (or Launcher.java)
|
||||
try {
|
||||
super.setupViews();
|
||||
} catch (InflateException e) {
|
||||
if (e.getCause() instanceof InvocationTargetException) {
|
||||
Throwable target = ((InvocationTargetException) e.getCause()).getTargetException();
|
||||
Log.e("LawnchairCrash", "RecentsView constructor failed", target);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
super.setupViews();
|
||||
|
||||
mActionsView = findViewById(R.id.overview_actions_view);
|
||||
RecentsView<?, LauncherState> overviewPanel = getOverviewPanel();
|
||||
|
||||
@@ -462,16 +462,7 @@ public class Launcher extends StatefulActivity<LauncherState>
|
||||
mAppWidgetHolder.setAppWidgetRemovedCallback(
|
||||
appWidgetId -> getWorkspace().removeWidget(appWidgetId));
|
||||
|
||||
// In QuickstepLauncher.java (or Launcher.java)
|
||||
try {
|
||||
setupViews();
|
||||
} catch (InflateException e) {
|
||||
if (e.getCause() instanceof InvocationTargetException) {
|
||||
Throwable target = ((InvocationTargetException) e.getCause()).getTargetException();
|
||||
Log.e("LawnchairCrash", "RecentsView constructor failed", target);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
setupViews();
|
||||
updateDisallowBack();
|
||||
|
||||
mAppWidgetHolder.startListening();
|
||||
|
||||
@@ -172,7 +172,8 @@ public class TaskStackChangeListeners {
|
||||
if (!LawnchairQuickstepCompat.ATLEAST_V) return;
|
||||
ActivityTaskManager.getService().registerTaskStackListener(this);
|
||||
mRegistered = true;
|
||||
} catch (Throwable e) {
|
||||
} catch (NoClassDefFoundError | ExceptionInInitializerError | Exception e) {
|
||||
// pE-TODO(CompatTier2): Find a way to deal with LawnchairQuickstepCompat instead of NoClassDefFoundError | ExceptionInInitializerError catch
|
||||
Log.w(TAG, "Failed to call registerTaskStackListener", e);
|
||||
}
|
||||
}
|
||||
@@ -190,7 +191,8 @@ public class TaskStackChangeListeners {
|
||||
if (!LawnchairQuickstepCompat.ATLEAST_V) return;
|
||||
ActivityTaskManager.getService().unregisterTaskStackListener(this);
|
||||
mRegistered = false;
|
||||
} catch (Throwable e) {
|
||||
} catch (NoClassDefFoundError | ExceptionInInitializerError | Exception e) {
|
||||
// pE-TODO(CompatTier2): Find a way to deal with LawnchairQuickstepCompat instead of NoClassDefFoundError | ExceptionInInitializerError catch
|
||||
Log.w(TAG, "Failed to call unregisterTaskStackListener", e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user