mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-27 09:01:20 +01:00
reuse dateFormats from the Commons library
This commit is contained in:
parent
093e39fb78
commit
940de7900c
@ -4,7 +4,6 @@ apply plugin: 'kotlin-android-extensions'
|
||||
|
||||
android {
|
||||
compileSdkVersion 27
|
||||
buildToolsVersion "27.0.2"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.simplemobiletools.calendar"
|
||||
@ -43,7 +42,7 @@ ext {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:3.3.12'
|
||||
implementation 'com.simplemobiletools:commons:3.4.11'
|
||||
implementation 'joda-time:joda-time:2.9.9'
|
||||
implementation 'com.facebook.stetho:stetho:1.5.0'
|
||||
implementation 'com.android.support:multidex:1.0.2'
|
||||
|
@ -438,21 +438,6 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
||||
return eventTypeId
|
||||
}
|
||||
|
||||
private fun getDateFormats() = arrayListOf(
|
||||
"yyyy-MM-dd",
|
||||
"yyyyMMdd",
|
||||
"yyyy.MM.dd",
|
||||
"yy-MM-dd",
|
||||
"yyMMdd",
|
||||
"yy.MM.dd",
|
||||
"yy/MM/dd",
|
||||
"MM-dd",
|
||||
"--MM-dd",
|
||||
"MMdd",
|
||||
"MM/dd",
|
||||
"MM.dd"
|
||||
)
|
||||
|
||||
private fun updateView(view: Int) {
|
||||
calendar_fab.beGoneIf(view == YEARLY_VIEW)
|
||||
mIsMonthSelected = view == MONTHLY_VIEW
|
||||
|
Loading…
x
Reference in New Issue
Block a user