File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,12 @@ private Bitmap readScreenshot() {
114
114
public void submitFeedback (View view ) {
115
115
setSubmittingStateEnabled (true );
116
116
EditText feedbackText = findViewById (R .id .feedbackText );
117
+ CheckBox screenshotCheckBox = findViewById (R .id .screenshotCheckBox );
117
118
feedbackSender
118
- .sendFeedback (releaseName , feedbackText .getText ().toString (), screenshotUri )
119
+ .sendFeedback (
120
+ releaseName ,
121
+ feedbackText .getText ().toString (),
122
+ screenshotCheckBox .isChecked () ? screenshotUri : null )
119
123
.addOnSuccessListener (
120
124
unused -> {
121
125
LogWrapper .getInstance ().i (TAG , "Feedback submitted" );
@@ -132,5 +136,7 @@ public void submitFeedback(View view) {
132
136
133
137
public void setSubmittingStateEnabled (boolean loading ) {
134
138
findViewById (R .id .sendButton ).setVisibility (loading ? INVISIBLE : VISIBLE );
139
+ findViewById (R .id .feedbackText ).setEnabled (!loading );
140
+ findViewById (R .id .feedbackText ).setFocusable (!loading );
135
141
}
136
142
}
You can’t perform that action at this time.
0 commit comments