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

Commit 6cd6ed40 authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Remove flag record_task_snapshots_before_shutdown" into main

parents 42e5d731 57f8d84c
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -360,17 +360,6 @@ flag {
    is_exported: true
}

flag {
  name: "record_task_snapshots_before_shutdown"
  namespace: "windowing_frontend"
  description: "Record task snapshots before shutdown"
  bug: "376821232"
  is_fixed_read_only: true
  metadata {
    purpose: PURPOSE_BUGFIX
  }
}

flag {
    name: "predictive_back_three_button_nav"
    namespace: "systemui"
+0 −6
Original line number Diff line number Diff line
@@ -303,9 +303,6 @@ class TaskSnapshotController extends AbsAppSnapshotController<Task, TaskSnapshot
     * Record task snapshots before shutdown.
     */
    void prepareShutdown() {
        if (!Flags.recordTaskSnapshotsBeforeShutdown()) {
            return;
        }
        final ArrayList<SnapshotSupplier> supplierArrayList = new ArrayList<>();
        synchronized (mService.mGlobalLock) {
            // Make write items run in a batch.
@@ -334,9 +331,6 @@ class TaskSnapshotController extends AbsAppSnapshotController<Task, TaskSnapshot
    }

    void waitFlush(long timeout) {
        if (!Flags.recordTaskSnapshotsBeforeShutdown()) {
            return;
        }
        mPersister.mSnapshotPersistQueue.waitFlush(timeout);
    }