1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Added on dismiss for error reporting / reviewing

This commit is contained in:
M66B 2020-02-08 19:19:31 +01:00
parent 5c9fbce89f
commit 3e742111f4

View file

@ -2964,6 +2964,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
new FragmentDialogReporting().show(getParentFragmentManager(), "reporting");
}
});
snackbar.addCallback(new Snackbar.Callback() {
@Override
public void onDismissed(Snackbar transientBottomBar, int event) {
prefs.edit().putBoolean("crash_reports_asked", true).apply();
}
});
snackbar.show();
@ -3018,6 +3024,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
new FragmentDialogReview().show(getParentFragmentManager(), "review");
}
});
snackbar.addCallback(new Snackbar.Callback() {
@Override
public void onDismissed(Snackbar transientBottomBar, int event) {
prefs.edit().putLong("review_later", new Date().getTime()).apply();
}
});
snackbar.show();