Skip to content

Commit

Permalink
fix: restore Android TV support
Browse files Browse the repository at this point in the history
  • Loading branch information
butzist committed Dec 30, 2023
1 parent 2d1f6a6 commit e3cebb1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 171 deletions.
11 changes: 10 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,18 @@
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />


<uses-feature
android:name="android.software.leanback"
android:required="false" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />

<application
android:name=".ActivityLauncherApp"
android:allowBackup="true"
android:banner="@drawable/launcher_banner"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
Expand All @@ -19,11 +28,11 @@
<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.ActivityLauncher">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<activity
Expand Down
170 changes: 0 additions & 170 deletions app/src/main/res/drawable/ic_launcher_background.xml

This file was deleted.

8 changes: 8 additions & 0 deletions app/src/main/res/drawable/launcher_banner.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:angle="0"
android:endColor="#555555"
android:startColor="@color/ic_launcher_background"
android:type="linear" />
</shape>

0 comments on commit e3cebb1

Please sign in to comment.