fix #1182, open the daily view from the monthly widget, if clicked on day
This commit is contained in:
parent
7ceb9dc463
commit
0544bc9227
|
@ -60,6 +60,7 @@ class MyWidgetMonthlyProvider : AppWidgetProvider() {
|
||||||
private fun setupDayOpenIntent(context: Context, views: RemoteViews, id: Int, dayCode: String) {
|
private fun setupDayOpenIntent(context: Context, views: RemoteViews, id: Int, dayCode: String) {
|
||||||
(context.getLaunchIntent() ?: Intent(context, SplashActivity::class.java)).apply {
|
(context.getLaunchIntent() ?: Intent(context, SplashActivity::class.java)).apply {
|
||||||
putExtra(DAY_CODE, dayCode)
|
putExtra(DAY_CODE, dayCode)
|
||||||
|
putExtra(VIEW_TO_OPEN, DAILY_VIEW)
|
||||||
val pendingIntent = PendingIntent.getActivity(context, Integer.parseInt(dayCode), this, 0)
|
val pendingIntent = PendingIntent.getActivity(context, Integer.parseInt(dayCode), this, 0)
|
||||||
views.setOnClickPendingIntent(id, pendingIntent)
|
views.setOnClickPendingIntent(id, pendingIntent)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue