File tree Expand file tree Collapse file tree
androidTest/kotlin/ee/ria/DigiDoc/domain/preferences
main/kotlin/ee/ria/DigiDoc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -718,6 +718,4 @@ class DataStoreTest {
718718
719719 assertFalse(result)
720720 }
721-
722-
723721}
Original file line number Diff line number Diff line change @@ -124,8 +124,10 @@ class MainActivity :
124124 val webEidUri = intent.data?.takeIf { it.scheme == " web-eid-mobile" }
125125
126126 if (webEidUri != null ) {
127- val browserPackage = intent.getStringExtra(" com.android.browser.application_id" )
128- ?.takeIf { it.isNotEmpty() }
127+ val browserPackage =
128+ intent
129+ .getStringExtra(" com.android.browser.application_id" )
130+ ?.takeIf { it.isNotEmpty() }
129131 dataStore.setWebEidBrowserPackage(browserPackage)
130132 }
131133
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ class WebEidViewModel
5656 private val logTag = javaClass.simpleName
5757
5858 fun getWebEidBrowserPackage (): String? = dataStore.getWebEidBrowserPackage()
59+
5960 private val _authRequest = MutableStateFlow <WebEidAuthRequest ?>(null )
6061 val authRequest: StateFlow <WebEidAuthRequest ?> = _authRequest .asStateFlow()
6162 private val _certificateRequest = MutableStateFlow <WebEidCertificateRequest ?>(null )
You can’t perform that action at this time.
0 commit comments