Skip to content

Commit 6a749ee

Browse files
authored
Merge pull request #126 from Aga-C/widget-open-tab
Fixed widget not respecting the tab setting (#125)
2 parents cadda80 + 3599e0a commit 6a749ee

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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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)