Change root detection and toggle

This commit is contained in:
topjohnwu
2016-09-18 02:32:08 +08:00
parent f96865c2cb
commit 11e1d04dd1
11 changed files with 86 additions and 135 deletions
@@ -46,7 +46,7 @@ public class RepoHelper {
new BuildFromWeb(delegate).execute();
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US);
String date = format.format(Calendar.getInstance().getTime());
prefs.edit().putString("last_update",date).apply();
prefs.edit().putString("last_update", date).apply();
} else {
Log.d(TAG, "RepoHelper: Building from cache");
BuildFromCache();