Merge "Support finishing Fingerprint Settings if TIMEOUT" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
8a53aecafe
@@ -1313,6 +1313,15 @@ public class FingerprintSettings extends SubSettings {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (requestCode == LAUNCH_EXT_PREF_REQUEST) {
|
} else if (requestCode == LAUNCH_EXT_PREF_REQUEST) {
|
||||||
|
if (resultCode == RESULT_TIMEOUT) {
|
||||||
|
Activity activity = getActivity();
|
||||||
|
if (activity != null) {
|
||||||
|
activity.setResult(resultCode);
|
||||||
|
activity.finish();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!mLaunchedExtPrefKey.isEmpty()) {
|
if (!mLaunchedExtPrefKey.isEmpty()) {
|
||||||
final Preference preference = findPreference(mLaunchedExtPrefKey);
|
final Preference preference = findPreference(mLaunchedExtPrefKey);
|
||||||
if (preference instanceof PrimarySwitchIntentPreference) {
|
if (preference instanceof PrimarySwitchIntentPreference) {
|
||||||
|
Reference in New Issue
Block a user