version:3.0

fix:
update:文件夹增加默认名字
This commit is contained in:
2022-03-07 18:08:51 +08:00
parent f43e348a75
commit e33b21142f
6 changed files with 10 additions and 7 deletions

View File

@@ -66,8 +66,8 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 26 minSdkVersion 26
targetSdkVersion 28 targetSdkVersion 28
versionCode 20 versionCode 21
versionName "2.9" versionName "3.0"
ndk { ndk {
//选择要添加的对应 cpu 类型的 .so 库。 //选择要添加的对应 cpu 类型的 .so 库。
abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'

View File

@@ -20,7 +20,7 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android" <resources xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="app_name" msgid="649227358658669779">"Launcher3"</string> <string name="app_name" msgid="649227358658669779">"Launcher3"</string>
<string name="folder_name" msgid="7371454440695724752"></string> <string name="folder_name" msgid="7371454440695724752">文件夹</string>
<string name="work_folder_name" msgid="3753320833950115786">"Work"</string> <string name="work_folder_name" msgid="3753320833950115786">"Work"</string>
<string name="activity_not_found" msgid="8071924732094499514">"未安装该应用。"</string> <string name="activity_not_found" msgid="8071924732094499514">"未安装该应用。"</string>
<string name="activity_not_available" msgid="7456344436509528827">"应用不可用"</string> <string name="activity_not_available" msgid="7456344436509528827">"应用不可用"</string>

View File

@@ -26,7 +26,7 @@
<string name="app_uiui">桌面</string> <string name="app_uiui">桌面</string>
<!-- Default folder name --> <!-- Default folder name -->
<string name="folder_name"></string> <string name="folder_name">文件夹</string>
<!-- Work folder name --> <!-- Work folder name -->
<string name="work_folder_name">Work</string> <string name="work_folder_name">Work</string>
<!-- Displayed when user selects a shortcut for an app that was uninstalled [CHAR_LIMIT=none]--> <!-- Displayed when user selects a shortcut for an app that was uninstalled [CHAR_LIMIT=none]-->

View File

@@ -2084,6 +2084,7 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
FolderIcon addFolder(CellLayout layout, int container, final int screenId, int cellX, FolderIcon addFolder(CellLayout layout, int container, final int screenId, int cellX,
int cellY) { int cellY) {
final FolderInfo folderInfo = new FolderInfo(); final FolderInfo folderInfo = new FolderInfo();
/*修改默认文件夹名*/
folderInfo.title = getText(R.string.folder_name); folderInfo.title = getText(R.string.folder_name);
// Update the model // Update the model

View File

@@ -279,9 +279,11 @@ public class LoaderTask implements Runnable {
this.add("com.android.documentsui"); this.add("com.android.documentsui");
// this.add("com.android.messaging"); // this.add("com.android.messaging");
this.add("com.android.music"); this.add("com.android.music");
this.add("com.android.calendar");
this.add("com.android.gallery3d"); this.add("com.android.gallery3d");
this.add("com.android.camera"); this.add("com.android.camera");
this.add("com.android.camera2"); this.add("com.android.camera2");
this.add("com.android.calculator");
this.add("com.android.calculator2"); this.add("com.android.calculator2");
this.add("com.android.settings"); this.add("com.android.settings");
this.add("com.android.stk"); this.add("com.android.stk");
@@ -317,7 +319,7 @@ public class LoaderTask implements Runnable {
} else { } else {
if (TextUtils.isEmpty(whiteList)) { if (TextUtils.isEmpty(whiteList)) {
continue; continue;
} else if (!whiteList.contains(app.getApplicationInfo().packageName)){ } else if (!whiteList.contains(app.getApplicationInfo().packageName)) {
continue; continue;
} }
} }

View File

@@ -185,7 +185,7 @@ public class ItemClickHandler {
switch (pkg) { switch (pkg) {
case "com.mediatek.camera": case "com.mediatek.camera":
case "com.android.camera2": case "com.android.camera2":
if (Settings.System.getInt(context.getContentResolver(), "qch_app_camera", 1) == 1) { if (Settings.System.getInt(context.getContentResolver(), "qch_app_camera", 0) == 1) {
ToastUtil.show( "摄像头已禁止使用"); ToastUtil.show( "摄像头已禁止使用");
return true; return true;
} }
@@ -203,7 +203,7 @@ public class ItemClickHandler {
} }
break; break;
case "com.android.deskclock": case "com.android.deskclock":
if (Settings.System.getInt(context.getContentResolver(), "qch_app_deskclock", 1) == 1) { if (Settings.System.getInt(context.getContentResolver(), "qch_app_deskclock", 0) == 1) {
ToastUtil.show( "时钟已禁止使用"); ToastUtil.show( "时钟已禁止使用");
return true; return true;
} }