Tiny fix for ShareActivity; 23/1.9.1

This commit is contained in:
Philipp Heckel 2022-02-16 14:59:41 -05:00
parent 3ec1208edd
commit 66c4eece01
3 changed files with 5 additions and 4 deletions

View file

@ -12,8 +12,8 @@ android {
minSdkVersion 21
targetSdkVersion 31
versionCode 22
versionName "1.9.0"
versionCode 23
versionName "1.9.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@ -93,7 +93,7 @@ dependencies {
implementation "com.google.android.material:material:1.5.0"
// LiveData
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.4.0"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.4.1"
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
// Image viewer

View file

@ -133,8 +133,9 @@ class ShareActivity : AppCompatActivity() {
suggestedTopicsList.adapter = TopicAdapter(suggestedTopics) { topicUrl ->
try {
val (baseUrl, topic) = splitTopicUrl(topicUrl)
val defaultUrl = defaultBaseUrl ?: appBaseUrl
topicText.text = topic
if (baseUrl == defaultBaseUrl) {
if (baseUrl == defaultUrl) {
useAnotherServerCheckbox.isChecked = false
} else {
useAnotherServerCheckbox.isChecked = true