Added on dismiss for error reporting / reviewing

pull/174/head
M66B 5 years ago
parent 5c9fbce89f
commit 3e742111f4

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

Loading…
Cancel
Save