Merge "mark developer settings page as sensitive" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
09552b3caa
@@ -18,6 +18,7 @@ package com.android.settings.development;
|
|||||||
|
|
||||||
import static android.provider.Settings.Global.DEVELOPMENT_SETTINGS_ENABLED;
|
import static android.provider.Settings.Global.DEVELOPMENT_SETTINGS_ENABLED;
|
||||||
import static android.service.quicksettings.TileService.ACTION_QS_TILE_PREFERENCES;
|
import static android.service.quicksettings.TileService.ACTION_QS_TILE_PREFERENCES;
|
||||||
|
import static android.view.flags.Flags.sensitiveContentAppProtectionApi;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.UiModeManager;
|
import android.app.UiModeManager;
|
||||||
@@ -329,7 +330,12 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
|
|||||||
adapter.getProfileProxy(getActivity(), mBluetoothA2dpServiceListener,
|
adapter.getProfileProxy(getActivity(), mBluetoothA2dpServiceListener,
|
||||||
BluetoothProfile.A2DP);
|
BluetoothProfile.A2DP);
|
||||||
}
|
}
|
||||||
return super.onCreateView(inflater, container, savedInstanceState);
|
View root = super.onCreateView(inflater, container, savedInstanceState);
|
||||||
|
// Mark the view sensitive to black out the screen during screen share.
|
||||||
|
if (sensitiveContentAppProtectionApi()) {
|
||||||
|
root.setContentSensitivity(View.CONTENT_SENSITIVITY_SENSITIVE);
|
||||||
|
}
|
||||||
|
return root;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user