Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/fill_screens.py b/fill_screens.py
index a887792..b1afa5d 100755
--- a/fill_screens.py
+++ b/fill_screens.py
@@ -21,6 +21,8 @@ APPLICATION_COMPONENTS = [
"com.android.mms/com.android.mms.ui.ConversationList",
"com.android.contacts/com.android.contacts.activities.PeopleActivity",
"com.android.dialer/com.android.dialer.DialtactsActivity"
+ "com.meizu.notepaper/com.meizu.flyme.notepaper.NoteEditActivity"
+ "com.meizu.filemanager/com.meizu.flyme.filemanager.activity.FileManagerActivity"
]
def usage():
diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml
index 7697e5a..2263d8b 100644
--- a/res/values-zh-rCN/strings.xml
+++ b/res/values-zh-rCN/strings.xml
@@ -172,5 +172,7 @@
<string name="email">邮件</string>
<string name="music">音乐</string>
<string name="sms">信息</string>
+ <string name="note">便签</string>
+ <string name="document">文档</string>
<!-- 以上是搜索增加的内容 -->
</resources>
diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml
index 63404bd..9694224 100644
--- a/res/values-zh-rTW/strings.xml
+++ b/res/values-zh-rTW/strings.xml
@@ -139,6 +139,8 @@
<string name="clear_shortcuts_prompt">"您要清除所有近期選擇的搜尋建議的快捷方式嗎?"
\n\n"要清除瀏覽器瀏覽紀錄,請使用瀏覽器的設定。"</string>
<string name="clear_shortcuts_summary">"清除最近所選搜尋建議的快捷方式"</string>
<string name="contact">"聯絡人"</string>
+ <string name="note">"便簽"</string>
+ <string name="document">文檔</string>
<string name="corpus_description_apps">"已安裝的應用的名稱"</string>
<string name="corpus_description_web">"Google 網頁搜尋、書籤和瀏覽器瀏覽紀錄"</strin
g>
<string name="corpus_hint_apps">"搜尋應用"</string>
diff --git a/res/values/config.xml b/res/values/config.xml
index efeb89a..d91957d 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -105,6 +105,8 @@
<item>com.google.android.apps.translate/.HomeActivity</item>
<item>com.android.email/.activity.EmailActivity</item>
<item>com.android.dialer/com.android.contacts.common.activities.PeopleActivity</item>
+ <item>com.meizu.notepaper/com.meizu.flyme.notepaper.NoteEditActivity</item>
+ <item>com.meizu.filemanager/com.meizu.flyme.filemanager.activity.FileManagerActivity</item>
</string-array>
<!-- Suggestion URIs for which the corresponding content provider will be used as a default
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 0b42e57..c1a22e3 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -400,6 +400,8 @@ s -->
<string name="email">Email</string>
<string name="music">Music</string>
<string name="sms">Messaging</string>
+ <string name="note">Note</string>
+ <string name="document">Document</string>
<!-- 以上是搜索增加的内容 -->
<string name="restor_text"> Cancel the function under WLAN automatic backup desktop in the AppCenter, and then can use long press again</string>
</resources>
diff --git a/src/com/android/launcher3/search/MzSearcher.java b/src/com/android/launcher3/search/MzSearcher.java
index 1dfb2a1..36fcf74 100644
--- a/src/com/android/launcher3/search/MzSearcher.java
+++ b/src/com/android/launcher3/search/MzSearcher.java
@@ -208,7 +208,8 @@ public class MzSearcher {
mCorporaNameMap.put("com.meizu.media.music/.MusicActivity", context.getResources().getString(R.string.music));
mCorporaNameMap.put("com.android.email/.activity.EmailActivity", context.getResources().getString(R.string.email));
mCorporaNameMap.put("com.android.dialer/com.android.contacts.common.activities.PeopleActivity", context.getResources().getString(R.string.contact));
-
+ mCorporaNameMap.put("com.meizu.notepaper/com.meizu.flyme.notepaper.NoteEditActivity", context.getResources().getString(R.string.note));
+ mCorporaNameMap.put("com.meizu.filemanager/com.meizu.flyme.filemanager.activity.FileManagerActivity", context.getResources().getString(R.string.document));
if (DBG) Log.d(QSBTAG, "onResume()");
updateSuggestionsBuffered();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.