summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard MacGregor <rmacgregor@cyngn.com>2015-08-27 16:31:02 -0700
committerLorDClockaN <davor@losinj.com>2015-08-28 21:23:37 +0200
commitceb602104f264a6bde57b61e8dfa2e61454d1551 (patch)
treecabb421ffe5635ea03757a6904dad2e26c5c43e7
parent93cfac6757f1737175cec08b85d55042bfaf88fd (diff)
Fix "To" label hide/show when adding/removing subject
When adding a subject, the "to" label is hidden. When removing the subject, the "to" label wasn't being shown. Change-Id: Ic16dac3f1779cf4d4c47a7b4a36d9e648f6d69ce Ticket: QRDL-1029
-rw-r--r--src/com/android/mms/ui/ComposeMessageActivity.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/mms/ui/ComposeMessageActivity.java b/src/com/android/mms/ui/ComposeMessageActivity.java
index 53b28870..cfd7e45b 100644
--- a/src/com/android/mms/ui/ComposeMessageActivity.java
+++ b/src/com/android/mms/ui/ComposeMessageActivity.java
@@ -2100,16 +2100,21 @@ public class ComposeMessageActivity extends Activity
});
}
+ TextView toLabel = (TextView) findViewById(R.id.to_label);
if (show) {
mSubjectTextEditor.addTextChangedListener(mSubjectEditorWatcher);
// Ensure the "to" label is hidden when Subject editor shows
- TextView toLabel = (TextView) findViewById(R.id.to_label);
if (toLabel != null) {
toLabel.setVisibility(View.GONE);
}
} else {
mSubjectTextEditor.removeTextChangedListener(mSubjectEditorWatcher);
+
+ // Ensure the "to" label is visible when Subject editor is hidden
+ if (toLabel != null) {
+ toLabel.setVisibility(View.VISIBLE);
+ }
}
mSubjectTextEditor.setOnKeyListener(show ? mSubjectKeyListener : null);