Skip to content

Commit 4edceb1

Browse files
committed
Fix FLAG_SECURE import in LoginActivity
The FLAG_SECURE constant was incorrectly imported from Display instead of WindowManager.LayoutParams. This fixes the import to use the correct location for the flag that prevents screenshots and screen recording of the login screen.
1 parent 23874ff commit 4edceb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/SalesforceSDK/src/com/salesforce/androidsdk/ui/LoginActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ import android.provider.Settings.EXTRA_BIOMETRIC_AUTHENTICATORS_ALLOWED
5757
import android.security.KeyChain.choosePrivateKeyAlias
5858
import android.security.KeyChain.getCertificateChain
5959
import android.security.KeyChain.getPrivateKey
60-
import android.view.Display.FLAG_SECURE
6160
import android.view.KeyEvent
6261
import android.view.KeyEvent.KEYCODE_BACK
6362
import android.view.ViewGroup
63+
import android.view.WindowManager.LayoutParams.FLAG_SECURE
6464
import android.webkit.ClientCertRequest
6565
import android.webkit.SslErrorHandler
6666
import android.webkit.WebChromeClient

0 commit comments

Comments
 (0)