Commit 35203489 authored by Nihar Thakkar's avatar Nihar Thakkar

Migrate to new /e/ Drive URL, update Gradle version

parent a2ddffed
......@@ -142,6 +142,7 @@ public class NotesListViewActivity extends AppCompatActivity implements ItemAdap
if (PreferenceManager.getDefaultSharedPreferences(this)
.getBoolean(SettingsActivity.SETTINGS_IS_DEVICE_ACCOUNT, false)) {
migrateUrl();
if (hasAccountBeenRemoved() || hasAccountPasswordChanged()) {
Intent settingsIntent = new Intent(this, AccountActivity.class);
startActivityForResult(settingsIntent, login_account);
......@@ -166,6 +167,17 @@ public class NotesListViewActivity extends AppCompatActivity implements ItemAdap
setupNavigationMenu();
}
private void migrateUrl() {
String syncUrl = PreferenceManager.getDefaultSharedPreferences(this)
.getString(SettingsActivity.SETTINGS_URL, "");
if (syncUrl.equals("https://drive.ecloud.global/")) {
PreferenceManager.getDefaultSharedPreferences(this)
.edit()
.putString(SettingsActivity.SETTINGS_URL, "https://ecloud.global/")
.apply();
}
}
private boolean hasAccountBeenRemoved() {
AccountManager accountManager = AccountManager.get(this);
String userName = PreferenceManager.getDefaultSharedPreferences(this)
......
......@@ -8,7 +8,7 @@ buildscript {
}
dependencies {
apply plugin: 'maven'
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.android.tools.build:gradle:3.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
......
#Sat Nov 10 14:24:00 IST 2018
#Wed Apr 03 12:44:11 IST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment