Skip to content

Commit

Permalink
facilitar play
Browse files Browse the repository at this point in the history
  • Loading branch information
BrayanDSO committed May 1, 2024
1 parent 1f2ec0d commit cfebf80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AnkiDroid/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@
/>
<activity
android:name="com.ichi2.anki.previewer.CardViewerActivity"
android:exported="false"
android:exported="true"
android:configChanges="orientation|screenSize"
/>
<activity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ package com.ichi2.anki.previewer
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.core.os.bundleOf
import com.ichi2.anki.SingleFragmentActivity
import com.ichi2.anki.ui.windows.reviewer.ReviewerFragment
import kotlin.reflect.KClass
import kotlin.reflect.jvm.jvmName

Expand All @@ -29,6 +31,11 @@ import kotlin.reflect.jvm.jvmName
class CardViewerActivity : SingleFragmentActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
// TODO remove this and the xport=
intent.apply {
putExtra(FRAGMENT_NAME_EXTRA, ReviewerFragment::class.jvmName)
putExtra(FRAGMENT_ARGS_EXTRA, bundleOf())
}
super.onCreate(savedInstanceState)
// TODO reajeitar o fitsSystemWindows
// enableEdgeToEdge()
Expand Down

0 comments on commit cfebf80

Please sign in to comment.