reuse dateFormats from the Commons library

This commit is contained in:
tibbi 2017-12-27 16:35:36 +01:00
parent 093e39fb78
commit 940de7900c
2 changed files with 1 additions and 17 deletions

View File

@ -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'

View File

@ -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