From 734a1aeb01273113500e49c8e7bcf2f97db2f124 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Fri, 18 Aug 2023 22:12:16 -0400 Subject: [PATCH] Enable Android TV 'OK' Button (#281) --- lib/main.dart | 6 ++++-- lib/providers/apps_provider.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index efcce43..5074433 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -22,7 +22,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart'; // ignore: implementation_imports import 'package:easy_localization/src/localization.dart'; -const String currentVersion = '0.13.25'; +const String currentVersion = '0.13.26'; const String currentReleaseTag = 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES @@ -299,7 +299,9 @@ class _ObtainiumState extends State { ? lightColorScheme : darkColorScheme, fontFamily: 'Metropolis'), - home: const HomePage()); + home: Shortcuts(shortcuts: { + LogicalKeySet(LogicalKeyboardKey.select): const ActivateIntent(), + }, child: const HomePage())); }); } } diff --git a/lib/providers/apps_provider.dart b/lib/providers/apps_provider.dart index bc03997..73cd19e 100644 --- a/lib/providers/apps_provider.dart +++ b/lib/providers/apps_provider.dart @@ -344,7 +344,7 @@ class AppsProvider with ChangeNotifier { // If we did not install the app (or it isn't installed), silent install is not possible return false; } - var targetSDK; + int? targetSDK; try { targetSDK = (await pm.getPackageInfo(packageName: app.id)) ?.applicationInfo diff --git a/pubspec.yaml b/pubspec.yaml index e2e43e4..83b618f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.13.25+189 # When changing this, update the tag in main() accordingly +version: 0.13.26+190 # When changing this, update the tag in main() accordingly environment: sdk: '>=2.18.2 <3.0.0'