Read password from ACTION_VIEW intents

PasswordActivity reads password and launch_immediately from Intent
extras, but only if the intent is not ACTION_VIEW. This commit supports
these extras for ACTION_VIEW as well.
This commit is contained in:
Nicholas FitzRoy-Dale committed 2016-04-18 14:14:27 +01:00
1 parent dbac7c8a4f
commit b3e8cb5002
1 file changed
+2
@@ -382,6 +382,8 @@ public class PasswordActivity extends LockingActivity {
else {
return R.string.error_can_not_handle_uri;
}
password = i.getStringExtra(KEY_PASSWORD);
launch_immediately = i.getBooleanExtra(KEY_LAUNCH_IMMEDIATELY, false);
} else {
mDbUri = UriUtil.parseDefaultFile(i.getStringExtra(KEY_FILENAME));