From dc0d3e790b2f4f975a6d44daf4fb7be12b2ab41d Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Fri, 30 Aug 2019 22:38:41 +0200 Subject: [PATCH] Hide progressBar and enable validate button in AddfeedActivity when an exception is thrown --- .../main/java/com/readrops/app/activities/AddFeedActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/readrops/app/activities/AddFeedActivity.java b/app/src/main/java/com/readrops/app/activities/AddFeedActivity.java index 03b56025..0256c7b5 100644 --- a/app/src/main/java/com/readrops/app/activities/AddFeedActivity.java +++ b/app/src/main/java/com/readrops/app/activities/AddFeedActivity.java @@ -280,7 +280,10 @@ public class AddFeedActivity extends AppCompatActivity implements View.OnClickLi @Override public void onError(Throwable e) { + feedInsertionProgressBar.setVisibility(View.GONE); + validate.setEnabled(true); Utils.showSnackbar(rootLayout, e.getMessage()); + } }); }