This commit is contained in:
NudeDude 2018-08-13 18:18:13 +02:00
parent 844efce050
commit 76e19a51f6
2 changed files with 4 additions and 3 deletions

View File

@ -45,6 +45,7 @@ public class ProfileLoader extends AsyncTask<Long,Void,Long> {
private WeakReference<UserProfile> ui;
private SimpleDateFormat sdf;
private TwitterEngine mTwitter;
private DatabaseAdapter database;
private ErrorLog errorLog;
private long homeId;
private boolean imgEnabled;
@ -65,6 +66,7 @@ public class ProfileLoader extends AsyncTask<Long,Void,Long> {
ui = new WeakReference<>((UserProfile)context);
mTwitter = TwitterEngine.getInstance(context);
GlobalSettings settings = GlobalSettings.getInstance(context);
database = new DatabaseAdapter(ui.get());
sdf = settings.getDateFormatter();
errorLog = new ErrorLog(context);
int font = settings.getFontColor();
@ -107,7 +109,6 @@ public class ProfileLoader extends AsyncTask<Long,Void,Long> {
}
TwitterUser user;
DatabaseAdapter database = new DatabaseAdapter(ui.get());
if(MODE == GET_INFORMATION) {
user = mTwitter.getUser(userId);
database.storeUser(user);
@ -127,7 +128,7 @@ public class ProfileLoader extends AsyncTask<Long,Void,Long> {
following = Integer.toString(user.following);
profileImage = user.profileImg;
Date time = new Date(user.created);
dateString = "seit " + sdf.format(time);
dateString = sdf.format(time);
description = description.replace('\n', ' ');
if (MODE == GET_TWEETS && !isLocked)

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-all.zip