mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-22 17:51:29 +03:00
Ensure initial currentSection is Section.Home
for Android
This ensures that the Home `NavigationItem` is not disabled.
This commit is contained in:
parent
de99f6bd32
commit
29a1bcf91c
@ -93,12 +93,8 @@ Future<Widget> initialize() async {
|
||||
]),
|
||||
// this specifies the priority of sections to show when
|
||||
// the connected YubiKey does not support current section
|
||||
androidSectionPriority.overrideWithValue([
|
||||
Section.accounts,
|
||||
Section.fingerprints,
|
||||
Section.passkeys,
|
||||
Section.home
|
||||
]),
|
||||
androidSectionPriority.overrideWithValue(
|
||||
[Section.accounts, Section.fingerprints, Section.passkeys]),
|
||||
supportedThemesProvider.overrideWith(
|
||||
(ref) => ref.watch(androidSupportedThemesProvider),
|
||||
),
|
||||
|
@ -121,7 +121,7 @@ class AndroidCurrentSectionNotifier extends CurrentSectionNotifier {
|
||||
AndroidCurrentSectionNotifier(
|
||||
this._supportedSectionsByPriority,
|
||||
this._appContextHandler,
|
||||
) : super(Section.accounts);
|
||||
) : super(Section.home);
|
||||
|
||||
@override
|
||||
void setCurrentSection(Section section) {
|
||||
|
Loading…
Reference in New Issue
Block a user