diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/ProfileLoader.java b/app/src/main/java/org/nuclearfog/twidda/backend/ProfileLoader.java index 1bf55503..4ec4f721 100644 --- a/app/src/main/java/org/nuclearfog/twidda/backend/ProfileLoader.java +++ b/app/src/main/java/org/nuclearfog/twidda/backend/ProfileLoader.java @@ -45,6 +45,7 @@ public class ProfileLoader extends AsyncTask { private WeakReference 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 { 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 { } 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 { 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) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 720b4266..e5fb770b 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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 \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-all.zip