Added ASSIST to the manifest to use the app like google assistant (from bottom corners)

This commit is contained in:
Mathieu 2022-01-03 17:28:41 +01:00
parent 20188c0b66
commit 4de9e66d0e

View File

@ -8,7 +8,8 @@
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.JarvisCompose"> android:theme="@style/Theme.JarvisCompose"
android:fullBackupContent="true">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:exported="true" android:exported="true"
@ -16,9 +17,17 @@
android:theme="@style/Theme.JarvisCompose.NoActionBar"> android:theme="@style/Theme.JarvisCompose.NoActionBar">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
<intent-filter>
<action android:name="android.intent.action.ASSIST" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data
android:name="com.android.systemui.action_assist_icon"
android:resource="@mipmap/ic_launcher" />
</activity> </activity>
</application> </application>