From a7461d65d09001a6fce50bb41118b27e775c0024 Mon Sep 17 00:00:00 2001 From: NudeDude Date: Sun, 6 Jan 2019 21:18:42 +0100 Subject: [PATCH] bug fix updated to version 1.3.1 --- app/build.gradle | 2 +- .../nuclearfog/twidda/window/TweetDetail.java | 22 ++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 05d96c8f..a7264d6b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,7 +9,7 @@ android { minSdkVersion 16 targetSdkVersion 28 versionCode 1 - versionName '1.3' + versionName '1.3.1' vectorDrawables.useSupportLibrary = true } diff --git a/app/src/main/java/org/nuclearfog/twidda/window/TweetDetail.java b/app/src/main/java/org/nuclearfog/twidda/window/TweetDetail.java index 365bcf29..307bb515 100644 --- a/app/src/main/java/org/nuclearfog/twidda/window/TweetDetail.java +++ b/app/src/main/java/org/nuclearfog/twidda/window/TweetDetail.java @@ -189,29 +189,31 @@ public class TweetDetail extends AppCompatActivity implements OnClickListener, switch (v.getId()) { case R.id.rt_button_detail: + if(mStat != null && mStat.getStatus() == RUNNING) + mStat.cancel(true); mStat = new StatusLoader(this); mStat.execute(tweetID, StatusLoader.RETWEET); - Toast.makeText(this, R.string.tweet_loading, Toast.LENGTH_SHORT).show(); break; case R.id.fav_button_detail: + if(mStat != null && mStat.getStatus() == RUNNING) + mStat.cancel(true); mStat = new StatusLoader(this); mStat.execute(tweetID, StatusLoader.FAVORITE); - Toast.makeText(this, R.string.tweet_loading, Toast.LENGTH_SHORT).show(); break; case R.id.no_rt_detail: - Intent retweeter = new Intent(this, UserDetail.class); - retweeter.putExtra("tweetID", tweetID); - retweeter.putExtra("mode", 2); - startActivity(retweeter); + Intent retweet = new Intent(this, UserDetail.class); + retweet.putExtra("tweetID", tweetID); + retweet.putExtra("mode", 2); + startActivity(retweet); break; case R.id.no_fav_detail: - Intent favor = new Intent(this, UserDetail.class); - favor.putExtra("tweetID", tweetID); - favor.putExtra("mode", 3); - startActivity(favor); + Intent favorit = new Intent(this, UserDetail.class); + favorit.putExtra("tweetID", tweetID); + favorit.putExtra("mode", 3); + startActivity(favorit); break; case R.id.profileimage_detail: