feat(mute-conversations-toggle): add success confirmation toast
This commit is contained in:
@@ -677,6 +677,7 @@ public class UiUtils {
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(Status result){
|
public void onSuccess(Status result){
|
||||||
resultCallback.run();
|
resultCallback.run();
|
||||||
|
Toast.makeText(activity, result.muted ? R.string.mo_muted_conversation_successfully : R.string.mo_unmuted_conversation_successfully, Toast.LENGTH_SHORT).show();
|
||||||
E.post(new StatusMuteChangedEvent(result));
|
E.post(new StatusMuteChangedEvent(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,8 @@
|
|||||||
<string name="mo_notification_management_settings">Manage Notifications</string>
|
<string name="mo_notification_management_settings">Manage Notifications</string>
|
||||||
<string name="mo_open_camera">Take picture</string>
|
<string name="mo_open_camera">Take picture</string>
|
||||||
<string name="mo_camera_not_available">No camera available!</string>
|
<string name="mo_camera_not_available">No camera available!</string>
|
||||||
|
<string name="mo_muted_conversation_successfully">Successfully muted conversation</string>
|
||||||
|
<string name="mo_unmuted_conversation_successfully">Successfully unmuted conversation</string>
|
||||||
<string name="mo_muting">Muting…</string>
|
<string name="mo_muting">Muting…</string>
|
||||||
<string name="mo_unmuting">Unmuting…</string>
|
<string name="mo_unmuting">Unmuting…</string>
|
||||||
<string name="mo_mute_conversation">Mute conversation</string>
|
<string name="mo_mute_conversation">Mute conversation</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user