fix save to downloads menu item visibility
This commit is contained in:
parent
d037e940c7
commit
25cd65e4e7
|
@ -1871,10 +1871,10 @@ public class ConversationFragment extends XmppFragment
|
|||
activity.getString(
|
||||
R.string.delete_x_file,
|
||||
fileDescriptorString));
|
||||
}
|
||||
|
||||
saveToDownloads.setVisible(true);
|
||||
}
|
||||
}
|
||||
if (showError) {
|
||||
showErrorMessage.setVisible(true);
|
||||
}
|
||||
|
|
|
@ -155,13 +155,8 @@ public class SearchActivity extends XmppActivity implements TextWatcher, OnSearc
|
|||
(message.getTransferable() != null && !deleted) || waitingOfferedSending && message.needsUploading();
|
||||
|
||||
if (message.isFileOrImage() && !deleted && !cancelable) {
|
||||
final String path = message.getRelativeFilePath();
|
||||
if (path == null
|
||||
|| !path.startsWith("/")
|
||||
|| FileBackend.inConversationsDirectory(this, path)) {
|
||||
saveToDownloads.setVisible(true);
|
||||
}
|
||||
}
|
||||
|
||||
if (message.isGeoUri()) {
|
||||
copy.setVisible(false);
|
||||
|
|
Loading…
Reference in a new issue