diff --git a/app/.gitignore b/app/.gitignore index 42afabfd..67e07b8f 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1 +1,2 @@ -/build \ No newline at end of file +/build +/release diff --git a/app/build.gradle b/app/build.gradle index 0fb8e1bc..801cd401 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -39,12 +39,6 @@ android { dependencies { compileOnly 'de.robv.android.xposed:api:82' - compileOnly 'de.robv.android.xposed:api:82:sources' - implementation 'androidx.constraintlayout:constraintlayout:2.1.2' - implementation 'androidx.preference:preference:1.1.1' - implementation 'androidx.appcompat:appcompat:1.4.0' - implementation 'com.google.android.material:material:1.4.0' - testImplementation 'junit:junit:4.+' - androidTestImplementation 'androidx.test.ext:junit:1.1.3' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' + implementation 'androidx.preference:preference:1.2.0' + implementation 'com.google.android.material:material:1.5.0' } \ No newline at end of file diff --git a/app/src/main/java/com/lt2333/simplicitytools/activity/SettingsActivity.kt b/app/src/main/java/com/lt2333/simplicitytools/activity/SettingsActivity.kt index d0f4c09c..fc421566 100644 --- a/app/src/main/java/com/lt2333/simplicitytools/activity/SettingsActivity.kt +++ b/app/src/main/java/com/lt2333/simplicitytools/activity/SettingsActivity.kt @@ -68,9 +68,9 @@ class SettingsActivity : AppCompatActivity() { BuildConfig.VERSION_NAME + "(" + BuildConfig.BUILD_TYPE + ")" } - override fun onPreferenceTreeClick(preference: Preference?): Boolean { + override fun onPreferenceTreeClick(preference: Preference): Boolean { - when (preference!!.key) { + when (preference.key) { "opensource" -> { try { val uri =