😴 Minor improvements

This commit is contained in:
Christian Basler 2018-06-13 19:48:00 +02:00
parent 76317a2488
commit 8b89d81970
3 changed files with 7 additions and 6 deletions

View File

@ -101,7 +101,7 @@ dependencies {
transitive = true transitive = true
} }
implementation 'com.github.angads25:filepicker:1.1.1' implementation 'com.github.angads25:filepicker:1.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0' implementation 'com.android.support.constraint:constraint-layout:1.1.1'
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.15.0' testImplementation 'org.mockito:mockito-core:2.15.0'

View File

@ -262,11 +262,12 @@ class SettingsFragment : PreferenceFragmentCompat(), SharedPreferences.OnSharedP
} }
private fun connectivityChangeListener() = private fun connectivityChangeListener() =
OnPreferenceChangeListener { preference, newValue -> OnPreferenceChangeListener { _, _ ->
val ctx = context context?.let { ctx ->
if (ctx != null && Build.VERSION.SDK_INT >= LOLLIPOP && Preferences.isFullNodeActive(ctx)) { if (Build.VERSION.SDK_INT >= LOLLIPOP && Preferences.isFullNodeActive(ctx)) {
NetworkUtils.scheduleNodeStart(ctx) NetworkUtils.scheduleNodeStart(ctx)
} }
}
true true
} }

View File

@ -19,10 +19,10 @@ allprojects {
apply plugin: 'com.github.ben-manes.versions' apply plugin: 'com.github.ben-manes.versions'
repositories { repositories {
google()
jcenter() jcenter()
mavenCentral() mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url "https://jitpack.io" } maven { url "https://jitpack.io" }
google()
} }
} }