diff --git a/mobile/src/main/AndroidManifest.xml b/mobile/src/main/AndroidManifest.xml index 24bec2d51..b8f1d83de 100644 --- a/mobile/src/main/AndroidManifest.xml +++ b/mobile/src/main/AndroidManifest.xml @@ -66,7 +66,7 @@ - + diff --git a/mobile/src/main/java/com/oasisfeng/island/settings/IslandSettingsActivity.kt b/mobile/src/main/java/com/oasisfeng/island/settings/IslandSettingsActivity.kt index 0ed935077..867b4cbd8 100644 --- a/mobile/src/main/java/com/oasisfeng/island/settings/IslandSettingsActivity.kt +++ b/mobile/src/main/java/com/oasisfeng/island/settings/IslandSettingsActivity.kt @@ -1,3 +1,5 @@ +@file:Suppress("DEPRECATION") + package com.oasisfeng.island.settings import android.Manifest.permission.* @@ -39,7 +41,7 @@ import com.oasisfeng.island.util.Users * * Created by Oasis on 2019-10-12. */ -class IslandSettingsFragment: @Suppress("DEPRECATION") android.preference.PreferenceFragment() { +class IslandSettingsFragment: android.preference.PreferenceFragment() { override fun onResume() { super.onResume() @@ -150,7 +152,7 @@ class IslandSettingsActivity: Activity() { setContentView(R.layout.activity_main) title = intent?.getStringExtra(Intent.EXTRA_TITLE) ?: getString(R.string.tab_island).let { if (Users.current() == Users.profile) it else "$it (${Users.toId(Users.current())})"} - @Suppress("DEPRECATION") fragmentManager.beginTransaction().replace(android.R.id.content, IslandSettingsFragment()).commit() + fragmentManager.beginTransaction().replace(android.R.id.content, IslandSettingsFragment()).commit() } class Enabler: BroadcastReceiver() { // One-time enabler for diff --git a/open/build.gradle b/open/build.gradle index 6c293c8a9..4c86fcb6b 100644 --- a/open/build.gradle +++ b/open/build.gradle @@ -17,8 +17,4 @@ android { dependencies { implementation project(':shared') implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation "androidx.core:core-ktx:1.0.2" -} -repositories { - mavenCentral() }