diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 615d007ef5..f84544df4f 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -129,7 +129,10 @@
android:label="Message Details"
android:windowSoftInputMode="stateUnchanged"
android:launchMode="singleTask"
- android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
+ android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"
+ android:parentActivityName=".ConversationListActivity">
+
+
-
+
-
+ android:visibility="gone"
+ android:textColor="#FFF44336"
+ android:textSize="16sp"
+ android:padding="5dp"
+ tools:visibility="visible"
+ android:text="@string/message_details_header__issues_need_your_attention"
+ android:textStyle="bold|italic" />
-
+
+
+ android:padding="@dimen/message_details_table_row_pad">
-
+
+
+
+
+
+
+ android:padding="@dimen/message_details_table_row_pad">
-
+
-
+
-
+
+
+ android:padding="@dimen/message_details_table_row_pad">
-
+
+
+
+
+
+
+ android:padding="@dimen/message_details_table_row_pad">
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/res/layout/message_details_recipient.xml b/res/layout/message_recipient_list_item.xml
similarity index 96%
rename from res/layout/message_details_recipient.xml
rename to res/layout/message_recipient_list_item.xml
index 4c5f2117a5..f334df1aad 100644
--- a/res/layout/message_details_recipient.xml
+++ b/res/layout/message_recipient_list_item.xml
@@ -67,7 +67,7 @@
android:paddingBottom="5dp"
android:layout_gravity="center_vertical"
android:drawableLeft="@drawable/ic_error_white_18dp"
- android:text="FIX"
+ android:text="@string/message_recipients_list_item__verify"
android:visibility="gone"/>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 49eb1ae585..1e02f0002e 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -544,6 +544,10 @@
No images
+
+ VERIFY
+ RESEND
+
Manual MMS settings are required for your phone.
Enabled
@@ -658,6 +662,7 @@
Your identity (you read):
+ Some issues need your attention.
Sent
Received
Via
diff --git a/src/org/thoughtcrime/securesms/MessageDetailsActivity.java b/src/org/thoughtcrime/securesms/MessageDetailsActivity.java
index c979a159b3..212703000c 100644
--- a/src/org/thoughtcrime/securesms/MessageDetailsActivity.java
+++ b/src/org/thoughtcrime/securesms/MessageDetailsActivity.java
@@ -18,6 +18,7 @@ package org.thoughtcrime.securesms;
import android.content.Context;
import android.database.Cursor;
+import android.graphics.Paint;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.LoaderManager.LoaderCallbacks;
@@ -62,6 +63,8 @@ public class MessageDetailsActivity extends PassphraseRequiredActionBarActivity
private boolean isPushGroup;
private ConversationItem conversationItem;
private ViewGroup itemParent;
+ private View metadataContainer;
+ private TextView errorText;
private TextView sentDate;
private TextView receivedDate;
private View receivedContainer;
@@ -88,6 +91,8 @@ public class MessageDetailsActivity extends PassphraseRequiredActionBarActivity
isPushGroup = getIntent().getBooleanExtra(IS_PUSH_GROUP_EXTRA, false);
itemParent = (ViewGroup) findViewById(R.id.item_container );
recipientsList = (ListView ) findViewById(R.id.recipients_list);
+ metadataContainer = header.findViewById(R.id.metadata_container);
+ errorText = (TextView ) header.findViewById(R.id.error_text);
sentDate = (TextView ) header.findViewById(R.id.sent_time);
receivedContainer = header.findViewById(R.id.received_container);
receivedDate = (TextView ) header.findViewById(R.id.received_time);
@@ -250,8 +255,15 @@ public class MessageDetailsActivity extends PassphraseRequiredActionBarActivity
inflateMessageViewIfAbsent(messageRecord);
updateRecipients(messageRecord, recipients);
- updateTransport(messageRecord);
- updateTime(messageRecord);
+ if (messageRecord.isFailed()) {
+ errorText.setVisibility(View.VISIBLE);
+ metadataContainer.setVisibility(View.GONE);
+ } else {
+ updateTransport(messageRecord);
+ updateTime(messageRecord);
+ errorText.setVisibility(View.GONE);
+ metadataContainer.setVisibility(View.VISIBLE);
+ }
}
}
diff --git a/src/org/thoughtcrime/securesms/MessageDetailsRecipientAdapter.java b/src/org/thoughtcrime/securesms/MessageDetailsRecipientAdapter.java
index 39c1834f61..a908c8295b 100644
--- a/src/org/thoughtcrime/securesms/MessageDetailsRecipientAdapter.java
+++ b/src/org/thoughtcrime/securesms/MessageDetailsRecipientAdapter.java
@@ -49,7 +49,7 @@ public class MessageDetailsRecipientAdapter extends BaseAdapter implements AbsLi
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if (convertView == null) {
- convertView = LayoutInflater.from(context).inflate(R.layout.message_details_recipient, parent, false);
+ convertView = LayoutInflater.from(context).inflate(R.layout.message_recipient_list_item, parent, false);
}
Recipient recipient = recipients.getRecipientsList().get(position);