For #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 da3fca0f29
commit 72fe52fcb8

View File

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