From 2421956202ea9d727e7a2700d5759314414f87ac Mon Sep 17 00:00:00 2001 From: NudeDude Date: Wed, 14 Feb 2018 22:41:17 +0100 Subject: [PATCH] Bugfix --- app/src/main/java/org/nuclearfog/twidda/backend/MainPage.java | 3 +++ .../java/org/nuclearfog/twidda/backend/ProfileAction.java | 2 ++ build.gradle | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/MainPage.java b/app/src/main/java/org/nuclearfog/twidda/backend/MainPage.java index 291a2b33..04e5a4e9 100644 --- a/app/src/main/java/org/nuclearfog/twidda/backend/MainPage.java +++ b/app/src/main/java/org/nuclearfog/twidda/backend/MainPage.java @@ -122,6 +122,9 @@ public class MainPage extends AsyncTask { case FAIL: default: + timelineRefresh.setRefreshing(false); + trendRefresh.setRefreshing(false); + mentionRefresh.setRefreshing(false); Toast.makeText(context, context.getString(R.string.connection_failure), Toast.LENGTH_LONG).show(); } } diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/ProfileAction.java b/app/src/main/java/org/nuclearfog/twidda/backend/ProfileAction.java index 46edd964..a14d93f0 100644 --- a/app/src/main/java/org/nuclearfog/twidda/backend/ProfileAction.java +++ b/app/src/main/java/org/nuclearfog/twidda/backend/ProfileAction.java @@ -203,6 +203,8 @@ public class ProfileAction extends AsyncTask else if(mode == FAILURE) { Toast.makeText(context,"Fehler beim Laden des Profils",Toast.LENGTH_LONG).show(); + tweetsReload.setRefreshing(false); + favoritsReload.setRefreshing(false); } if(!isHome) { if(isFollowing) diff --git a/build.gradle b/build.gradle index 78ba988e..36f6c414 100644 --- a/build.gradle +++ b/build.gradle @@ -14,4 +14,8 @@ allprojects { jcenter() flatDir{ dirs 'libs'} } +} + +task clean(type: Delete) { + delete rootProject.buildDir } \ No newline at end of file