Skip to content

Commit 3599e0a

Browse files
committed
Fixed widget not respecting the tab setting (#125)
1 parent cadda80 commit 3599e0a

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

app/src/main/kotlin/org/fossify/clock/helpers/MyAnalogueTimeWidgetProvider.kt

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class MyAnalogueTimeWidgetProvider : AppWidgetProvider() {
4141

4242
private fun setupAppOpenIntent(context: Context, views: RemoteViews) {
4343
(context.getLaunchIntent() ?: Intent(context, SplashActivity::class.java)).apply {
44-
putExtra(OPEN_TAB, TAB_CLOCK)
4544
val pendingIntent = PendingIntent.getActivity(context, OPEN_APP_INTENT_ID, this, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE)
4645
views.setOnClickPendingIntent(R.id.widget_date_time_holder, pendingIntent)
4746
}

app/src/main/kotlin/org/fossify/clock/helpers/MyDigitalTimeWidgetProvider.kt

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class MyDigitalTimeWidgetProvider : AppWidgetProvider() {
7070

7171
private fun setupAppOpenIntent(context: Context, views: RemoteViews) {
7272
(context.getLaunchIntent() ?: Intent(context, SplashActivity::class.java)).apply {
73-
putExtra(OPEN_TAB, TAB_CLOCK)
7473
val pendingIntent = PendingIntent.getActivity(context, OPEN_APP_INTENT_ID, this, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE)
7574
views.setOnClickPendingIntent(R.id.widget_date_time_holder, pendingIntent)
7675
}

0 commit comments

Comments
 (0)