Fix call log multiselect deletions.

This commit is contained in:
Alex Hart
2023-04-25 16:42:33 -03:00
committed by GitHub
parent eb9915d445
commit 0e631508b2
7 changed files with 106 additions and 28 deletions

View File

@@ -111,6 +111,7 @@ public final class FeatureFlags {
private static final String AD_HOC_CALLING = "android.calling.ad.hoc";
private static final String EDIT_MESSAGE_RECEIVE = "android.editMessage.receive";
private static final String EDIT_MESSAGE_SEND = "android.editMessage.send";
private static final String CALL_DELETE_SYNC = "android.calling.deleteSync";
/**
* We will only store remote values for flags in this set. If you want a flag to be controllable
@@ -177,7 +178,8 @@ public final class FeatureFlags {
@VisibleForTesting
static final Set<String> NOT_REMOTE_CAPABLE = SetUtil.newHashSet(
PHONE_NUMBER_PRIVACY,
AD_HOC_CALLING
AD_HOC_CALLING,
CALL_DELETE_SYNC
);
/**
@@ -626,6 +628,13 @@ public final class FeatureFlags {
return getBoolean(AD_HOC_CALLING, false);
}
/**
* Whether sending deletion sync events is supported
*/
public static boolean callDeleteSync() {
return getBoolean(CALL_DELETE_SYNC, false);
}
/** Only for rendering debug info. */
public static synchronized @NonNull Map<String, Object> getMemoryValues() {
return new TreeMap<>(REMOTE_VALUES);