mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-01-30 19:05:02 +01:00
bugfix
This commit is contained in:
parent
32a6f528f5
commit
8dd91d056b
@ -106,16 +106,8 @@ public class StatusLoader extends AsyncTask<Long, Void, Long> {
|
|||||||
tweet = mTwitter.getStatus(tweetID);
|
tweet = mTwitter.getStatus(tweetID);
|
||||||
if(database.containStatus(tweetID)) {
|
if(database.containStatus(tweetID)) {
|
||||||
database.updateStatus(tweet);
|
database.updateStatus(tweet);
|
||||||
if(tweet.embedded != null) {
|
|
||||||
database.updateStatus(tweet.embedded);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (tweet.embedded != null) {
|
|
||||||
tweet = tweet.embedded;
|
|
||||||
tweetID = tweet.tweetID;
|
|
||||||
}
|
|
||||||
|
|
||||||
tweetReplyID = tweet.replyID;
|
tweetReplyID = tweet.replyID;
|
||||||
verified = tweet.user.isVerified;
|
verified = tweet.user.isVerified;
|
||||||
|
@ -3,6 +3,7 @@ package org.nuclearfog.twidda.backend;
|
|||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
|
import android.content.DialogInterface.OnClickListener;
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
@ -14,7 +15,7 @@ import org.nuclearfog.twidda.window.TweetPopup;
|
|||||||
|
|
||||||
import java.lang.ref.WeakReference;
|
import java.lang.ref.WeakReference;
|
||||||
|
|
||||||
public class StatusUpload extends AsyncTask<Object, Void, Boolean> implements AlertDialog.OnClickListener {
|
public class StatusUpload extends AsyncTask<Object, Void, Boolean> implements OnClickListener {
|
||||||
|
|
||||||
private WeakReference<TweetPopup> ui;
|
private WeakReference<TweetPopup> ui;
|
||||||
private TwitterEngine mTwitter;
|
private TwitterEngine mTwitter;
|
||||||
|
@ -396,13 +396,15 @@ public class DatabaseAdapter {
|
|||||||
|
|
||||||
private void storeStatus(Tweet tweet, int newStatusregister, SQLiteDatabase db) {
|
private void storeStatus(Tweet tweet, int newStatusregister, SQLiteDatabase db) {
|
||||||
ContentValues status = new ContentValues();
|
ContentValues status = new ContentValues();
|
||||||
|
TwitterUser mUser = tweet.user;
|
||||||
Tweet rtStat = tweet.embedded;
|
Tweet rtStat = tweet.embedded;
|
||||||
long rtId = 1L;
|
long rtId = 1L;
|
||||||
|
|
||||||
if(rtStat != null) {
|
if(rtStat != null) {
|
||||||
storeStatus(rtStat,0, db);
|
storeStatus(rtStat,0, db);
|
||||||
rtId = rtStat.tweetID;
|
rtId = rtStat.tweetID;
|
||||||
}
|
}
|
||||||
TwitterUser mUser = tweet.user;
|
|
||||||
storeUser(mUser,db);
|
storeUser(mUser,db);
|
||||||
status.put("tweetID", tweet.tweetID);
|
status.put("tweetID", tweet.tweetID);
|
||||||
status.put("userID", mUser.userID);
|
status.put("userID", mUser.userID);
|
||||||
@ -413,8 +415,8 @@ public class DatabaseAdapter {
|
|||||||
status.put("replyID", tweet.replyID);
|
status.put("replyID", tweet.replyID);
|
||||||
status.put("replyname", tweet.replyName);
|
status.put("replyname", tweet.replyName);
|
||||||
status.put("retweet", tweet.retweet);
|
status.put("retweet", tweet.retweet);
|
||||||
status.put("retweeterID", tweet.retweetId);
|
|
||||||
status.put("favorite", tweet.favorit);
|
status.put("favorite", tweet.favorit);
|
||||||
|
status.put("retweeterID", tweet.retweetId);
|
||||||
status.put("replyUserID", tweet.replyUserId);
|
status.put("replyUserID", tweet.replyUserId);
|
||||||
String[] medialinks = tweet.media;
|
String[] medialinks = tweet.media;
|
||||||
StringBuilder media = new StringBuilder();
|
StringBuilder media = new StringBuilder();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user