mirror of
https://github.com/nuclearfog/Shitter.git
synced 2024-12-27 10:03:44 +01:00
cleanup
This commit is contained in:
parent
844efce050
commit
76e19a51f6
@ -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)
|
||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user