mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 02:01:36 +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
|
// this specifies the priority of sections to show when
|
||||||
// the connected YubiKey does not support current section
|
// the connected YubiKey does not support current section
|
||||||
androidSectionPriority.overrideWithValue([
|
androidSectionPriority.overrideWithValue(
|
||||||
Section.accounts,
|
[Section.accounts, Section.fingerprints, Section.passkeys]),
|
||||||
Section.fingerprints,
|
|
||||||
Section.passkeys,
|
|
||||||
Section.home
|
|
||||||
]),
|
|
||||||
supportedThemesProvider.overrideWith(
|
supportedThemesProvider.overrideWith(
|
||||||
(ref) => ref.watch(androidSupportedThemesProvider),
|
(ref) => ref.watch(androidSupportedThemesProvider),
|
||||||
),
|
),
|
||||||
|
@ -121,7 +121,7 @@ class AndroidCurrentSectionNotifier extends CurrentSectionNotifier {
|
|||||||
AndroidCurrentSectionNotifier(
|
AndroidCurrentSectionNotifier(
|
||||||
this._supportedSectionsByPriority,
|
this._supportedSectionsByPriority,
|
||||||
this._appContextHandler,
|
this._appContextHandler,
|
||||||
) : super(Section.accounts);
|
) : super(Section.home);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void setCurrentSection(Section section) {
|
void setCurrentSection(Section section) {
|
||||||
|
Loading…
Reference in New Issue
Block a user