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
1 changed files with 12 additions and 0 deletions

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();