make sure the Clock tab is opened at widget press

This commit is contained in:
tibbi 2018-03-12 20:03:31 +01:00
parent 01429207c9
commit d91895f336
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,8 @@ class MyWidgetDateTimeProvider : AppWidgetProvider() {
private fun setupAppOpenIntent(context: Context, views: RemoteViews) { private fun setupAppOpenIntent(context: Context, views: RemoteViews) {
Intent(context, SplashActivity::class.java).apply { Intent(context, SplashActivity::class.java).apply {
val pendingIntent = PendingIntent.getActivity(context, OPEN_APP_INTENT_ID, this, 0) putExtra(OPEN_TAB, TAB_CLOCK)
val pendingIntent = PendingIntent.getActivity(context, OPEN_APP_INTENT_ID, this, PendingIntent.FLAG_UPDATE_CURRENT)
views.setOnClickPendingIntent(R.id.widget_date_time_holder, pendingIntent) views.setOnClickPendingIntent(R.id.widget_date_time_holder, pendingIntent)
} }
} }