mirror of https://github.com/M66B/FairEmail.git
parent
0698e9dd6b
commit
b68aba25b7
|
@ -30,7 +30,7 @@
|
||||||
</value>
|
</value>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|
|
@ -453,13 +453,14 @@ public class FragmentCompose extends FragmentEx {
|
||||||
if (openPgpConnection == null || !openPgpConnection.isBound())
|
if (openPgpConnection == null || !openPgpConnection.isBound())
|
||||||
throw new IllegalArgumentException(getString(R.string.title_no_openpgp));
|
throw new IllegalArgumentException(getString(R.string.title_no_openpgp));
|
||||||
|
|
||||||
EntityIdentity identity = (EntityIdentity) spFrom.getSelectedItem();
|
String to = etTo.getText().toString();
|
||||||
if (identity == null)
|
InternetAddress ato[] = (TextUtils.isEmpty(to) ? null : InternetAddress.parse(to));
|
||||||
throw new IllegalArgumentException(getString(R.string.title_from_missing));
|
if (ato == null || ato.length == 0)
|
||||||
|
throw new IllegalArgumentException(getString(R.string.title_to_missing));
|
||||||
|
|
||||||
Intent data = new Intent();
|
Intent data = new Intent();
|
||||||
data.setAction(OpenPgpApi.ACTION_ENCRYPT);
|
data.setAction(OpenPgpApi.ACTION_ENCRYPT);
|
||||||
data.putExtra(OpenPgpApi.EXTRA_USER_IDS, new String[]{identity.email});
|
data.putExtra(OpenPgpApi.EXTRA_USER_IDS, new String[]{ato[0].getAddress()});
|
||||||
data.putExtra(OpenPgpApi.EXTRA_REQUEST_ASCII_ARMOR, true);
|
data.putExtra(OpenPgpApi.EXTRA_REQUEST_ASCII_ARMOR, true);
|
||||||
|
|
||||||
String plain = etBody.getText().toString();
|
String plain = etBody.getText().toString();
|
||||||
|
|
Loading…
Reference in New Issue