Add logging to private space settings

Bug: 317625931
Test: Manual
Change-Id: I01200b54c436d2a60ac07c9facbb5cf35a44d920
This commit is contained in:
josephpv
2024-01-09 17:55:10 +00:00
committed by Joseph Vincent
parent 87117b0183
commit 6f4dc73c53
9 changed files with 48 additions and 15 deletions

View File

@@ -111,12 +111,14 @@ public class PrivateSpaceAuthenticationActivity extends FragmentActivity {
}
private void promptToSetDeviceLock() {
Log.d(TAG, "Show prompt to set device lock before using private space feature");
new AlertDialog.Builder(this)
.setTitle(R.string.no_device_lock_title)
.setMessage(R.string.no_device_lock_summary)
.setPositiveButton(
R.string.no_device_lock_action_label,
(DialogInterface dialog, int which) -> {
Log.d(TAG, "Start activity to set new device lock");
mSetDeviceLock.launch(new Intent(ACTION_SET_NEW_PASSWORD));
})
.setNegativeButton(
@@ -176,6 +178,7 @@ public class PrivateSpaceAuthenticationActivity extends FragmentActivity {
options.toBundle())
.getIntentSender());
} else {
Log.i(TAG, "Launch private space settings");
privateSpaceSettings.launch();
}
finish();