update:2021.03.15
fix:修改首页图标位置 add:在桌面隐藏自己的图标和搜索
@@ -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"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 4.5 MiB After Width: | Height: | Size: 311 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
@@ -133,7 +134,7 @@ public class LoaderTask implements Runnable {
|
|||||||
LooperIdleLock idleLock = mResults.newIdleLock(this);
|
LooperIdleLock idleLock = mResults.newIdleLock(this);
|
||||||
// Just in case mFlushingWorkerThread changes but we aren't woken up,
|
// Just in case mFlushingWorkerThread changes but we aren't woken up,
|
||||||
// wait no longer than 1sec at a time
|
// wait no longer than 1sec at a time
|
||||||
while (!mStopped && idleLock.awaitLocked(1000));
|
while (!mStopped && idleLock.awaitLocked(1000)) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
private synchronized void verifyNotStopped() throws CancellationException {
|
private synchronized void verifyNotStopped() throws CancellationException {
|
||||||
@@ -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());
|
||||||
|
|||||||