mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-26 00:48:51 -05:00
No inception with APG
This commit is contained in:
parent
cc14119425
commit
05a29a1f8f
@ -267,7 +267,12 @@ public class EncryptFileActivity extends DrawerActivity implements EncryptActivi
|
|||||||
private Intent sendWithChooserExcludingEncrypt(Message message) {
|
private Intent sendWithChooserExcludingEncrypt(Message message) {
|
||||||
Intent prototype = createSendIntent(message);
|
Intent prototype = createSendIntent(message);
|
||||||
String title = getString(R.string.title_share_file);
|
String title = getString(R.string.title_share_file);
|
||||||
String[] blacklist = new String[]{Constants.PACKAGE_NAME + ".ui.EncryptFileActivity"};
|
|
||||||
|
// we don't want to encrypt the encrypted, no inception ;)
|
||||||
|
String[] blacklist = new String[]{
|
||||||
|
Constants.PACKAGE_NAME + ".ui.EncryptFileActivity",
|
||||||
|
"org.thialfihar.android.apg.ui.EncryptActivity"
|
||||||
|
};
|
||||||
|
|
||||||
return new ShareHelper(this).createChooserExcluding(prototype, title, blacklist);
|
return new ShareHelper(this).createChooserExcluding(prototype, title, blacklist);
|
||||||
}
|
}
|
||||||
|
@ -250,7 +250,12 @@ public class EncryptTextActivity extends DrawerActivity implements EncryptActivi
|
|||||||
private Intent sendWithChooserExcludingEncrypt(Message message) {
|
private Intent sendWithChooserExcludingEncrypt(Message message) {
|
||||||
Intent prototype = createSendIntent(message);
|
Intent prototype = createSendIntent(message);
|
||||||
String title = getString(R.string.title_share_message);
|
String title = getString(R.string.title_share_message);
|
||||||
String[] blacklist = new String[]{Constants.PACKAGE_NAME + ".ui.EncryptTextActivity"};
|
|
||||||
|
// we don't want to encrypt the encrypted, no inception ;)
|
||||||
|
String[] blacklist = new String[]{
|
||||||
|
Constants.PACKAGE_NAME + ".ui.EncryptTextActivity",
|
||||||
|
"org.thialfihar.android.apg.ui.EncryptActivity"
|
||||||
|
};
|
||||||
|
|
||||||
return new ShareHelper(this).createChooserExcluding(prototype, title, blacklist);
|
return new ShareHelper(this).createChooserExcluding(prototype, title, blacklist);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user