make sure the Clock tab is opened at widget press
This commit is contained in:
parent
01429207c9
commit
d91895f336
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue