small bugfixes

This commit is contained in:
NudeDude 2018-07-27 23:45:18 +02:00
parent afaa4e02b0
commit 05aafd2eed
3 changed files with 10 additions and 9 deletions

View File

@ -135,6 +135,7 @@ public class StatusLoader extends AsyncTask<Long, Void, Long> implements View.On
if(rtCount > 0)
rtCount--;
retweeted = false;
database.removeStatus(tweet.retweetId);
}
}
else if(MODE == FAVORITE) {

View File

@ -419,7 +419,7 @@ public class TwitterEngine {
*/
public void retweet(Tweet tweet) throws TwitterException {
if(tweet.retweeted) {
if(tweet.retweetId > 0)
if(tweet.retweetId > tweet.tweetID)
deleteTweet(tweet.retweetId);
else
deleteTweet(tweet.tweetID);

View File

@ -168,8 +168,8 @@
<Button
android:id="@+id/answer_button"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_width="16dp"
android:layout_height="16dp"
android:background="@drawable/chat" />
<TextView
@ -185,8 +185,8 @@
<Button
android:id="@+id/rt_button_detail"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_width="16dp"
android:layout_height="16dp"
android:background="@drawable/retweet" />
<TextView
@ -202,8 +202,8 @@
<Button
android:id="@+id/fav_button_detail"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_width="16dp"
android:layout_height="16dp"
android:background="@drawable/favorite" />
<TextView
@ -219,8 +219,8 @@
<Button
android:id="@+id/delete"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_width="16dp"
android:layout_height="16dp"
android:background="@drawable/cross"
android:visibility="invisible" />