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(
|
activity.getString(
|
||||||
R.string.delete_x_file,
|
R.string.delete_x_file,
|
||||||
fileDescriptorString));
|
fileDescriptorString));
|
||||||
|
}
|
||||||
|
|
||||||
saveToDownloads.setVisible(true);
|
saveToDownloads.setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (showError) {
|
if (showError) {
|
||||||
showErrorMessage.setVisible(true);
|
showErrorMessage.setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -155,13 +155,8 @@ public class SearchActivity extends XmppActivity implements TextWatcher, OnSearc
|
||||||
(message.getTransferable() != null && !deleted) || waitingOfferedSending && message.needsUploading();
|
(message.getTransferable() != null && !deleted) || waitingOfferedSending && message.needsUploading();
|
||||||
|
|
||||||
if (message.isFileOrImage() && !deleted && !cancelable) {
|
if (message.isFileOrImage() && !deleted && !cancelable) {
|
||||||
final String path = message.getRelativeFilePath();
|
|
||||||
if (path == null
|
|
||||||
|| !path.startsWith("/")
|
|
||||||
|| FileBackend.inConversationsDirectory(this, path)) {
|
|
||||||
saveToDownloads.setVisible(true);
|
saveToDownloads.setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (message.isGeoUri()) {
|
if (message.isGeoUri()) {
|
||||||
copy.setVisible(false);
|
copy.setVisible(false);
|
||||||
|
|
Loading…
Reference in a new issue