Updated to API 25, switched Preference File Mode to MODE_PRIVATE, since MODE_WORLD_READABLE is not supported anymore.

This commit is contained in:
Jan Christian Grünhage 2016-11-25 23:17:43 +01:00
parent 4d7d7eefe4
commit 7c9086a912
No known key found for this signature in database
GPG key ID: 62BEE5EB8F370DC6
5 changed files with 18 additions and 18 deletions

View file

@ -29,7 +29,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.android.tools.build:gradle:2.2.2'
}
}

View file

@ -23,12 +23,12 @@
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig {
minSdkVersion 8
targetSdkVersion 23
minSdkVersion 9
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
@ -42,5 +42,5 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:appcompat-v7:25.0.1'
}

View file

@ -25,13 +25,13 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig {
applicationId "de.arcus.playmusicexporter2"
minSdkVersion 8
targetSdkVersion 23
minSdkVersion 9
targetSdkVersion 25
versionCode 102
versionName '2.4.2'
}
@ -45,9 +45,9 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support:support-v4:25.0.1'
compile 'com.android.support:design:25.0.1'
compile project(':framework')
compile project(':playmusiclib')
}

View file

@ -65,7 +65,7 @@ public class SettingsActivity extends PreferenceActivity {
// Setup the default shared preference
PreferenceManager prefMgr = getPreferenceManager();
prefMgr.setSharedPreferencesName(PlayMusicExporterSettings.DEFAULT_SETTINGS_FILENAME);
prefMgr.setSharedPreferencesMode(MODE_WORLD_READABLE);
prefMgr.setSharedPreferencesMode(MODE_PRIVATE);
// Loads the preference xml
addPreferencesFromResource(R.xml.preferences);

View file

@ -23,12 +23,12 @@
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig {
minSdkVersion 8
targetSdkVersion 23
minSdkVersion 9
targetSdkVersion 25
versionCode 1
versionName "1.0"
}