Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

Launcher: open the guide through start(), which also catches SecurityException

Cameron Cook3ddf40ed6386
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/RemoteKeys.java b/launcher/app/src/main/java/com/gathin/tvhome/RemoteKeys.java
index 14df9ae70..105fabc89 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/RemoteKeys.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/RemoteKeys.java
@@ -367,13 +367,9 @@ final class RemoteKeys {
String guide = guidePackage(pkg);
if (guide != null) {
// The program guide, asked for the way Android TV's Live TV apps take it: the programs directory.
- Intent view = new Intent(Intent.ACTION_VIEW)
+ start(ctx, new Intent(Intent.ACTION_VIEW)
.setDataAndType(TvContract.Programs.CONTENT_URI, "vnd.android.cursor.dir/program")
- .setPackage(guide).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- try {
- ctx.startActivity(view);
- } catch (ActivityNotFoundException ignored) {
- }
+ .setPackage(guide));
return;
}
String inputId = inputId(pkg);