File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
firebase-appdistribution/src/main
java/com/google/firebase/appdistribution/impl Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 15
15
package com .google .firebase .appdistribution .impl ;
16
16
17
17
import static android .view .View .GONE ;
18
- import static android .view .View .INVISIBLE ;
19
18
import static android .view .View .VISIBLE ;
20
19
21
20
import android .graphics .Bitmap ;
@@ -147,13 +146,13 @@ private Bitmap readScreenshot() {
147
146
}
148
147
149
148
public void submitFeedback (View view ) {
149
+ setSubmittingStateEnabled (true );
150
150
if (releaseName == null ) {
151
151
// Don't actually send feedback in development-mode
152
152
Toast .makeText (this , R .string .feedback_no_release , Toast .LENGTH_LONG ).show ();
153
153
finish ();
154
154
return ;
155
155
}
156
- setSubmittingStateEnabled (true );
157
156
EditText feedbackText = findViewById (R .id .feedbackText );
158
157
CheckBox screenshotCheckBox = findViewById (R .id .screenshotCheckBox );
159
158
feedbackSender
@@ -176,7 +175,8 @@ public void submitFeedback(View view) {
176
175
}
177
176
178
177
public void setSubmittingStateEnabled (boolean loading ) {
179
- findViewById (R .id .sendButton ).setVisibility (loading ? INVISIBLE : VISIBLE );
178
+ findViewById (R .id .sendButton ).setVisibility (loading ? GONE : VISIBLE );
179
+ findViewById (R .id .sendSpinner ).setVisibility (loading ? VISIBLE : GONE );
180
180
findViewById (R .id .feedbackText ).setEnabled (!loading );
181
181
findViewById (R .id .feedbackText ).setFocusable (!loading );
182
182
}
Original file line number Diff line number Diff line change 49
49
android : minHeight =" 48dp"
50
50
app : srcCompat =" @drawable/ic_baseline_send_24" />
51
51
52
+ <ProgressBar
53
+ android : id =" @+id/sendSpinner"
54
+ android : layout_width =" wrap_content"
55
+ android : layout_height =" wrap_content"
56
+ android : layout_gravity =" center"
57
+ android : layout_weight =" 0"
58
+ android : minWidth =" 48dp"
59
+ android : minHeight =" 48dp"
60
+ android : visibility =" gone" />
61
+
52
62
</LinearLayout >
53
63
54
64
<View
Original file line number Diff line number Diff line change 1
1
<resources xmlns : tools =" http://schemas.android.com/tools" >
2
- <style name =" FeedbackTheme" parent =" Theme.AppCompat.Light.NoActionBar" />
2
+ <style name =" FeedbackTheme" parent =" Theme.AppCompat.Light.NoActionBar" >
3
+ <item name =" colorAccent" >#000000</item >
4
+ </style >
3
5
</resources >
You can’t perform that action at this time.
0 commit comments