chore: Add TODOs, remove debugging

This commit is contained in:
Pun Butrach
2025-12-27 18:23:09 +07:00
parent e8e9587648
commit 0c897fba8d
3 changed files with 6 additions and 22 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -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);
}
}