Skip to content

Commit

Permalink
Disallow screenshots on Pin lock pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Feb 16, 2024
1 parent 167662f commit 2d9382a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package io.horizontalsystems.bankwallet.modules.lockscreen
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.WindowManager
import androidx.activity.OnBackPressedCallback
import androidx.activity.compose.setContent
import io.horizontalsystems.bankwallet.core.BaseActivity
Expand All @@ -12,6 +13,7 @@ import io.horizontalsystems.bankwallet.ui.compose.ComposeAppTheme
class LockScreenActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
window.addFlags(WindowManager.LayoutParams.FLAG_SECURE)

setContent {
ComposeAppTheme {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import io.horizontalsystems.bankwallet.core.setNavigationResultX
import io.horizontalsystems.bankwallet.modules.pin.ui.PinConfirm
import kotlinx.parcelize.Parcelize

class ConfirmPinFragment : BaseComposeFragment() {
class ConfirmPinFragment : BaseComposeFragment(screenshotEnabled = false) {

@Composable
override fun GetContent(navController: NavController) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import io.horizontalsystems.bankwallet.R
import io.horizontalsystems.bankwallet.core.BaseComposeFragment
import io.horizontalsystems.bankwallet.modules.pin.ui.PinSet

class EditDuressPinFragment : BaseComposeFragment() {
class EditDuressPinFragment : BaseComposeFragment(screenshotEnabled = false) {

@Composable
override fun GetContent(navController: NavController) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import io.horizontalsystems.bankwallet.R
import io.horizontalsystems.bankwallet.core.BaseComposeFragment
import io.horizontalsystems.bankwallet.modules.pin.ui.PinSet

class EditPinFragment : BaseComposeFragment() {
class EditPinFragment : BaseComposeFragment(screenshotEnabled = false) {

@Composable
override fun GetContent(navController: NavController) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import io.horizontalsystems.bankwallet.modules.pin.ui.PinSet
import io.horizontalsystems.core.helpers.HudHelper
import kotlinx.parcelize.Parcelize

class SetDuressPinFragment : BaseComposeFragment() {
class SetDuressPinFragment : BaseComposeFragment(screenshotEnabled = false) {

@Composable
override fun GetContent(navController: NavController) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import io.horizontalsystems.bankwallet.core.setNavigationResultX
import io.horizontalsystems.bankwallet.modules.pin.ui.PinSet
import kotlinx.parcelize.Parcelize

class SetPinFragment : BaseComposeFragment() {
class SetPinFragment : BaseComposeFragment(screenshotEnabled = false) {

@Composable
override fun GetContent(navController: NavController) {
Expand Down

0 comments on commit 2d9382a

Please sign in to comment.