mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 02:55:23 +00:00
0c768a24e4
When viewing a media in the media preview, you can delete it by pressing a delete button on the action bar. It will then ask you to confirm your choice. If you confirm, it will delete the attachment from the database and from disk. If it was the only attachment for that message, the message itself will also be deleted.
21 lines
953 B
XML
21 lines
953 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
<item android:id="@+id/media_preview__forward"
|
|
android:title="@string/media_preview__forward_title"
|
|
android:icon="@drawable/ic_forward_white_24dp"
|
|
app:showAsAction="always"/>
|
|
<item android:id="@+id/save"
|
|
android:title="@string/media_preview__save_title"
|
|
android:icon="@drawable/ic_save_white_24dp"
|
|
app:showAsAction="always"/>
|
|
<item android:id="@+id/media_preview__overview"
|
|
android:title="@string/media_preview__all_media_title"
|
|
android:icon="@drawable/ic_photo_library_white_24dp"
|
|
app:showAsAction="ifRoom"/>
|
|
<item android:id="@+id/delete"
|
|
android:title="@string/delete"
|
|
android:icon="@drawable/ic_delete_white_24dp"
|
|
app:showAsAction="ifRoom"/>
|
|
</menu>
|