diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/CardTemplateEditor.kt b/AnkiDroid/src/main/java/com/ichi2/anki/CardTemplateEditor.kt index f4094e488dd8..3202bcbf1b80 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/CardTemplateEditor.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/CardTemplateEditor.kt @@ -144,7 +144,7 @@ open class CardTemplateEditor : AnkiActivity(), DeckSelectionListener { } slidingTabLayout = findViewById(R.id.sliding_tabs) - viewPager = findViewById(R.id.pager) + viewPager = findViewById(R.id.card_template_editor_pager) setNavigationBarColor(R.attr.appBarColor) // Disable the home icon diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/scheduling/SetDueDateDialog.kt b/AnkiDroid/src/main/java/com/ichi2/anki/scheduling/SetDueDateDialog.kt index f865709f55b9..1c50d53a5733 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/scheduling/SetDueDateDialog.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/scheduling/SetDueDateDialog.kt @@ -125,7 +125,7 @@ class SetDueDateDialog : DialogFragment() { viewModel.isValidFlow.collect { isValid -> positiveButton.isEnabled = isValid } } // setup viewpager + tabs - val viewPager = findViewById(R.id.pager)!! + val viewPager = findViewById(R.id.set_due_date_pager)!! viewPager.adapter = DueDateStateAdapter(this@SetDueDateDialog) val tabLayout = findViewById(R.id.tab_layout)!! TabLayoutMediator(tabLayout, viewPager) { tab: TabLayout.Tab, position: Int -> diff --git a/AnkiDroid/src/main/res/layout/card_template_editor_activity.xml b/AnkiDroid/src/main/res/layout/card_template_editor_activity.xml index 766e7d8a5da0..88e225a2332f 100644 --- a/AnkiDroid/src/main/res/layout/card_template_editor_activity.xml +++ b/AnkiDroid/src/main/res/layout/card_template_editor_activity.xml @@ -27,7 +27,7 @@ app:tabGravity="start" app:tabMode="scrollable" /> diff --git a/AnkiDroid/src/main/res/layout/dialog_set_due_date.xml b/AnkiDroid/src/main/res/layout/dialog_set_due_date.xml index e108e3df5194..e4e357b5945c 100644 --- a/AnkiDroid/src/main/res/layout/dialog_set_due_date.xml +++ b/AnkiDroid/src/main/res/layout/dialog_set_due_date.xml @@ -53,7 +53,7 @@