|
98 | 98 | </activity>
|
99 | 99 | <activity android:name=".main.dictionaries.search.RhymerRouterActivity"
|
100 | 100 | android:theme="@android:style/Theme.NoDisplay"
|
| 101 | + android:label="@string/tab_rhymer" |
101 | 102 | android:exported="true">
|
102 | 103 | <intent-filter android:icon="@drawable/ic_rhymer" android:label="@string/tab_rhymer">
|
103 | 104 | <action android:name="android.intent.action.PROCESS_TEXT"/>
|
104 | 105 | <category android:name="android.intent.category.DEFAULT" />
|
105 | 106 | <data android:mimeType="text/plain" />
|
106 | 107 | </intent-filter>
|
| 108 | + <!-- |
| 109 | + Add this intent-filter as a workaround to make the PROCESS_TEXT |
| 110 | + intent-filter work in Google apps (ex: chrome, keep, ...). |
| 111 | + https://stackoverflow.com/a/72930519/1204440 |
| 112 | + Note: we only need to add it to one of the three activities, and |
| 113 | + this will make PROCESS_TEXT work in all three. |
| 114 | + --> |
| 115 | + <intent-filter> |
| 116 | + <action android:name="android.intent.action.VIEW" /> |
| 117 | + <data android:scheme="https" /> |
| 118 | + </intent-filter> |
107 | 119 | </activity>
|
108 | 120 | <activity android:name=".main.dictionaries.search.ThesaurusRouterActivity"
|
109 | 121 | android:theme="@android:style/Theme.NoDisplay"
|
| 122 | + android:label="@string/tab_thesaurus" |
110 | 123 | android:exported="true">
|
111 | 124 | <intent-filter android:icon="@drawable/ic_thesaurus" android:label="@string/tab_thesaurus">
|
112 | 125 | <action android:name="android.intent.action.PROCESS_TEXT"/>
|
|
116 | 129 | </activity>
|
117 | 130 | <activity android:name=".main.dictionaries.search.DictionaryRouterActivity"
|
118 | 131 | android:theme="@android:style/Theme.NoDisplay"
|
| 132 | + android:label="@string/tab_dictionary" |
119 | 133 | android:exported="true">
|
120 | 134 | <intent-filter android:icon="@drawable/ic_dictionary" android:label="@string/tab_dictionary">
|
121 | 135 | <action android:name="android.intent.action.PROCESS_TEXT"/>
|
|
0 commit comments