by default show the undecrypted block without line wrapping, just feels less messy, switch after decryption
This commit is contained in:
@@ -77,6 +77,7 @@
|
|||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/message"
|
android:id="@+id/message"
|
||||||
android:inputType="text|textCapSentences|textMultiLine|textLongMessage"
|
android:inputType="text|textCapSentences|textMultiLine|textLongMessage"
|
||||||
|
android:scrollHorizontally="true"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:gravity="top"/>
|
android:gravity="top"/>
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ public class DecryptActivity extends BaseActivity {
|
|||||||
byteOut.write(bytes, 0, length);
|
byteOut.write(bytes, 0, length);
|
||||||
}
|
}
|
||||||
byteOut.close();
|
byteOut.close();
|
||||||
String data = Strings.fromUTF8ByteArray(byteOut.toByteArray());
|
String data = new String(byteOut.toByteArray());
|
||||||
mMessage.setText(data);
|
mMessage.setText(data);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
// ignore, then
|
// ignore, then
|
||||||
@@ -542,8 +542,10 @@ public class DecryptActivity extends BaseActivity {
|
|||||||
Toast.makeText(this, R.string.decryptionSuccessful, Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, R.string.decryptionSuccessful, Toast.LENGTH_SHORT).show();
|
||||||
switch (mDecryptTarget) {
|
switch (mDecryptTarget) {
|
||||||
case Id.target.message: {
|
case Id.target.message: {
|
||||||
String decryptedMessage = Strings.fromUTF8ByteArray(data.getByteArray(Apg.EXTRA_DECRYPTED_MESSAGE));
|
String decryptedMessage =
|
||||||
|
new String(data.getByteArray(Apg.EXTRA_DECRYPTED_MESSAGE));
|
||||||
mMessage.setText(decryptedMessage);
|
mMessage.setText(decryptedMessage);
|
||||||
|
mMessage.setHorizontallyScrolling(false);
|
||||||
mReplyButton.setVisibility(View.VISIBLE);
|
mReplyButton.setVisibility(View.VISIBLE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user