Merge "Import translations. DO NOT MERGE" into rvc-dev
diff --git a/src/com/android/settings/homepage/contextualcards/EligibleCardChecker.java b/src/com/android/settings/homepage/contextualcards/EligibleCardChecker.java
index 46b4c86..f98d795 100644
--- a/src/com/android/settings/homepage/contextualcards/EligibleCardChecker.java
+++ b/src/com/android/settings/homepage/contextualcards/EligibleCardChecker.java
@@ -120,9 +120,13 @@
// Workaround of unpinning slice in the same SerialExecutor of AsyncTask as SliceCallback's
// observer.
- ThreadUtils.postOnMainThread(() ->
- AsyncTask.execute(() -> manager.unregisterSliceCallback(uri, callback))
- );
+ ThreadUtils.postOnMainThread(() -> AsyncTask.execute(() -> {
+ try {
+ manager.unregisterSliceCallback(uri, callback);
+ } catch (SecurityException e) {
+ Log.d(TAG, "No permission currently: " + e);
+ }
+ }));
return slice;
}