fail with warning if we get data from the AOSP mail client (see #290)
This commit is contained in:
@@ -159,7 +159,17 @@ public class DecryptActivity extends BaseActivity {
|
||||
canDelete = true;
|
||||
case OpenKeychainIntents.DECRYPT_DATA:
|
||||
default:
|
||||
uris.add(intent.getData());
|
||||
Uri uri = intent.getData();
|
||||
if (uri != null) {
|
||||
|
||||
if ("com.android.email.attachmentprovider".equals(uri.getHost())) {
|
||||
Toast.makeText(this, R.string.error_reading_aosp, Toast.LENGTH_LONG).show();
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
|
||||
uris.add(intent.getData());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user