2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/9987: Set FLAG_SECURE to dialog when flag set in activity.

This commit is contained in:
mcarare 2020-04-23 10:12:41 +03:00 committed by Emily Kager
parent 2aaeb8c3e4
commit 5aa32ad79a

View File

@ -35,6 +35,7 @@ import org.mozilla.fenix.components.metrics.Event
import org.mozilla.fenix.ext.components import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.getPreferenceKey import org.mozilla.fenix.ext.getPreferenceKey
import org.mozilla.fenix.ext.requireComponents import org.mozilla.fenix.ext.requireComponents
import org.mozilla.fenix.ext.secure
import org.mozilla.fenix.ext.settings import org.mozilla.fenix.ext.settings
import org.mozilla.fenix.ext.showToolbar import org.mozilla.fenix.ext.showToolbar
import java.util.concurrent.Executors import java.util.concurrent.Executors
@ -241,7 +242,7 @@ class LoginsFragment : PreferenceFragmentCompat(), AccountObserver {
startActivity(intent) startActivity(intent)
} }
create() create()
}.show() }.show().secure(activity)
it.settings().incrementShowLoginsSecureWarningCount() it.settings().incrementShowLoginsSecureWarningCount()
} }
} }