File tree Expand file tree Collapse file tree
sentry-android-core/src/main/java/io/sentry/android/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424
2525- Fix soft input keyboard not being shown on the Feedback form ([#5359](https://github.com/getsentry/sentry-java/pull/5359))
2626- Fix shake-to-report not triggering on some devices due to high acceleration threshold ([#5366](https://github.com/getsentry/sentry-java/pull/5366))
27+ - Fix feedback form retaining previous message when shown again via shake ([#5366](https://github.com/getsentry/sentry-java/pull/5366))
2728
2829### Dependencies
2930
Original file line number Diff line number Diff line change @@ -324,6 +324,12 @@ public void setOnDismissListener(final @Nullable OnDismissListener listener) {
324324 @ Override
325325 protected void onStart () {
326326 super .onStart ();
327+ // Clear the message field so subsequent show() calls start with a fresh form
328+ final @ NotNull EditText edtMessage =
329+ findViewById (R .id .sentry_dialog_user_feedback_edt_description );
330+ edtMessage .getText ().clear ();
331+ edtMessage .setError (null );
332+
327333 final @ NotNull SentryOptions options = Sentry .getCurrentScopes ().getOptions ();
328334 final @ NotNull SentryFeedbackOptions feedbackOptions = options .getFeedbackOptions ();
329335 final @ Nullable Runnable onFormOpen = feedbackOptions .getOnFormOpen ();
You can’t perform that action at this time.
0 commit comments