Replace USE_DELEGATE_CHOOSER with USE_UNBUNDLED_SHARESHEET

New flag will allow for control via experiment rollout.

Bug: 224544763
Test: Manual test of flag functionality.
Change-Id: I70bc79e12afe4ff629dbd3935c082c51c39a66a7
This commit is contained in:
Matt Casey
2022-03-15 21:13:59 +00:00
committed by Mark Renouf
parent 44df60c3f9
commit cb9d8762c3
2 changed files with 4 additions and 3 deletions

View File

@@ -514,9 +514,10 @@ public final class SystemUiDeviceConfigFlags {
"is_nearby_share_first_target_in_ranked_app";
/**
* (boolean) Whether to enable the new unbundled "delegate chooser" implementation.
* (boolean) Whether to enable the new unbundled sharesheet
* (com.android.intentresolver.ChooserActivity).
*/
public static final String USE_DELEGATE_CHOOSER = "use_delegate_chooser";
public static final String USE_UNBUNDLED_SHARESHEET = "use_unbundled_sharesheet";
/**
* (string) Name of the default QR code scanner activity. On the eligible devices this activity

View File

@@ -81,7 +81,7 @@ public final class IntentResolverInterceptor {
private void updateUseDelegateChooser() {
mUseDelegateChooser = DeviceConfig.getBoolean(
DeviceConfig.NAMESPACE_SYSTEMUI,
SystemUiDeviceConfigFlags.USE_DELEGATE_CHOOSER,
SystemUiDeviceConfigFlags.USE_UNBUNDLED_SHARESHEET,
false);
}