File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
AnkiDroid/src/main/java/com/ichi2/anki Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import android.view.KeyEvent
2222import androidx.fragment.app.Fragment
2323import androidx.fragment.app.FragmentContainerView
2424import androidx.fragment.app.commit
25+ import com.ichi2.anki.SingleFragmentActivity.Companion.getIntent
2526import com.ichi2.anki.android.input.ShortcutGroup
2627import com.ichi2.anki.android.input.ShortcutGroupProvider
2728import com.ichi2.anki.dialogs.customstudy.CustomStudyDialog.CustomStudyAction
@@ -42,7 +43,7 @@ import kotlin.reflect.jvm.jvmName
4243 *
4344 * [getIntent] can be used as an easy way to build a [SingleFragmentActivity]
4445 */
45- open class SingleFragmentActivity : AnkiActivity () {
46+ open class SingleFragmentActivity : AnkiActivity (R .layout.single_fragment_activity ) {
4647 override fun onCreate (savedInstanceState : Bundle ? ) {
4748 if (showedActivityFailedScreen(savedInstanceState)) {
4849 return
@@ -52,7 +53,6 @@ open class SingleFragmentActivity : AnkiActivity() {
5253 if (! ensureStoragePermissions()) {
5354 return
5455 }
55- setContentView(R .layout.single_fragment_activity)
5656 setTransparentStatusBar()
5757
5858 // avoid recreating the fragment on configuration changes
You can’t perform that action at this time.
0 commit comments