Tiny fix for ShareActivity; 23/1.9.1
This commit is contained in:
parent
3ec1208edd
commit
66c4eece01
3 changed files with 5 additions and 4 deletions
|
@ -12,8 +12,8 @@ android {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 31
|
targetSdkVersion 31
|
||||||
|
|
||||||
versionCode 22
|
versionCode 23
|
||||||
versionName "1.9.0"
|
versionName "1.9.1"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ dependencies {
|
||||||
implementation "com.google.android.material:material:1.5.0"
|
implementation "com.google.android.material:material:1.5.0"
|
||||||
|
|
||||||
// LiveData
|
// 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'
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||||
|
|
||||||
// Image viewer
|
// Image viewer
|
||||||
|
|
|
@ -133,8 +133,9 @@ class ShareActivity : AppCompatActivity() {
|
||||||
suggestedTopicsList.adapter = TopicAdapter(suggestedTopics) { topicUrl ->
|
suggestedTopicsList.adapter = TopicAdapter(suggestedTopics) { topicUrl ->
|
||||||
try {
|
try {
|
||||||
val (baseUrl, topic) = splitTopicUrl(topicUrl)
|
val (baseUrl, topic) = splitTopicUrl(topicUrl)
|
||||||
|
val defaultUrl = defaultBaseUrl ?: appBaseUrl
|
||||||
topicText.text = topic
|
topicText.text = topic
|
||||||
if (baseUrl == defaultBaseUrl) {
|
if (baseUrl == defaultUrl) {
|
||||||
useAnotherServerCheckbox.isChecked = false
|
useAnotherServerCheckbox.isChecked = false
|
||||||
} else {
|
} else {
|
||||||
useAnotherServerCheckbox.isChecked = true
|
useAnotherServerCheckbox.isChecked = true
|
||||||
|
|
Loading…
Reference in a new issue