adding Whats new dialog

This commit is contained in:
tibbi 2017-01-04 16:43:21 +01:00
parent c58a75fd0e
commit 243b410967
2 changed files with 14 additions and 1 deletions

View File

@ -17,11 +17,13 @@ import com.simplemobiletools.calendar.extensions.updateWidgets
import com.simplemobiletools.calendar.fragments.EventListFragment
import com.simplemobiletools.calendar.helpers.*
import com.simplemobiletools.calendar.helpers.Formatter
import com.simplemobiletools.commons.extensions.checkWhatsNew
import com.simplemobiletools.commons.extensions.updateTextColors
import com.simplemobiletools.commons.helpers.LICENSE_AMBILWARNA
import com.simplemobiletools.commons.helpers.LICENSE_JODA
import com.simplemobiletools.commons.helpers.LICENSE_KOTLIN
import com.simplemobiletools.commons.helpers.LICENSE_STETHO
import com.simplemobiletools.commons.models.Release
import kotlinx.android.synthetic.main.activity_main.*
import org.joda.time.DateTime
import org.joda.time.DateTimeZone
@ -42,6 +44,7 @@ class MainActivity : SimpleActivity(), EventListFragment.DeleteListener {
calendar_fab.setOnClickListener { addNewEvent() }
updateViewPager()
mStoredTextColor = config.textColor
checkWhatsNewDialog()
}
override fun onResume() {
@ -246,4 +249,14 @@ class MainActivity : SimpleActivity(), EventListFragment.DeleteListener {
show()
}
}
private fun checkWhatsNewDialog() {
arrayListOf<Release>().apply {
add(Release(39, R.string.release_39))
add(Release(40, R.string.release_40))
add(Release(42, R.string.release_42))
add(Release(44, R.string.release_44))
checkWhatsNew(this, BuildConfig.VERSION_CODE)
}
}
}

View File

@ -7,5 +7,5 @@
<stroke
android:width="1dp"
android:color="#ffffffff"/>
android:color="@android:color/white"/>
</shape>