updated to version 1.3.1
This commit is contained in:
NudeDude 2019-01-06 21:18:42 +01:00
parent b60695e68a
commit a7461d65d0
2 changed files with 13 additions and 11 deletions

View File

@ -9,7 +9,7 @@ android {
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName '1.3'
versionName '1.3.1'
vectorDrawables.useSupportLibrary = true
}

View File

@ -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: