show sunday first at day picker when selected so

This commit is contained in:
tibbi 2017-04-15 11:44:50 +02:00
parent 0e8e89dbd4
commit c4cd5e14ab
2 changed files with 6 additions and 1 deletions

View File

@ -33,7 +33,7 @@ android {
}
dependencies {
compile 'com.simplemobiletools:commons:2.16.4'
compile 'com.simplemobiletools:commons:2.16.6'
compile 'joda-time:joda-time:2.9.1'
compile 'com.facebook.stetho:stetho:1.4.1'
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'

View File

@ -4,6 +4,7 @@ import android.app.Activity
import android.support.v7.app.AlertDialog
import android.view.View
import com.simplemobiletools.calendar.R
import com.simplemobiletools.calendar.extensions.config
import com.simplemobiletools.commons.extensions.setupDialogStuff
import com.simplemobiletools.commons.views.MyAppCompatCheckbox
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 {
view.dialog_vertical_linear_layout.addView(it)
}