fixed regression from previous commit and brought back 'select text'

This commit is contained in:
Daniel Gultsch 2017-05-02 10:42:50 +02:00
parent 7c31a981bb
commit ef78721f94
3 changed files with 9 additions and 5 deletions

View file

@ -612,6 +612,9 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
MenuItem cancelTransmission = menu.findItem(R.id.cancel_transmission);
MenuItem deleteFile = menu.findItem(R.id.delete_file);
MenuItem showErrorMessage = menu.findItem(R.id.show_error_message);
if (!treatAsFile && !GeoHelper.isGeoUri(m.getBody()) && !m.treatAsDownloadable()) {
selectText.setVisible(ListSelectionManager.isSupported());
}
if (m.getEncryption() == Message.ENCRYPTION_DECRYPTION_FAILED) {
retryDecryption.setVisible(true);
}

View file

@ -5,18 +5,18 @@
android:id="@+id/select_text"
android:title="@string/select_text"
android:visible="false"/>
<item
android:id="@+id/share_with"
android:title="@string/share_with"
android:visible="false"/>
<item
android:id="@+id/retry_decryption"
android:title="Retry decryption"
android:title="@string/retry_decryption"
android:visible="false"/>
<item
android:id="@+id/correct_message"
android:title="@string/correct_message"
android:visible="false"/>
<item
android:id="@+id/share_with"
android:title="@string/share_with"
android:visible="false"/>
<item
android:id="@+id/copy_url"
android:title="@string/copy_original_url"

View file

@ -744,4 +744,5 @@
<string name="block_stranger">Block stranger</string>
<string name="block_entire_domain">Block entire domain</string>
<string name="online_right_now">online right now</string>
<string name="retry_decryption">Retry decryption</string>
</resources>