update:2021.03.15

fix:修改首页图标位置
add:在桌面隐藏自己的图标和搜索
This commit is contained in:
2021-03-15 14:58:02 +08:00
parent 45b1bfaf6f
commit 23e93b0e31
8 changed files with 373 additions and 352 deletions

View File

@@ -181,26 +181,26 @@
</intent-filter> </intent-filter>
</activity> </activity>
<!-- <activity android:name=".Launcher"--> <activity android:name=".Launcher"
<!-- android:launchMode="singleTask"--> android:launchMode="singleTask"
<!-- android:clearTaskOnLaunch="true"--> android:clearTaskOnLaunch="true"
<!-- android:stateNotNeeded="true"--> android:stateNotNeeded="true"
<!-- android:windowSoftInputMode="adjustPan"--> android:windowSoftInputMode="adjustPan"
<!-- android:screenOrientation="unspecified"--> android:screenOrientation="unspecified"
<!-- android:configChanges="keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenSize|screenLayout|smallestScreenSize"--> android:configChanges="keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenSize|screenLayout|smallestScreenSize"
<!-- android:resizeableActivity="true"--> android:resizeableActivity="true"
<!-- android:resumeWhilePausing="true"--> android:resumeWhilePausing="true"
<!-- android:taskAffinity=""--> android:taskAffinity=""
<!-- android:enabled="true">--> android:enabled="true">
<!-- <intent-filter>--> <intent-filter>
<!-- <action android:name="android.intent.action.MAIN" />--> <action android:name="android.intent.action.MAIN" />
<!-- <category android:name="android.intent.category.HOME" />--> <category android:name="android.intent.category.HOME" />
<!-- <category android:name="android.intent.category.DEFAULT" />--> <category android:name="android.intent.category.DEFAULT" />
<!-- <category android:name="android.intent.category.MONKEY"/>--> <category android:name="android.intent.category.MONKEY"/>
<!-- <category android:name="android.intent.category.LAUNCHER_APP" />--> <category android:name="android.intent.category.LAUNCHER_APP" />
<!-- <category android:name="android.intent.category.LAUNCHER" />--> <category android:name="android.intent.category.LAUNCHER" />
<!-- </intent-filter>--> </intent-filter>
<!-- </activity>--> </activity>
<provider <provider
android:name="com.android.uiuios.testing.TestInformationProvider" android:name="com.android.uiuios.testing.TestInformationProvider"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 MiB

After

Width:  |  Height:  |  Size: 311 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -102,4 +102,16 @@
<!-- <favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_MARKET;end" />--> <!-- <favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_MARKET;end" />-->
<!-- <favorite launcher:uri="market://details?id=com.android.launcher" />--> <!-- <favorite launcher:uri="market://details?id=com.android.launcher" />-->
<!-- </resolve>--> <!-- </resolve>-->
<favorite
launcher:className="com.info.sn.activity.MainActivity"
launcher:packageName="com.info.sn"
launcher:screen="0"
launcher:x="0"
launcher:y="0" />
<favorite
launcher:className="com.jiaoguanyi.sysc.activity.MainActivity"
launcher:packageName="com.jiaoguanyi.sysc"
launcher:screen="0"
launcher:x="1"
launcher:y="0" />
</favorites> </favorites>

View File

@@ -42,6 +42,7 @@ import android.util.Pair;
import com.android.uiuios.AllAppsList; import com.android.uiuios.AllAppsList;
import com.android.uiuios.AppInfo; import com.android.uiuios.AppInfo;
import com.android.uiuios.BuildConfig;
import com.android.uiuios.FolderInfo; import com.android.uiuios.FolderInfo;
import com.android.uiuios.InstallShortcutReceiver; import com.android.uiuios.InstallShortcutReceiver;
import com.android.uiuios.ItemInfo; import com.android.uiuios.ItemInfo;
@@ -245,6 +246,11 @@ public class LoaderTask implements Runnable {
TraceHelper.endSection(TAG); TraceHelper.endSection(TAG);
} }
private List<String> hideApp = new ArrayList<String>() {{
this.add(BuildConfig.APPLICATION_ID);
this.add("com.android.quicksearchbox");
}};
//add for load all app on workspace //add for load all app on workspace
private void verifyApplications() { private void verifyApplications() {
final Context context = mApp.getContext(); final Context context = mApp.getContext();
@@ -255,6 +261,9 @@ public class LoaderTask implements Runnable {
ArrayList<InstallShortcutReceiver.PendingInstallShortcutInfo> added = new ArrayList<InstallShortcutReceiver.PendingInstallShortcutInfo>(); ArrayList<InstallShortcutReceiver.PendingInstallShortcutInfo> added = new ArrayList<InstallShortcutReceiver.PendingInstallShortcutInfo>();
synchronized (this) { synchronized (this) {
for (LauncherActivityInfo app : apps) { for (LauncherActivityInfo app : apps) {
if (hideApp.contains(app.getApplicationInfo().packageName)) {
continue;
}
InstallShortcutReceiver.PendingInstallShortcutInfo pendingInstallShortcutInfo = new InstallShortcutReceiver.PendingInstallShortcutInfo(app, context); InstallShortcutReceiver.PendingInstallShortcutInfo pendingInstallShortcutInfo = new InstallShortcutReceiver.PendingInstallShortcutInfo(app, context);
added.add(pendingInstallShortcutInfo); added.add(pendingInstallShortcutInfo);
installQueue.add(pendingInstallShortcutInfo.getItemInfo()); installQueue.add(pendingInstallShortcutInfo.getItemInfo());