mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 10:11:52 +03:00
add support for Home page in Android
This commit is contained in:
parent
3272324701
commit
3c8eee9b78
@ -58,7 +58,7 @@ Future<Widget> initialize() async {
|
||||
overrides: [
|
||||
supportedAppsProvider.overrideWith(
|
||||
(ref) {
|
||||
return [Application.accounts, Application.passkeys];
|
||||
return [Application.home, Application.accounts, Application.passkeys];
|
||||
},
|
||||
),
|
||||
prefProvider.overrideWithValue(await SharedPreferences.getInstance()),
|
||||
@ -117,7 +117,6 @@ Future<Widget> initialize() async {
|
||||
// Disable unimplemented feature
|
||||
..setFeature(features.piv, false)
|
||||
..setFeature(features.otp, false)
|
||||
..setFeature(features.home, false)
|
||||
..setFeature(features.management, false);
|
||||
});
|
||||
|
||||
|
@ -19,7 +19,6 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
|
||||
import '../../core/state.dart';
|
||||
import '../models.dart';
|
||||
import '../state.dart';
|
||||
import 'device_picker.dart';
|
||||
@ -127,9 +126,7 @@ class NavigationContent extends ConsumerWidget {
|
||||
.where(
|
||||
(app) => app.getAvailability(data) != Availability.unsupported)
|
||||
.toList()
|
||||
: !isAndroid // TODO: Remove check when Home is implemented on Android
|
||||
? [Application.home]
|
||||
: <Application>[];
|
||||
: [Application.home];
|
||||
availableApps.remove(Application.management);
|
||||
final currentApp = ref.watch(currentAppProvider);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user