diff --git a/app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt b/app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt index 5ef218fc..c59c8d5b 100644 --- a/app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt +++ b/app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt @@ -236,7 +236,7 @@ class MainActivity : AppCompatActivity(R.layout.activity_main), override fun onDestroy() { AppStatusReporter.shared().unregister(this) - compositeDisposable.dispose() + compositeDisposable.clear() super.onDestroy() } diff --git a/app/src/main/java/space/celestia/mobilecelestia/search/SearchFragment.kt b/app/src/main/java/space/celestia/mobilecelestia/search/SearchFragment.kt index bc9e9724..5117d79d 100644 --- a/app/src/main/java/space/celestia/mobilecelestia/search/SearchFragment.kt +++ b/app/src/main/java/space/celestia/mobilecelestia/search/SearchFragment.kt @@ -113,7 +113,7 @@ class SearchFragment : Fragment() { } override fun onDestroy() { - compositeDisposable.dispose() + compositeDisposable.clear() super.onDestroy() } diff --git a/app/src/main/java/space/celestia/mobilecelestia/share/ShareAPI.kt b/app/src/main/java/space/celestia/mobilecelestia/share/ShareAPI.kt index 7e675929..92564024 100644 --- a/app/src/main/java/space/celestia/mobilecelestia/share/ShareAPI.kt +++ b/app/src/main/java/space/celestia/mobilecelestia/share/ShareAPI.kt @@ -45,7 +45,7 @@ class ResultMap(private val cls: Class?) : Function { object ShareAPI { val shared: Retrofit = Retrofit.Builder() - .baseUrl("https://astroweather.cn/celestia/") + .baseUrl("https://celestia.mobi/api/") .addCallAdapterFactory(RxJava3CallAdapterFactory.create()) .addConverterFactory(GsonConverterFactory.create()) .build() diff --git a/app/src/main/java/space/celestia/mobilecelestia/toolbar/ToolbarFragment.kt b/app/src/main/java/space/celestia/mobilecelestia/toolbar/ToolbarFragment.kt index 395bfb45..c6a699a3 100644 --- a/app/src/main/java/space/celestia/mobilecelestia/toolbar/ToolbarFragment.kt +++ b/app/src/main/java/space/celestia/mobilecelestia/toolbar/ToolbarFragment.kt @@ -40,7 +40,6 @@ enum class ToolbarAction : Serializable { Setting -> "Settings" Home -> "Home (Sol)" Event -> "Eclipse Finder" - Exit -> "Exit" else -> this.toString() } return CelestiaString(orig, "") diff --git a/build.gradle b/build.gradle index 6cb68ab9..149ab433 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:4.0.2' + classpath 'com.android.tools.build:gradle:4.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ba8470b6..48d78ead 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -14,4 +14,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip