show sunday first at day picker when selected so
This commit is contained in:
parent
0e8e89dbd4
commit
c4cd5e14ab
|
@ -33,7 +33,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.simplemobiletools:commons:2.16.4'
|
compile 'com.simplemobiletools:commons:2.16.6'
|
||||||
compile 'joda-time:joda-time:2.9.1'
|
compile 'joda-time:joda-time:2.9.1'
|
||||||
compile 'com.facebook.stetho:stetho:1.4.1'
|
compile 'com.facebook.stetho:stetho:1.4.1'
|
||||||
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
|
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
|
||||||
|
|
|
@ -4,6 +4,7 @@ import android.app.Activity
|
||||||
import android.support.v7.app.AlertDialog
|
import android.support.v7.app.AlertDialog
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import com.simplemobiletools.calendar.R
|
import com.simplemobiletools.calendar.R
|
||||||
|
import com.simplemobiletools.calendar.extensions.config
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
import com.simplemobiletools.commons.views.MyAppCompatCheckbox
|
||||||
import kotlinx.android.synthetic.main.dialog_vertical_linear_layout.view.*
|
import kotlinx.android.synthetic.main.dialog_vertical_linear_layout.view.*
|
||||||
|
@ -27,6 +28,10 @@ class RepeatRuleDailyDialog(val activity: Activity, val curRepeatRule: Int, val
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (activity.config.isSundayFirst) {
|
||||||
|
checkboxes.add(0, checkboxes.removeAt(6))
|
||||||
|
}
|
||||||
|
|
||||||
checkboxes.forEach {
|
checkboxes.forEach {
|
||||||
view.dialog_vertical_linear_layout.addView(it)
|
view.dialog_vertical_linear_layout.addView(it)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue