fix #431, make sure the proper day gets opened after clicking a widget

This commit is contained in:
tibbi
2018-04-11 23:24:48 +02:00
parent 5107bc5791
commit 8bd24a5642
2 changed files with 10 additions and 1 deletions

View File

@@ -26,6 +26,7 @@
<activity <activity
android:name=".activities.SplashActivity" android:name=".activities.SplashActivity"
android:launchMode="singleTask"
android:theme="@style/SplashTheme"> android:theme="@style/SplashTheme">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN"/> <action android:name="android.intent.action.MAIN"/>
@@ -34,7 +35,9 @@
</intent-filter> </intent-filter>
</activity> </activity>
<activity android:name=".activities.MainActivity"> <activity
android:name=".activities.MainActivity"
android:launchMode="singleTask">
<meta-data <meta-data
android:name="android.app.default_searchable" android:name="android.app.default_searchable"
android:resource="@xml/searchable"/> android:resource="@xml/searchable"/>

View File

@@ -209,6 +209,12 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
} }
} }
override fun onNewIntent(intent: Intent?) {
super.onNewIntent(intent)
setIntent(intent)
checkOpenIntents()
}
private fun storeStateVariables() { private fun storeStateVariables() {
config.apply { config.apply {
mStoredIsSundayFirst = isSundayFirst mStoredIsSundayFirst = isSundayFirst