From 42974b77b19062832aee76644164b24ce3a7c3e9 Mon Sep 17 00:00:00 2001 From: someone5678 Date: Mon, 19 Jun 2023 21:48:39 +0900 Subject: [PATCH] SystemUIGoogle: Forcefully store Cached Estimate * Fixes issue that Estimated time not showing on QS Change-Id: I4a05ad2640abc20babce41087fd0cd41cc49213d --- .../android/systemui/power/EnhancedEstimatesGoogleImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/SystemUIGoogle/src/com/google/android/systemui/power/EnhancedEstimatesGoogleImpl.java b/SystemUIGoogle/src/com/google/android/systemui/power/EnhancedEstimatesGoogleImpl.java index 942d4c8..6053ded 100644 --- a/SystemUIGoogle/src/com/google/android/systemui/power/EnhancedEstimatesGoogleImpl.java +++ b/SystemUIGoogle/src/com/google/android/systemui/power/EnhancedEstimatesGoogleImpl.java @@ -80,6 +80,7 @@ public Estimate getEstimate() { } } Estimate estimate = new Estimate(query.getLong(query.getColumnIndex("battery_estimate")), z2, j); + Estimate.storeCachedEstimate(mContext, estimate); query.close(); return estimate; }