dont show delete file button when outside conversations directory. fixes #2007
This commit is contained in:
parent
3cdf5f9afc
commit
521469a57d
|
@ -579,8 +579,11 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
||||||
cancelTransmission.setVisible(true);
|
cancelTransmission.setVisible(true);
|
||||||
}
|
}
|
||||||
if (treatAsFile) {
|
if (treatAsFile) {
|
||||||
deleteFile.setVisible(true);
|
String path = m.getRelativeFilePath();
|
||||||
deleteFile.setTitle(activity.getString(R.string.delete_x_file,UIHelper.getFileDescriptionString(activity, m)));
|
if (path == null || !path.startsWith("/")) {
|
||||||
|
deleteFile.setVisible(true);
|
||||||
|
deleteFile.setTitle(activity.getString(R.string.delete_x_file, UIHelper.getFileDescriptionString(activity, m)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue