mirror of https://github.com/M66B/FairEmail.git
Show snooze day name
This commit is contained in:
parent
cd3bf886f2
commit
3edb452c91
|
@ -787,7 +787,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
private void onShowSnoozed(TupleMessageEx message) {
|
private void onShowSnoozed(TupleMessageEx message) {
|
||||||
if (message.ui_snoozed != null) {
|
if (message.ui_snoozed != null) {
|
||||||
DateFormat df = SimpleDateFormat.getDateTimeInstance(SimpleDateFormat.MEDIUM, SimpleDateFormat.SHORT);
|
DateFormat df = SimpleDateFormat.getDateTimeInstance(SimpleDateFormat.MEDIUM, SimpleDateFormat.SHORT);
|
||||||
Toast.makeText(context, df.format(message.ui_snoozed), Toast.LENGTH_LONG).show();
|
String display = new SimpleDateFormat("E").format(message.ui_snoozed) + " " + df.format(message.ui_snoozed);
|
||||||
|
Toast.makeText(context, display, Toast.LENGTH_LONG).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1203,8 +1203,6 @@ public class FragmentMessages extends FragmentEx {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onActionSnooze() {
|
private void onActionSnooze() {
|
||||||
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
|
||||||
|
|
||||||
final View dview = LayoutInflater.from(getContext()).inflate(R.layout.dialog_duration, null);
|
final View dview = LayoutInflater.from(getContext()).inflate(R.layout.dialog_duration, null);
|
||||||
final NumberPicker npHours = dview.findViewById(R.id.npHours);
|
final NumberPicker npHours = dview.findViewById(R.id.npHours);
|
||||||
final NumberPicker npDays = dview.findViewById(R.id.npDays);
|
final NumberPicker npDays = dview.findViewById(R.id.npDays);
|
||||||
|
|
Loading…
Reference in New Issue