Start all help intents as startActivityForResult

So that the receiver may verify identity if they so desire...

Bug: 21849741
Change-Id: I2e2c3f674a8be88f22e051e2affb54df2f1c3eed
This commit is contained in:
Jason Monk
2015-06-16 10:31:38 -04:00
parent 744f2adb56
commit 6e61347242
3 changed files with 17 additions and 9 deletions

View File

@@ -576,7 +576,7 @@ public class FingerprintSettings extends SubSettings {
Context ctx = widget.getContext();
Intent intent = HelpUtils.getHelpIntent(ctx, getURL(), ctx.getClass().getName());
try {
ctx.startActivity(intent);
((Activity) ctx).startActivityForResult(intent, 0);
} catch (ActivityNotFoundException e) {
Log.w(FingerprintSettingsFragment.TAG,
"Actvity was not found for intent, " + intent.toString());