From 8d76114fe3a25090bdac4732657c5571ff522317 Mon Sep 17 00:00:00 2001 From: Charlie Anderson Date: Wed, 4 Dec 2024 15:56:43 -0500 Subject: [PATCH] Add logging to verify when LoaderTask is stopped or cancelled Flag: EXEMPT just logging Test: Presubmit Bug: 377510898 Change-Id: Ie97adc07ed995af8b09eab232fcce9431bea42d5 --- src/com/android/launcher3/model/LoaderTask.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/model/LoaderTask.java b/src/com/android/launcher3/model/LoaderTask.java index a830c969cf..6c0065ef55 100644 --- a/src/com/android/launcher3/model/LoaderTask.java +++ b/src/com/android/launcher3/model/LoaderTask.java @@ -389,7 +389,7 @@ public class LoaderTask implements Runnable { } } catch (CancellationException e) { // Loader stopped, ignore - logASplit("Cancelled"); + FileLog.w(TAG, "LoaderTask cancelled:", e); } catch (Exception e) { memoryLogger.printLogs(); throw e; @@ -398,6 +398,7 @@ public class LoaderTask implements Runnable { } public synchronized void stopLocked() { + FileLog.w(TAG, "LoaderTask#stopLocked:", new Exception()); mStopped = true; this.notify(); }