Merge "Don't query direct share for work profile when its turned off" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1a0d72eaa9
@@ -2784,6 +2784,13 @@ public class ChooserActivity extends ResolverActivity implements
|
||||
return;
|
||||
}
|
||||
|
||||
// no need to query direct share for work profile when its turned off
|
||||
UserManager userManager = getSystemService(UserManager.class);
|
||||
if (userManager.isQuietModeEnabled(chooserListAdapter.getUserHandle())) {
|
||||
getChooserActivityLogger().logSharesheetAppLoadComplete();
|
||||
return;
|
||||
}
|
||||
|
||||
if (ChooserFlags.USE_SHORTCUT_MANAGER_FOR_DIRECT_TARGETS
|
||||
|| ChooserFlags.USE_PREDICTION_MANAGER_FOR_DIRECT_TARGETS) {
|
||||
if (DEBUG) {
|
||||
|
||||
Reference in New Issue
Block a user