|
@@ -4,16 +4,16 @@
|
|
* @author masensio
|
|
* @author masensio
|
|
* @author David A. Velasco
|
|
* @author David A. Velasco
|
|
* Copyright (C) 2015 ownCloud Inc.
|
|
* Copyright (C) 2015 ownCloud Inc.
|
|
- *
|
|
|
|
|
|
+ *
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2,
|
|
* it under the terms of the GNU General Public License version 2,
|
|
* as published by the Free Software Foundation.
|
|
* as published by the Free Software Foundation.
|
|
- *
|
|
|
|
|
|
+ *
|
|
* This program is distributed in the hope that it will be useful,
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
* GNU General Public License for more details.
|
|
- *
|
|
|
|
|
|
+ *
|
|
* You should have received a copy of the GNU General Public License
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
*/
|
|
@@ -95,6 +95,7 @@ import static com.owncloud.android.ui.activity.ContactsPreferenceActivity.PREFER
|
|
public class MainApp extends MultiDexApplication {
|
|
public class MainApp extends MultiDexApplication {
|
|
|
|
|
|
public static final OwnCloudVersion OUTDATED_SERVER_VERSION = OwnCloudVersion.nextcloud_12;
|
|
public static final OwnCloudVersion OUTDATED_SERVER_VERSION = OwnCloudVersion.nextcloud_12;
|
|
|
|
+ public static final OwnCloudVersion MINIMUM_SUPPORTED_SERVER_VERSION = OwnCloudVersion.nextcloud_10;
|
|
|
|
|
|
private static final String TAG = MainApp.class.getSimpleName();
|
|
private static final String TAG = MainApp.class.getSimpleName();
|
|
|
|
|
|
@@ -387,7 +388,7 @@ public class MainApp extends MultiDexApplication {
|
|
notificationManager.createNotificationChannel(channel);
|
|
notificationManager.createNotificationChannel(channel);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
public static Context getAppContext() {
|
|
public static Context getAppContext() {
|
|
return MainApp.mContext;
|
|
return MainApp.mContext;
|
|
@@ -405,9 +406,9 @@ public class MainApp extends MultiDexApplication {
|
|
MainApp.storagePath = path;
|
|
MainApp.storagePath = path;
|
|
}
|
|
}
|
|
|
|
|
|
- // Methods to obtain Strings referring app_name
|
|
|
|
- // From AccountAuthenticator
|
|
|
|
- // public static final String ACCOUNT_TYPE = "owncloud";
|
|
|
|
|
|
+ // Methods to obtain Strings referring app_name
|
|
|
|
+ // From AccountAuthenticator
|
|
|
|
+ // public static final String ACCOUNT_TYPE = "owncloud";
|
|
public static String getAccountType(Context context) {
|
|
public static String getAccountType(Context context) {
|
|
return context.getResources().getString(R.string.account_type);
|
|
return context.getResources().getString(R.string.account_type);
|
|
}
|
|
}
|
|
@@ -446,7 +447,7 @@ public class MainApp extends MultiDexApplication {
|
|
return getAppContext().getResources().getString(R.string.authority);
|
|
return getAppContext().getResources().getString(R.string.authority);
|
|
}
|
|
}
|
|
|
|
|
|
- // From ProviderMeta
|
|
|
|
|
|
+ // From ProviderMeta
|
|
// public static final String DB_FILE = "owncloud.db";
|
|
// public static final String DB_FILE = "owncloud.db";
|
|
public static String getDBFile() {
|
|
public static String getDBFile() {
|
|
return getAppContext().getResources().getString(R.string.db_file);
|
|
return getAppContext().getResources().getString(R.string.db_file);
|