mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-17 04:00:48 +01:00
added highlight status for location switch
This commit is contained in:
parent
fad05a0433
commit
4c04658d26
47
build.gradle
47
build.gradle
@ -33,29 +33,30 @@ subprojects {
|
||||
buildscript {
|
||||
ext {
|
||||
libVersions = [
|
||||
Kotlin : '1.1.1',
|
||||
SupportLib : '25.3.0',
|
||||
MariotakuCommons: '0.9.11',
|
||||
RestFu : '0.9.43',
|
||||
ObjectCursor : '0.9.16',
|
||||
PlayServices : '10.2.1',
|
||||
MapsUtils : '0.4.4',
|
||||
Crashlyrics : '2.6.7',
|
||||
FabricPlugin : '1.22.1',
|
||||
PlayPublisher : '1.1.5',
|
||||
DropboxCoreSdk : '2.1.2',
|
||||
GoogleDriveApi : 'v3-rev61-1.22.0',
|
||||
Exoplayer : 'r2.2.0',
|
||||
Toro : '2.1.0',
|
||||
LoganSquare : '1.3.7',
|
||||
IABv3 : '1.0.38',
|
||||
Mime4J : '0.7.2',
|
||||
Stetho : '1.4.2',
|
||||
OSMDroid : '5.6.4',
|
||||
LeakCanary : '1.5',
|
||||
TwitterText : '1.14.3',
|
||||
MediaViewerLibrary : '0.9.23',
|
||||
PickNCrop : '0.9.22'
|
||||
Kotlin : '1.1.1',
|
||||
SupportLib : '25.3.0',
|
||||
MariotakuCommons : '0.9.11',
|
||||
RestFu : '0.9.43',
|
||||
ObjectCursor : '0.9.16',
|
||||
PlayServices : '10.2.1',
|
||||
MapsUtils : '0.4.4',
|
||||
Crashlyrics : '2.6.7',
|
||||
FabricPlugin : '1.22.1',
|
||||
PlayPublisher : '1.1.5',
|
||||
DropboxCoreSdk : '2.1.2',
|
||||
GoogleDriveApi : 'v3-rev61-1.22.0',
|
||||
Exoplayer : 'r2.2.0',
|
||||
Toro : '2.1.0',
|
||||
LoganSquare : '1.3.7',
|
||||
IABv3 : '1.0.38',
|
||||
Mime4J : '0.7.2',
|
||||
Stetho : '1.4.2',
|
||||
OSMDroid : '5.6.4',
|
||||
LeakCanary : '1.5',
|
||||
TwitterText : '1.14.3',
|
||||
MediaViewerLibrary: '0.9.23',
|
||||
MultiValueSwitch : '0.9.8',
|
||||
PickNCrop : '0.9.22'
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,7 @@ dependencies {
|
||||
compile "com.github.mariotaku.MediaViewerLibrary:subsample-image-view:${libVersions['MediaViewerLibrary']}"
|
||||
compile 'com.github.mariotaku:SQLiteQB:0.9.12'
|
||||
compile "com.github.mariotaku.ObjectCursor:core:${libVersions['ObjectCursor']}"
|
||||
compile 'com.github.mariotaku:MultiValueSwitch:0.9.7'
|
||||
compile "com.github.mariotaku:MultiValueSwitch:${libVersions['MultiValueSwitch']}"
|
||||
compile 'com.github.mariotaku:AbstractTask:0.9.4'
|
||||
compile "com.github.mariotaku.CommonsLibrary:parcel:${libVersions['MariotakuCommons']}"
|
||||
compile "com.github.mariotaku.CommonsLibrary:io:${libVersions['MariotakuCommons']}"
|
||||
|
@ -196,6 +196,7 @@ class ComposeActivity : BaseActivity(), OnMenuItemClickListener, OnClickListener
|
||||
accountSelectorButton.setOnClickListener(this)
|
||||
replyLabel.setOnClickListener(this)
|
||||
locationSwitch.max = LOCATION_OPTIONS.size
|
||||
locationSwitch.highlightCheckedPositions = kotlin.IntArray(LOCATION_OPTIONS.size - 1) { it + 1 }
|
||||
val attachLocation = kPreferences[attachLocationKey]
|
||||
val attachPreciseLocation = kPreferences[attachPreciseLocationKey]
|
||||
if (attachLocation) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user