The failsafe activity were infrequently used while confusing users. Replace it with an app shortcut on Android 7.1+ and a separate app on earlier versions.
31 lines
1.1 KiB
XML
31 lines
1.1 KiB
XML
<shortcuts xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<shortcut
|
|
android:shortcutId="new_session"
|
|
android:enabled="true"
|
|
android:icon="@drawable/ic_new_session"
|
|
android:shortcutShortLabel="@string/new_session"
|
|
tools:targetApi="n_mr1">
|
|
<intent
|
|
android:action="android.intent.action.RUN"
|
|
android:targetPackage="com.termux"
|
|
android:targetClass="com.termux.app.TermuxActivity"/>
|
|
</shortcut>
|
|
|
|
<shortcut
|
|
android:shortcutId="new_failsafe_session"
|
|
android:enabled="true"
|
|
android:icon="@drawable/ic_new_session"
|
|
android:shortcutShortLabel="@string/new_session_failsafe"
|
|
tools:targetApi="n_mr1">
|
|
<intent
|
|
android:action="android.intent.action.RUN"
|
|
android:targetPackage="com.termux"
|
|
android:targetClass="com.termux.app.TermuxActivity">
|
|
<extra android:name="com.termux.app.failsafe_session" android:value="true" />
|
|
</intent>
|
|
</shortcut>
|
|
|
|
</shortcuts>
|