Skip to content

Commit 04c30d2

Browse files
committed
./gradlew :firebase-appdistribution:googleJavaFormat
1 parent 1624ecf commit 04c30d2

File tree

1 file changed

+27
-15
lines changed

1 file changed

+27
-15
lines changed

firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl/FirebaseAppDistributionImpl.java

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -377,24 +377,36 @@ private void doStartFeedback(CharSequence infoText, @Nullable Uri screenshotUri)
377377
e ->
378378
LogWrapper.getInstance()
379379
.e("Failed to sign in tester. Could not collect feedback.", e))
380-
.onSuccessTask(taskExecutor, unused -> releaseIdentifier.identifyRelease()
381-
.addOnFailureListener(
382-
e -> {
383-
LogWrapper.getInstance().e("Failed to identify release", e);
384-
feedbackInProgress.set(false);
385-
Toast.makeText(firebaseApp.getApplicationContext(),
386-
R.string.feedback_unidentified_release, Toast.LENGTH_LONG).show();
387-
})
388-
.onSuccessTask(
389-
taskExecutor,
390-
releaseName -> launchFeedbackActivity(releaseName, infoText, screenshotUri)
380+
.onSuccessTask(
381+
taskExecutor,
382+
unused ->
383+
releaseIdentifier
384+
.identifyRelease()
391385
.addOnFailureListener(
392386
e -> {
393-
LogWrapper.getInstance().e("Failed to launch feedback flow", e);
387+
LogWrapper.getInstance().e("Failed to identify release", e);
394388
feedbackInProgress.set(false);
395-
Toast.makeText(firebaseApp.getApplicationContext(),
396-
R.string.feedback_launch_failed, Toast.LENGTH_LONG).show();
397-
})));
389+
Toast.makeText(
390+
firebaseApp.getApplicationContext(),
391+
R.string.feedback_unidentified_release,
392+
Toast.LENGTH_LONG)
393+
.show();
394+
})
395+
.onSuccessTask(
396+
taskExecutor,
397+
releaseName ->
398+
launchFeedbackActivity(releaseName, infoText, screenshotUri)
399+
.addOnFailureListener(
400+
e -> {
401+
LogWrapper.getInstance()
402+
.e("Failed to launch feedback flow", e);
403+
feedbackInProgress.set(false);
404+
Toast.makeText(
405+
firebaseApp.getApplicationContext(),
406+
R.string.feedback_launch_failed,
407+
Toast.LENGTH_LONG)
408+
.show();
409+
})));
398410
}
399411

400412
private Task<Void> launchFeedbackActivity(

0 commit comments

Comments
 (0)