|
@@ -467,6 +467,20 @@ public class MAIN extends WpadScreen {
|
|
|
ArrayList<WallpadStatusData.WidgetItem> listDelShortIcon = null;
|
|
|
|
|
|
MainActivity.nShortcutCnt = MainActivity.MainScreenShortcutList.size();
|
|
|
+
|
|
|
+ ArrayList<Integer> OverlapShortIcon = new ArrayList<Integer>();
|
|
|
+ for (int i = 0; i < MainActivity.nShortcutCnt && i < MainActivity.nShortcutMax; i++) {
|
|
|
+ if(OverlapShortIcon.contains(MainActivity.MainScreenShortcutList.get(i).widgetID))
|
|
|
+ {
|
|
|
+
|
|
|
+
|
|
|
+ if(listDelShortIcon == null)
|
|
|
+ listDelShortIcon = new ArrayList<WallpadStatusData.WidgetItem>();
|
|
|
+ listDelShortIcon.add(MainActivity.MainScreenShortcutList.get(i));
|
|
|
+ }
|
|
|
+ OverlapShortIcon.add(MainActivity.MainScreenShortcutList.get(i).widgetID);
|
|
|
+ }
|
|
|
+
|
|
|
for (int i = 0; i < MainActivity.nShortcutCnt && i < MainActivity.nShortcutMax; i++) {
|
|
|
Log.d(TAG, "[registerShortcutIcon] MainScreenShortcutList.get(" + i + ").idx() : " + MainActivity.MainScreenShortcutList.get(i).idx + ", MainScreenShortcutList.get(" + i + ").widgetID() : " + MainActivity.MainScreenShortcutList.get(i).widgetID);
|
|
|
|
|
@@ -540,6 +554,11 @@ public class MAIN extends WpadScreen {
|
|
|
if(listDelShortIcon!=null)
|
|
|
listDelShortIcon.clear();
|
|
|
|
|
|
+ if(OverlapShortIcon!=null)
|
|
|
+ OverlapShortIcon.clear();
|
|
|
+
|
|
|
+ OverlapShortIcon = null;
|
|
|
+
|
|
|
listDelShortIcon = null;
|
|
|
|
|
|
} catch (RuntimeException re) {
|