termux-app

Форк
0
/
shortcuts.xml 
54 строки · 2.1 Кб
1
<shortcuts xmlns:tools="http://schemas.android.com/tools"
2
    xmlns:android="http://schemas.android.com/apk/res/android">
3

4
    <!--
5
        For shortcut.xml:
6
        If applicationId in build.gradle is changed from "com.termux", then targetPackage will
7
        need to be manually patched since ${applicationId} variable or resource string does not work.
8
        If package name in AndroidManifest is changed from "com.termux", then targetClass will
9
        need to be manually patched since dot (.) prefix does not work to automatically prefix the
10
        package name.
11
    -->
12

13
    <shortcut
14
        android:shortcutId="new_session"
15
        android:enabled="true"
16
        android:icon="@drawable/ic_new_session"
17
        android:shortcutShortLabel="@string/action_new_session"
18
        tools:targetApi="n_mr1">
19
        <intent
20
            android:action="android.intent.action.RUN"
21
            android:targetPackage="com.termux"
22
            android:targetClass="com.termux.app.TermuxActivity"
23
            android:name="android.shortcut.conversation"/>
24
    </shortcut>
25

26
    <shortcut
27
        android:shortcutId="new_failsafe_session"
28
        android:enabled="true"
29
        android:icon="@drawable/ic_new_session"
30
        android:shortcutShortLabel="@string/action_new_session_failsafe"
31
        tools:targetApi="n_mr1">
32
        <intent
33
            android:action="android.intent.action.RUN"
34
            android:targetPackage="com.termux"
35
            android:targetClass="com.termux.app.TermuxActivity"
36
            android:name="android.shortcut.conversation">
37
            <extra android:name="com.termux.app.failsafe_session" android:value="true"/>
38
        </intent>
39
    </shortcut>
40

41
    <shortcut
42
        android:shortcutId="settings"
43
        android:enabled="true"
44
        android:icon="@drawable/ic_settings"
45
        android:shortcutShortLabel="@string/action_open_settings"
46
        tools:targetApi="n_mr1">
47
        <intent
48
            android:action="android.intent.action.VIEW"
49
            android:targetPackage="com.termux"
50
            android:targetClass="com.termux.app.activities.SettingsActivity"
51
            android:name="android.shortcut.conversation"/>
52
    </shortcut>
53

54
</shortcuts>
55

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.