| | | |
Offset 1, 23 lines modified | Offset 1, 23 lines modified |
| |
1 | package·com.android.launcher3.provider; | 1 | package·com.android.launcher3.provider; |
| |
2 | import·com.android.launcher3.InvariantDeviceProfile; | 2 | import·com.android.launcher3.InvariantDeviceProfile; |
3 | import·android.content.ComponentName; | |
4 | import·java.util.Iterator; | 3 | import·java.util.Iterator; |
5 | import·android.content.SharedPreferences; | 4 | import·android.content.SharedPreferences; |
6 | import·android.content.pm.ProviderInfo; | 5 | import·android.content.pm.ProviderInfo; |
7 | import·com.android.launcher3.LauncherSettings$Settings; | 6 | import·com.android.launcher3.LauncherSettings$Settings; |
8 | import·android.text.TextUtils; | 7 | import·android.text.TextUtils; |
9 | import·com.android.launcher3.Utilities; | 8 | import·com.android.launcher3.Utilities; |
10 | import·com.android.launcher3.util.IntSparseArrayMap; | 9 | import·com.android.launcher3.util.IntSparseArrayMap; |
11 | import·java.io.Serializable; | 10 | import·android.content.ComponentName; |
12 | import·android.database.Cursor; | |
13 | import·android.content.ContentResolver; | 11 | import·android.content.ContentResolver; |
| 12 | import·android.database.Cursor; |
14 | import·com.android.launcher3.util.MainThreadInitializedObject; | 13 | import·com.android.launcher3.util.MainThreadInitializedObject; |
| 14 | import·java.io.Serializable; |
15 | import·android.database.sqlite.SQLiteDatabase; | 15 | import·android.database.sqlite.SQLiteDatabase; |
16 | import·com.android.launcher3.util.IntArray; | 16 | import·com.android.launcher3.util.IntArray; |
17 | import·com.android.launcher3.AutoInstallsLayout$LayoutParserCallback; | 17 | import·com.android.launcher3.AutoInstallsLayout$LayoutParserCallback; |
18 | import·com.android.launcher3.LauncherAppState; | 18 | import·com.android.launcher3.LauncherAppState; |
19 | import·com.android.launcher3.model.GridSizeMigrationTask; | 19 | import·com.android.launcher3.model.GridSizeMigrationTask; |
20 | import·com.android.launcher3.LauncherSettings$Favorites; | 20 | import·com.android.launcher3.LauncherSettings$Favorites; |
21 | import·com.android.launcher3.util.PackageManagerHelper; | 21 | import·com.android.launcher3.util.PackageManagerHelper; |
Offset 64, 522 lines modified | Offset 64, 522 lines modified |
64 | ········else·{ | 64 | ········else·{ |
65 | ············s·=·intent.getPackage(); | 65 | ············s·=·intent.getPackage(); |
66 | ········} | 66 | ········} |
67 | ········return·s; | 67 | ········return·s; |
68 | ····} | 68 | ····} |
69 | ···· | 69 | ···· |
70 | ····private·void·importWorkspaceItems()·{ | 70 | ····private·void·importWorkspaceItems()·{ |
71 | ········Object·idp·=·this; | 71 | ········Object·o·=·"rank"; |
72 | ········final·String·s·=·"spanY"; | 72 | ········final·String·s·=·"spanY"; |
73 | ········final·String·s2·=·"spanX"; | 73 | ········Object·o2·=·"spanX"; |
74 | ········Object·o·=·"cellY"; | 74 | ········Object·o3·=·"cellY"; |
75 | ········Object·o2·=·"cellX"; | 75 | ········Object·format·=·"cellX"; |
76 | ········Object·format·=·"screen"; | 76 | ········Object·o4·=·"screen"; |
77 | ········final·String·s3·=·"appWidgetProvider"; | 77 | ········final·String·s2·=·"appWidgetProvider"; |
78 | ········String·s4·=·"itemType"; | 78 | ········final·String·s3·=·"itemType"; |
79 | ········Object·o3·=·"container"; | 79 | ········Serializable·s4·=·"container"; |
80 | ········final·String·s5·=·"title"; | 80 | ········final·String·s5·=·"title"; |
81 | ········final·String·s6·=·"intent"; | 81 | ········final·String·s6·=·"intent"; |
82 | ········final·String·s7·=·"_id"; | 82 | ········final·String·s7·=·"_id"; |
83 | ········final·String·s8·=·"iconResource"; | 83 | ········final·String·s8·=·"iconResource"; |
84 | ········final·MainThreadInitializedObject·instance·=·UserCache.INSTANCE; | 84 | ········final·MainThreadInitializedObject·instance·=·UserCache.INSTANCE; |
85 | ········final·String·s9·=·"iconPackage"; | 85 | ········final·String·s9·=·"iconPackage"; |
86 | ········Object·e·=·Long.toString(((UserCache)instance.get(this.mContext)).getSerialNumberForUser(Process.myUserHandle())); | 86 | ········Object·e·=·Long.toString(((UserCache)instance.get(this.mContext)).getSerialNumberForUser(Process.myUserHandle())); |
87 | ········final·ContentResolver·contentResolver·=·this.mContext.getContentResolver(); | |
88 | ········final·Uri·mOtherFavoritesUri·=·this.mOtherFavoritesUri; | |
89 | ········final·String·s10·=·"icon"; | 87 | ········final·String·s10·=·"icon"; |
90 | ········final·String·s11·=·"rank"; | 88 | ········ArrayList<ContentProviderOperation>·list·=·new·ArrayList<ContentProviderOperation>(15); |
91 | ········Object·o4·=·contentResolver.query(mOtherFavoritesUri,·(String[])null,·"profileId·=·?·AND·container·=·-100·AND·cellY·=·0·AND·screen·=·(SELECT·MIN(screen)·FROM·favorites·WHERE·container·=·-100)",·new·String[]·{·e·},·(String)null); | 89 | ········HashSet<String>·set·=·new·HashSet<String>(); |
| 90 | ········final·Cursor·query; |
| 91 | ········Object·idp·=·query·=·this.mContext.getContentResolver().query(this.mOtherFavoritesUri,·(String[])null,·"profileId·=·?",·new·String[]·{·e·},·"container·,·screen"); |
| 92 | ········Throwable·t·=·null; |
92 | ········try·{ | 93 | ········try·{ |
93 | ············final·boolean·moveToNext·=·((Cursor)o4).moveToNext(); | 94 | ············int·columnIndexOrThrow·=·query.getColumnIndexOrThrow(s7); |
94 | ············if·(o4·!=·null)·{ | 95 | ············int·columnIndexOrThrow2·=·((Cursor)idp).getColumnIndexOrThrow(s6); |
95 | ················((Cursor)o4).close(); | 96 | ············final·int·columnIndexOrThrow3·=·((Cursor)idp).getColumnIndexOrThrow(s5); |
96 | ············} | 97 | ············int·columnIndexOrThrow4·=·((Cursor)idp).getColumnIndexOrThrow((String)s4); |
97 | ············Object·o5·=·new·ArrayList<ContentProviderOperation>(15); | 98 | ············int·n·=·((Cursor)idp).getColumnIndexOrThrow(s3); |
98 | ············Object·o6·=·new·HashSet<String>(); | 99 | ············int·columnIndexOrThrow5·=·((Cursor)idp).getColumnIndexOrThrow(s2); |
99 | ············final·ContentResolver·contentResolver2·=·((ImportDataTask)idp).mContext.getContentResolver(); | 100 | ············int·n2·=·((Cursor)idp).getColumnIndexOrThrow((String)o4); |
100 | ············final·Uri·mOtherFavoritesUri2·=·((ImportDataTask)idp).mOtherFavoritesUri; | 101 | ············int·i·=·((Cursor)idp).getColumnIndexOrThrow((String)format); |
101 | ············idp·=·new·String[]·{·e·}; | 102 | ············int·j·=·((Cursor)idp).getColumnIndexOrThrow((String)o3); |
102 | ············final·Cursor·query; | 103 | ············int·k·=·((Cursor)idp).getColumnIndexOrThrow((String)o2); |
103 | ············idp·=·(query·=·contentResolver2.query(mOtherFavoritesUri2,·(String[])null,·"profileId·=·?",·(String[])idp,·"container·,·screen")); | 104 | ············int·l·=·((Cursor)idp).getColumnIndexOrThrow(s); |
| 105 | ············final·int·columnIndexOrThrow6·=·((Cursor)idp).getColumnIndexOrThrow((String)o); |
| 106 | ············Object·args·=·s10; |
| 107 | ············int·columnIndexOrThrow7·=·((Cursor)idp).getColumnIndexOrThrow(s10); |
| 108 | ············e·=·s9; |
| 109 | ············final·Cursor·cursor·=·(Cursor)idp; |
104 | ············try·{ | 110 | ············try·{ |
105 | ················int·columnIndexOrThrow·=·query.getColumnIndexOrThrow(s7); | 111 | ················int·columnIndexOrThrow8·=·cursor.getColumnIndexOrThrow(s9); |
106 | ················int·n·=·((Cursor)idp).getColumnIndexOrThrow(s6); | 112 | ················final·String·s11·=·s5; |
107 | ················final·int·columnIndexOrThrow2·=·((Cursor)idp).getColumnIndexOrThrow(s5); | 113 | ················final·String·s12·=·s8; |
108 | ················int·columnIndexOrThrow3·=·((Cursor)idp).getColumnIndexOrThrow((String)o3); | 114 | ················int·columnIndexOrThrow9·=·((Cursor)idp).getColumnIndexOrThrow(s8); |
109 | ················int·columnIndexOrThrow4·=·((Cursor)idp).getColumnIndexOrThrow(s4); | 115 | ················Object·o5·=·new·SparseBooleanArray(); |
110 | ················int·columnIndexOrThrow5·=·((Cursor)idp).getColumnIndexOrThrow(s3); | 116 | ················Object·o6·=·new·ContentValues(); |
111 | ················int·n2·=·((Cursor)idp).getColumnIndexOrThrow((String)format); | 117 | ················Integer·value·=·null; |
112 | ················int·i·=·((Cursor)idp).getColumnIndexOrThrow((String)o2); | 118 | ················final·String·s13·=·s; |
113 | ················int·j·=·((Cursor)idp).getColumnIndexOrThrow((String)o); | 119 | ················int·n3·=·0; |
114 | ················int·k·=·((Cursor)idp).getColumnIndexOrThrow(s2); | 120 | ················int·n4·=·0; |
115 | ················int·l·=·((Cursor)idp).getColumnIndexOrThrow(s); | |
116 | ················Object·args·=·s11; | |
117 | ················final·int·columnIndexOrThrow6·=·((Cursor)idp).getColumnIndexOrThrow(s11); | |
118 | ················e·=·s10; | |
119 | ················final·Cursor·cursor·=·(Cursor)idp; | |
120 | ················try·{ | 121 | ················try·{ |
121 | ····················int·columnIndexOrThrow7·=·cursor.getColumnIndexOrThrow(s10); | 122 | ····················while·(true)·{ |
122 | ····················final·String·s12·=·s5; | 123 | ························final·boolean·moveToNext·=·((Cursor)idp).moveToNext(); |
123 | ····················final·String·s13·=·s9; | 124 | ························final·String·s14·=·(String)o2; |
124 | ····················int·columnIndexOrThrow8·=·((Cursor)idp).getColumnIndexOrThrow(s9); | 125 | ························Serializable·s15·=·"com.android.launcher3.settings"; |
125 | ····················final·String·s14·=·s; | 126 | ························o2·=·"ImportDataTask"; |
126 | ····················Object·o7·=·s8; | 127 | ························if·(moveToNext)·{ |
127 | ····················int·columnIndexOrThrow9·=·((Cursor)idp).getColumnIndexOrThrow(s8); | 128 | ····························((ContentValues)o6).clear(); |
128 | ····················Object·o8·=·new·SparseBooleanArray(); | 129 | ····························final·int·int1·=·((Cursor)idp).getInt(columnIndexOrThrow); |
129 | ····················Object·o9·=·new·ContentValues(); | 130 | ····························final·int·n5·=·columnIndexOrThrow; |
130 | ····················Serializable·value·=·null; | 131 | ····························columnIndexOrThrow·=·int1; |
131 | ····················final·String·s15·=·s2; | 132 | ····························final·int·n6·=·n3·=·Math.max(n3,·int1); |
132 | ····················int·a·=·0; | 133 | ····························n3·=·n; |
133 | ····················int·n3·=·0; | 134 | ····························final·Cursor·cursor2·=·(Cursor)idp; |
134 | ····················try·{ | 135 | ····························try·{ |
135 | ························while·(true)·{ | 136 | ································n·=·cursor2.getInt(n); |
136 | ····························final·boolean·moveToNext2·=·((Cursor)idp).moveToNext(); | 137 | ································int·n7·=·n3; |
137 | ····························final·String·s16·=·(String)o; | 138 | ································n3·=·columnIndexOrThrow4; |
138 | ····························Serializable·s17·=·"com.android.launcher3.settings"; | 139 | ································final·int·int2·=·((Cursor)idp).getInt(columnIndexOrThrow4); |
139 | ····························o·=·"ImportDataTask"; | 140 | ································columnIndexOrThrow4·=·n3; |
140 | ····························if·(moveToNext2)·{ | 141 | ································n3·=·n2; |
141 | ································((ContentValues)o9).clear(); | 142 | ································n2·=·((Cursor)idp).getInt(n2); |
142 | ································final·int·int1·=·((Cursor)idp).getInt(columnIndexOrThrow); | 143 | ································final·int·n8·=·n3; |
143 | ································final·int·n4·=·columnIndexOrThrow; | 144 | ································n3·=·i; |
144 | ································columnIndexOrThrow·=·int1; | 145 | ································i·=·((Cursor)idp).getInt(i); |
145 | ································final·int·n5·=·a·=·Math.max(a,·int1); | 146 | ································final·int·n9·=·n3; |
146 | ································a·=·columnIndexOrThrow4; | 147 | ································n3·=·j; |
147 | ································final·Cursor·cursor2·=·(Cursor)idp; | 148 | ································j·=·((Cursor)idp).getInt(j); |
148 | ································try·{ | 149 | ································final·int·n10·=·n3; |
149 | ····································final·int·int2·=·cursor2.getInt(columnIndexOrThrow4); | 150 | ································n3·=·k; |
150 | ····································columnIndexOrThrow4·=·a; | 151 | ································k·=·((Cursor)idp).getInt(k); |
151 | ····································a·=·columnIndexOrThrow3; | 152 | ································final·int·n11·=·n3; |
152 | ····································final·int·int3·=·((Cursor)idp).getInt(columnIndexOrThrow3); | 153 | ································n3·=·l; |
153 | ····································columnIndexOrThrow3·=·a; | 154 | ································l·=·((Cursor)idp).getInt(l); |
154 | ····································a·=·n2; | 155 | ································final·int·n12·=·n3; |
155 | ····································n2·=·((Cursor)idp).getInt(n2); | 156 | ································n3·=·-101; |
156 | ····································final·int·n6·=·a; | 157 | ································final·String·s16·=·(String)o3; |
157 | ····································a·=·i; | 158 | ································final·int·m·=·int2; |
158 | ····································i·=·((Cursor)idp).getInt(i); | 159 | ································Label_1181:·{ |
159 | ····································final·int·n7·=·a; | 160 | ····································Label_1136:·{ |
160 | ····································a·=·j; | 161 | ········································if·(int2·!=·n3)·{ |
161 | ····································j·=·((Cursor)idp).getInt(j); | 162 | ············································n3·=·-100; |
162 | ····································final·int·n8·=·a; | 163 | ············································Object·o7·=·null; |
163 | ····································a·=·k; | 164 | ············································Object·o9·=·null; |
164 | ····································k·=·((Cursor)idp).getInt(k); | 165 | ············································Label_0928:·{ |
165 | ····································final·int·n9·=·a; | 166 | ················································if·(int2·!=·n3)·{ |
166 | ····································a·=·l; | 167 | ····················································o7·=·o5; |
167 | ····································l·=·((Cursor)idp).getInt(l); | 168 | ····················································final·Object·o8·=·o5; |
168 | ····································final·int·n10·=·a; | 169 | ····················································try·{ |
169 | ····································a·=·-101; | 170 | ························································if·(!((SparseBooleanArray)o8).get(int2))·{ |
170 | ····································final·String·s18·=·(String)o2; | 171 | ····························································o5·=·format; |
171 | ····································final·int·m·=·int3; | 172 | ····························································format·=·"Skipping·item·%d,·type·%d·not·in·a·valid·folder·%d"; |
172 | ····································if·(int3·!=·a)·{ | 173 | ····························································o9·=·o4; |
173 | ········································a·=·-100; | 174 | ····························································o4·=·new·Object[3]; |
174 | ········································if·(int3·!=·a)·{ | 175 | ····························································s15·=·columnIndexOrThrow; |
175 | ············································final·Object·o10·=·o8; | 176 | ····························································o4[0]·=·s15; |
176 | ············································final·Object·o11·=·o8; | 177 | ····························································s15·=·n; |
177 | ············································try·{ | 178 | ····························································o4[1]·=·s15; |
178 | ················································if·(!((SparseBooleanArray)o11).get(int3))·{ | 179 | ····························································s15·=·int2; |
179 | ····················································o8·=·format; | 180 | ····························································o4[2]·=·s15; |
180 | ····················································format·=·"Skipping·item·%d,·type·%d·not·in·a·valid·folder·%d"; | 181 | ····························································format·=·String.format((String)format,·(Object[])o4); |
181 | ····················································final·Object·o12·=·o3; | 182 | ····························································FileLog.d((String)o2,·(String)format); |
182 | ····················································o3·=·new·Object[3]; | 183 | ····························································break·Label_0928; |
183 | ····················································s17·=·columnIndexOrThrow; | 184 | ························································} |
184 | ····················································o3[0]·=·s17; | 185 | ····················································} |
185 | ····················································s17·=·int2; | 186 | ····················································finally·{ |
186 | ····················································o3[1]·=·s17; | 187 | ························································final·String·s17; |
187 | ····················································s17·=·int3; | 188 | ························································o·=·s17; |
188 | ····················································o3[2]·=·s17; | 189 | ························································e·=·list; |
189 | ····················································format·=·String.format((String)format,·(Object[])o3); | 190 | ························································args·=·set; |
190 | ····················································FileLog.d((String)o,·(String)format); | 191 | ························································n7·=·n4; |
| 192 | ························································break; |
| 193 | ····················································} |
| 194 | ················································} |
| 195 | ················································o9·=·o4; |
| 196 | ················································o7·=·o5; |
| 197 | ················································o5·=·format; |
| 198 | ················································if·(n2·>=·0)·{ |
| 199 | ····················································if·(value·==·null)·{ |
| 200 | ························································format·=·(value·=·n2); |
| 201 | ····················································} |
| 202 | ····················································else·{ |
| 203 | ························································format·=·value; |
| 204 | ····················································} |
| 205 | ····················································if·(false)·{ |
| 206 | ························································o4·=·n2; |
| 207 | ························································if·(((Integer)format).equals(o4))·{ |
| 208 | ····························································++j; |
| 209 | ····························································n2·=·0; |
| 210 | ························································} |
| 211 | ····················································} |
| 212 | ····················································o4·=·this; |
| 213 | ····················································value·=·(Integer)format; |
| 214 | ····················································try·{ |
| 215 | ························································final·int·mMaxGridSizeX·=·this.mMaxGridSizeX; |
| 216 | ························································final·Serializable·s18·=·s4; |
| 217 | ························································this.mMaxGridSizeX·=·Math.max(mMaxGridSizeX,·i·+·k); |
| 218 | ························································this.mMaxGridSizeY·=·Math.max(this.mMaxGridSizeY,·j·+·l); |
| 219 | ························································break·Label_1181; |
| 220 | ····················································} |
| 221 | ····················································finally·{ |
| 222 | ························································final·String·s19; |
| 223 | ························································o·=·s19; |
| 224 | ························································e·=·list; |
| 225 | ························································args·=·set; |
| 226 | ························································n7·=·n4; |
| 227 | ························································break; |
| 228 | ····················································} |
| 229 | ····················································break·Label_1136; |
191 | ················································} | 230 | ················································} |
| 231 | ················································format·=·"Skipping·item·%d,·type·%d·not·on·a·valid·screen·%d"; |
| 232 | ················································o4·=·new·Object[]·{·columnIndexOrThrow,·n,·n2·}; |
| 233 | ················································format·=·String.format((String)format,·(Object[])o4); |
| 234 | ················································FileLog.d((String)o2,·(String)format); |
192 | ············································} | 235 | ············································} |
193 | ············································finally·{} | 236 | ············································n·=·n7; |
194 | ········································} | 237 | ············································format·=·o5; |
195 | ········································final·Object·o12·=·o3; | 238 | ············································o2·=·s14; |
196 | ········································final·Object·o10·=·o8; | 239 | ············································columnIndexOrThrow·=·n5; |
197 | ········································o8·=·format; | 240 | ············································n2·=·n8; |
198 | ········································if·(n2·<·0)·{ | 241 | ············································i·=·n9; |
199 | ············································format·=·"Skipping·item·%d,·type·%d·not·on·a·valid·screen·%d"; | 242 | ············································j·=·n10; |
200 | ············································o3·=·new·Object[]·{·columnIndexOrThrow,·int2,·n2·}; | 243 | ············································k·=·n11; |
201 | ············································format·=·String.format((String)format,·(Object[])o3); | 244 | ············································l·=·n12; |
202 | ············································FileLog.d((String)o,·(String)format); | 245 | ············································o4·=·o9; |
203 | ············································format·=·o8; | 246 | ············································o5·=·o7; |
204 | ············································o·=·s16; | 247 | ············································n3·=·n6; |
205 | ············································columnIndexOrThrow·=·n4; | |
206 | ············································n2·=·n6; | |
207 | ············································i·=·n7; | |
208 | ············································j·=·n8; | |
209 | ············································k·=·n9; | |
210 | ············································l·=·n10; | |
211 | ············································o3·=·o12; | |
212 | ············································o8·=·o10; | |
213 | ············································a·=·n5; | |
214 | ············································continue; | 248 | ············································continue; |
215 | ········································} | 249 | ········································} |
216 | ········································if·(value·==·null)·{ | |
217 | ············································format·=·(value·=·n2); | |
218 | ········································} | |
219 | ········································else·{ | |
220 | ············································format·=·value; | |
221 | ········································} | |
222 | ········································if·(moveToNext)·{ | |
223 | ············································o3·=·n2; | |
224 | ············································if·(((Integer)format).equals(o3))·{ | |
225 | ················································++j; | |
226 | ················································n2·=·0; | |
227 | ············································} | |
228 | ········································} | |
229 | ········································o3·=·this; | |
230 | ········································value·=·(Serializable)format; | |
231 | ········································try·{ | |
232 | ············································final·int·mMaxGridSizeX·=·this.mMaxGridSizeX; | |
233 | ············································final·String·s19·=·s4; | |
234 | ············································this.mMaxGridSizeX·=·Math.max(mMaxGridSizeX,·i·+·k); | |
235 | ············································this.mMaxGridSizeY·=·Math.max(this.mMaxGridSizeY,·j·+·l); | |
236 | ········································} | |
237 | ········································finally·{} | |
238 | ····································} | 250 | ····································} |
239 | ····································String·s19·=·s4; | 251 | ····································Object·o9·=·o4; |
240 | ····································final·Object·o12·=·o3; | 252 | ····································Serializable·s18·=·s4; |
241 | ····································final·Object·o10·=·o8; | 253 | ····································Object·o7·=·o5; |
242 | ····································o3·=·this; | 254 | ····································o4·=·this; |
243 | ····································o8·=·format; | 255 | ····································o5·=·format; |
244 | ····································try·{ | 256 | ····································try·{ |
245 | ········································this.mHotseatSize·=·Math.max(this.mHotseatSize,·n2·+·1); | 257 | ········································this.mHotseatSize·=·Math.max(this.mHotseatSize,·n2·+·1); |
246 | ········································format·=·null; | 258 | ········································format·=·null; |
247 | ········································final·int·i2·=·int2; | 259 | ········································final·int·i2·=·n; |
248 | ········································int·n12·=·0; | 260 | ········································n·=·0; |
249 | ········································SparseBooleanArray·sparseBooleanArray·=·null; | |
250 | ········································int·n13·=·0; | 261 | ········································int·n13·=·0; |
251 | ········································Object·o13·=·null; | 262 | ········································SparseBooleanArray·sparseBooleanArray·=·null; |
252 | ········································Object·o14·=·null; | 263 | ········································String·s20·=·null; |
253 | ········································Label_1915:·{ | 264 | ········································Label_1792:·{ |
254 | ············································int·i3·=·0; | 265 | ············································int·i3·=·0; |
255 | ············································Label_1847:·{ | 266 | ············································Label_1727:·{ |
256 | ················································int·n15; | 267 | ················································int·n14; |
257 | ················································int·n16; | |
258 | ················································if·(i2·!=·0)·{ | 268 | ················································if·(i2·!=·0)·{ |
259 | ····················································if·(i2·!=·1)·{ | 269 | ····················································if·(i2·!=·1)·{ |
260 | ························································if·(i2·==·2)·{ | 270 | ························································if·(i2·==·2)·{ |
261 | ····························································final·int·n11·=·columnIndexOrThrow5; | |
262 | ····························································s4·=·(String)o9; | |
263 | ····························································((SparseBooleanArray)o10).put(columnIndexOrThrow,·true); | |
264 | ····························································o3·=·new·Intent(); | |
265 | ····························································o9·=·e; | |
266 | ····························································columnIndexOrThrow5·=·n; | |
267 | ····························································o4·=·o3; | |
268 | ····························································n12·=·columnIndexOrThrow8; | |
269 | ····························································i3·=·i2; | 271 | ····························································i3·=·i2; |
270 | ····························································sparseBooleanArray·=·(SparseBooleanArray)o10; | 272 | ····························································s4·=·(Serializable)o6; |
271 | ····························································a·=·columnIndexOrThrow9; | 273 | ····························································((SparseBooleanArray)o7).put(columnIndexOrThrow,·true); |
272 | ····························································columnIndexOrThrow9·=·n11; | 274 | ····························································o4·=·(format·=·new·Intent()); |
273 | ····························································n13·=·columnIndexOrThrow7; | 275 | ····························································n·=·columnIndexOrThrow2; |
274 | ····························································o13·=·o7; | 276 | ····························································n13·=·columnIndexOrThrow9; |
275 | ····························································break·Label_1847; | 277 | ····························································sparseBooleanArray·=·(SparseBooleanArray)o7; |
| 278 | ····························································columnIndexOrThrow9·=·columnIndexOrThrow7; |
| 279 | ····························································columnIndexOrThrow7·=·columnIndexOrThrow8; |
| 280 | ····························································s20·=·(String)e; |
| 281 | ····························································break·Label_1727; |
276 | ························································} | 282 | ························································} |
277 | ························································if·(i2·!=·4)·{ | 283 | ························································if·(i2·!=·4)·{ |
278 | ····························································format·=·"Skipping·item·%d,·not·a·valid·type·%d"; | 284 | ····························································format·=·"Skipping·item·%d,·not·a·valid·type·%d"; |
279 | ····························································o3·=·new·Object[]·{·columnIndexOrThrow,·i2·}; | 285 | ····························································o4·=·new·Object[]·{·columnIndexOrThrow,·i2·}; |
280 | ····························································format·=·String.format((String)format,·(Object[])o3); | 286 | ····························································format·=·String.format((String)format,·(Object[])o4); |
281 | ····························································FileLog.d((String)o,·(String)format); | 287 | ····························································FileLog.d((String)o2,·(String)format); |
282 | ····························································o14·=·args; | 288 | ····························································n·=·columnIndexOrThrow2; |
283 | ····························································n13·=·columnIndexOrThrow7; | 289 | ····························································n13·=·columnIndexOrThrow9; |
284 | ····························································n12·=·columnIndexOrThrow8; | 290 | ····························································s4·=·(Serializable)o6; |
285 | ····························································s4·=·(String)o9; | 291 | ····························································o6·=·args; |
286 | ····························································o9·=·e; | 292 | ····························································sparseBooleanArray·=·(SparseBooleanArray)o7; |
287 | ····························································o13·=·o7; | 293 | ····························································columnIndexOrThrow9·=·columnIndexOrThrow7; |
288 | ····························································sparseBooleanArray·=·(SparseBooleanArray)o10; | 294 | ····························································columnIndexOrThrow7·=·columnIndexOrThrow8; |
289 | ····························································a·=·columnIndexOrThrow9; | 295 | ····························································s20·=·(String)e; |
290 | ····························································columnIndexOrThrow9·=·columnIndexOrThrow5; | 296 | ····························································break·Label_1792; |
291 | ····························································columnIndexOrThrow5·=·n; | |
292 | ····························································break·Label_1915; | |
293 | ························································} | 297 | ························································} |
294 | ························································format·=·"restored"; | 298 | ························································format·=·"restored"; |
295 | ························································o3·=·7; | 299 | ························································o4·=·7; |
296 | ························································s4·=·(String)o9; | |
297 | ························································((ContentValues)o9).put((String)format,·(Integer)o3); | |
298 | ························································final·int·n14·=·columnIndexOrThrow5; | |
299 | ························································o3·=·((Cursor)idp).getString(columnIndexOrThrow5); | |
300 | ························································((ContentValues)o9).put(s3,·(String)o3); | |
301 | ························································o9·=·e; | |
302 | ························································columnIndexOrThrow5·=·n; | |
303 | ························································n12·=·columnIndexOrThrow8; | |
304 | ························································n·=·0; | |
305 | ························································o4·=·null; | |
306 | ························································i3·=·i2; | 300 | ························································i3·=·i2; |
307 | ························································sparseBooleanArray·=·(SparseBooleanArray)o10; | 301 | ························································s4·=·(Serializable)o6; |
308 | ························································a·=·columnIndexOrThrow9; | 302 | ························································((ContentValues)o6).put((String)format,·(Integer)o4); |
309 | ························································columnIndexOrThrow9·=·n14; | 303 | ························································o4·=·((Cursor)idp).getString(columnIndexOrThrow5); |
310 | ························································n13·=·columnIndexOrThrow7; | 304 | ························································((ContentValues)o6).put(s2,·(String)o4); |
311 | ························································o13·=·o7; | 305 | ························································format·=·null; |
312 | ························································break·Label_1847; | 306 | ························································n13·=·columnIndexOrThrow9; |
| 307 | ························································n·=·columnIndexOrThrow2; |
| 308 | ························································columnIndexOrThrow9·=·columnIndexOrThrow7; |
| 309 | ························································columnIndexOrThrow7·=·columnIndexOrThrow8; |
| 310 | ························································s20·=·(String)e; |
| 311 | ························································sparseBooleanArray·=·(SparseBooleanArray)o7; |
| 312 | ························································break·Label_1727; |
313 | ····················································} | 313 | ····················································} |
314 | ····················································else·{ | 314 | ····················································else·{ |
315 | ························································n15·=·i2; | 315 | ························································i3·=·i2; |
316 | ························································n16·=·columnIndexOrThrow5; | 316 | ························································n14·=·columnIndexOrThrow5; |
317 | ························································s4·=·(String)o9; | 317 | ························································s4·=·(Serializable)o6; |
318 | ····················································} | 318 | ····················································} |
319 | ················································} | 319 | ················································} |
320 | ················································else·{ | 320 | ················································else·{ |
321 | ····················································n15·=·i2; | 321 | ····················································i3·=·i2; |
322 | ····················································n16·=·columnIndexOrThrow5; | 322 | ····················································n14·=·columnIndexOrThrow5; |
323 | ····················································s4·=·(String)o9; | 323 | ····················································s4·=·(Serializable)o6; |
324 | ················································} | 324 | ················································} |
325 | ················································o3·=·((Cursor)idp).getString(n); | 325 | ················································sparseBooleanArray·=·(SparseBooleanArray)o7; |
326 | ················································columnIndexOrThrow5·=·n; | 326 | ················································final·String·string·=·((Cursor)idp).getString(columnIndexOrThrow2); |
327 | ················································n·=·0; | 327 | ················································columnIndexOrThrow5·=·n14; |
328 | ················································o4·=·null; | 328 | ················································format·=·null; |
329 | ················································o3·=·(o4·=·Intent.parseUri((String)o3,·0)); | 329 | ················································n3·=·(PackageManagerHelper.isLauncherAppTarget((Intent)(format·=·Intent.parseUri(string,·0)))·?·1·:·0); |
330 | ················································if·(PackageManagerHelper.isLauncherAppTarget((Intent)o3))·{ | 330 | ················································if·(n3·!=·0)·{ |
331 | ····················································i3·=·0; | 331 | ····················································i3·=·0; |
332 | ····················································n12·=·columnIndexOrThrow8; | 332 | ····················································n3·=·columnIndexOrThrow8; |
333 | ····················································sparseBooleanArray·=·(SparseBooleanArray)o10; | 333 | ····················································s20·=·(String)e; |
334 | ····················································a·=·columnIndexOrThrow9; | 334 | ····················································n·=·columnIndexOrThrow2; |
335 | ····················································columnIndexOrThrow9·=·n16; | 335 | ····················································n13·=·columnIndexOrThrow9; |
336 | ················································} | 336 | ················································} |
337 | ················································else·{ | 337 | ················································else·{ |
338 | ····················································n12·=·columnIndexOrThrow8; | 338 | ····················································n·=·columnIndexOrThrow2; |
339 | ····················································sparseBooleanArray·=·(SparseBooleanArray)o10; | 339 | ····················································n3·=·columnIndexOrThrow8; |
340 | ····················································((ContentValues)s4).put(s13,·((Cursor)idp).getString(columnIndexOrThrow8)); | 340 | ····················································o4·=·((Cursor)idp).getString(columnIndexOrThrow8); |
341 | ····················································a·=·columnIndexOrThrow9; | 341 | ····················································((ContentValues)s4).put((String)e,·(String)o4); |
342 | ····················································columnIndexOrThrow9·=·n16; | 342 | ····················································s20·=·(String)e; |
343 | ····················································format·=·((Cursor)idp).getString(a); | 343 | ····················································n13·=·columnIndexOrThrow9; |
344 | ····················································((ContentValues)s4).put((String)o7,·(String)format); | 344 | ····················································e·=·((Cursor)idp).getString(columnIndexOrThrow9); |
345 | ····················································i3·=·n15; | 345 | ····················································((ContentValues)s4).put(s12,·(String)e); |
346 | ················································} | 346 | ················································} |
347 | ················································n13·=·columnIndexOrThrow7; | 347 | ················································final·int·n15·=·columnIndexOrThrow7; |
348 | ················································o13·=·o7; | 348 | ················································columnIndexOrThrow7·=·n3; |
349 | ················································o7·=·((Cursor)idp).getBlob(columnIndexOrThrow7); | 349 | ················································((ContentValues)s4).put((String)args,·((Cursor)idp).getBlob(n15)); |
350 | ················································((ContentValues)s4).put((String)e,·(byte[])o7); | 350 | ················································columnIndexOrThrow9·=·n15; |
351 | ················································o9·=·e; | 351 | ················································n3·=·0; |
352 | ················································o7·=·null; | 352 | ················································e·=·((Intent)format).toUri(0); |
353 | ················································e·=·((Intent)o4).toUri(0); | |
354 | ················································((ContentValues)s4).put(s6,·(String)e); | 353 | ················································((ContentValues)s4).put(s6,·(String)e); |
355 | ················································o7·=·((Cursor)idp).getInt(columnIndexOrThrow6); | 354 | ················································n3·=·((Cursor)idp).getInt(columnIndexOrThrow6); |
356 | ················································((ContentValues)s4).put((String)args,·(Integer)o7); | 355 | ················································((ContentValues)s4).put((String)o,·n3); |
357 | ················································o7·=·"restored"; | 356 | ················································final·String·s21·=·"restored"; |
358 | ················································e·=·1; | 357 | ················································e·=·1; |
359 | ················································((ContentValues)s4).put((String)o7,·(Integer)e); | 358 | ················································((ContentValues)s4).put(s21,·(Integer)e); |
360 | ············································} | 359 | ············································} |
361 | ············································if·(m·==·-101)·{ | 360 | ············································if·(m·==·-101)·{ |
362 | ················································if·(o4·==·null)·{ | 361 | ················································if·(format·==·null)·{ |
363 | ····················································e·=·"Skipping·item·%d,·null·intent·on·hotseat"; | 362 | ····················································e·=·"Skipping·item·%d,·null·intent·on·hotseat"; |
364 | ····················································o14·=·args; | 363 | ····················································o6·=·args; |
365 | ····················································args·=·new·Object[]·{·null·}; | 364 | ····················································n3·=·1; |
366 | ····················································o7·=·columnIndexOrThrow; | 365 | ····················································args·=·new·Object[n3]; |
367 | ····················································args[0]·=·o7; | 366 | ····················································args[0]·=·columnIndexOrThrow; |
368 | ····················································e·=·String.format((String)e,·(Object[])args); | 367 | ····················································e·=·String.format((String)e,·(Object[])args); |
369 | ····················································FileLog.d((String)o,·(String)e); | 368 | ····················································FileLog.d((String)o2,·(String)e); |
370 | ····················································break·Label_1915; | 369 | ····················································break·Label_1792; |
371 | ················································} | 370 | ················································} |
372 | ················································final·Object[]·array·=·(Object[])args; | 371 | ················································o6·=·args; |
373 | ················································try·{ | 372 | ················································try·{ |
374 | ····················································e·=·((Intent)o4).getComponent(); | 373 | ····················································e·=·((Intent)format).getComponent(); |
375 | ····················································if·(e·!=·null)·{ | 374 | ····················································if·(e·!=·null)·{ |
376 | ························································e·=·((Intent)o4).getComponent(); | 375 | ························································e·=·((Intent)format).getComponent(); |
377 | ························································e·=·((ComponentName)e).getPackageName(); | 376 | ························································e·=·((ComponentName)e).getPackageName(); |
378 | ························································((Intent)o4).setPackage((String)e); | 377 | ························································((Intent)format).setPackage((String)e); |
379 | ····················································} | 378 | ····················································} |
380 | ····················································e·=·getPackage((Intent)o4); | 379 | ····················································e·=·getPackage((Intent)format); |
381 | ····················································args·=·o6; | 380 | ····················································args·=·set; |
382 | ····················································final·Object·o15·=·o6; | 381 | ····················································final·HashSet<String>·set2·=·set; |
383 | ····················································try·{ | 382 | ····················································try·{ |
384 | ························································((HashSet<String>)o15).add((String)e); | 383 | ························································set2.add((String)e); |
385 | ····················································} | 384 | ····················································} |
386 | ····················································finally·{ | 385 | ····················································finally·{ |
387 | ························································final·Integer·n17; | 386 | ························································final·String·s22; |
388 | ························································o4·=·n17; | 387 | ························································o·=·s22; |
| 388 | ························································e·=·list; |
389 | ····················································} | 389 | ····················································} |
390 | ················································} | 390 | ················································} |
391 | ················································finally·{} | 391 | ················································finally·{ |
| 392 | ····················································args·=·set; |
| 393 | ····················································final·String·s23; |
| 394 | ····················································o·=·s23; |
| 395 | ····················································e·=·list; |
| 396 | ····················································n7·=·n4; |
| 397 | ····················································break; |
| 398 | ················································} |
392 | ············································} | 399 | ············································} |
393 | ············································final·Object[]·array·=·(Object[])args; | 400 | ············································o6·=·args; |
394 | ············································args·=·o6; | 401 | ············································args·=·set; |
395 | ············································try·{ | 402 | ············································try·{ |
396 | ················································e·=·columnIndexOrThrow; | 403 | ················································e·=·columnIndexOrThrow; |
397 | ················································((ContentValues)s4).put(s7,·(Integer)e); | 404 | ················································((ContentValues)s4).put(s7,·(Integer)e); |
398 | ················································e·=·i3; | 405 | ················································e·=·i3; |
399 | ················································o7·=·s19; | 406 | ················································((ContentValues)s4).put(s3,·(Integer)e); |
400 | ················································((ContentValues)s4).put(s19,·(Integer)e); | |
401 | ················································e·=·m; | 407 | ················································e·=·m; |
402 | ················································o·=·o12; | 408 | ················································final·Serializable·s24·=·s18; |
403 | ················································((ContentValues)s4).put((String)o12,·(Integer)e); | 409 | ················································((ContentValues)s4).put((String)s18,·(Integer)e); |
404 | ················································e·=·n2; | 410 | ················································e·=·n2; |
405 | ················································((ContentValues)s4).put((String)o8,·(Integer)e); | 411 | ················································o2·=·o9; |
| 412 | ················································((ContentValues)s4).put((String)o9,·(Integer)e); |
406 | ················································e·=·i; | 413 | ················································e·=·i; |
407 | ················································((ContentValues)s4).put(s18,·(Integer)e); | 414 | ················································((ContentValues)s4).put((String)o5,·(Integer)e); |
408 | ················································e·=·j; | 415 | ················································e·=·j; |
409 | ················································((ContentValues)s4).put(s16,·(Integer)e); | 416 | ················································((ContentValues)s4).put(s16,·(Integer)e); |
410 | ················································e·=·k; | 417 | ················································e·=·k; |
411 | ················································((ContentValues)s4).put(s15,·(Integer)e); | |
412 | ················································e·=·l; | |
413 | ················································((ContentValues)s4).put(s14,·(Integer)e); | 418 | ················································((ContentValues)s4).put(s14,·(Integer)e); |
414 | ················································final·String·string·=·((Cursor)idp).getString(columnIndexOrThrow2); | 419 | ················································e·=·l; |
415 | ················································e·=·s12; | 420 | ················································((ContentValues)s4).put(s13,·(Integer)e); |
416 | ················································((ContentValues)s4).put(s12,·string); | 421 | ················································final·String·string2·=·((Cursor)idp).getString(columnIndexOrThrow3); |
| 422 | ················································e·=·s11; |
| 423 | ················································((ContentValues)s4).put(s11,·string2); |
417 | ················································final·ContentProviderOperation·build·=·ContentProviderOperation.newInsert(LauncherSettings$Favorites.CONTENT_URI).withValues((ContentValues)s4).build(); | 424 | ················································final·ContentProviderOperation·build·=·ContentProviderOperation.newInsert(LauncherSettings$Favorites.CONTENT_URI).withValues((ContentValues)s4).build(); |
418 | ················································e·=·o5; | 425 | ················································e·=·list; |
419 | ················································final·Object·o16·=·o5; | 426 | ················································final·ArrayList<ContentProviderOperation>·list2·=·list; |
420 | ················································try·{ | 427 | ················································try·{ |
421 | ····················································((ArrayList<ContentProviderOperation>)o16).add(build); | 428 | ····················································list2.add(build); |
422 | ····················································ArrayList<ContentProviderOperation>·list; | 429 | ····················································String·s25; |
423 | ····················································if·(m·<·0)·{ | 430 | ····················································if·(m·<·0)·{ |
424 | ························································list·=·(ArrayList<ContentProviderOperation>)o4; | 431 | ························································s25·=·(String)o; |
425 | ························································n·=·n3; | 432 | ························································++n4; |
426 | ························································++n3; | |
427 | ····················································} | 433 | ····················································} |
428 | ····················································else·{ | 434 | ····················································else·{ |
429 | ························································list·=·(ArrayList<ContentProviderOperation>)o4; | 435 | ························································s25·=·(String)o; |
430 | ························································n·=·n3; | |
431 | ····················································} | 436 | ····················································} |
432 | ····················································try·{ | 437 | ····················································try·{ |
433 | ························································n·=·((ArrayList)e).size(); | 438 | ························································final·int·size·=·((ArrayList)e).size(); |
434 | ························································o5·=·list; | 439 | ························································list·=·(ArrayList<ContentProviderOperation>)s25; |
435 | ························································columnIndexOrThrow·=·15; | 440 | ························································columnIndexOrThrow·=·15; |
436 | ························································if·(n·>=·columnIndexOrThrow)·{ | 441 | ························································Label_2322:·{ |
437 | ····························································o4·=·this; | 442 | ····························································if·(size·>=·columnIndexOrThrow)·{ |
438 | ····························································try·{ | 443 | ································································o·=·this; |
439 | ································································final·ContentResolver·contentResolver3·=·this.mContext.getContentResolver(); | 444 | ································································try·{ |
440 | ································································s19·=·(String)o7; | 445 | ····································································final·ContentResolver·contentResolver·=·this.mContext.getContentResolver(); |
441 | ································································o7·=·s17; | 446 | ····································································s18·=·s24; |
442 | ································································contentResolver3.applyBatch((String)s17,·(ArrayList)e); | 447 | ····································································contentResolver.applyBatch((String)s15,·(ArrayList)e); |
443 | ································································((ArrayList)e).clear(); | 448 | ····································································((ArrayList)e).clear(); |
| 449 | ····································································break·Label_2322; |
| 450 | ································································} |
| 451 | ································································finally·{ |
| 452 | ····································································n7·=·n4; |
| 453 | ····································································break; |
| 454 | ································································} |
444 | ····························································} | 455 | ····························································} |
445 | ····························································finally·{} | 456 | ····························································o·=·this; |
| 457 | ····························································s18·=·s24; |
446 | ························································} | 458 | ························································} |
447 | ························································o4·=·this; | 459 | ························································set·=·(HashSet<String>)args; |
448 | ························································s19·=·(String)o7; | 460 | ························································n3·=·n6; |
449 | ························································o5·=·e; | 461 | ························································o·=·list; |
450 | ························································o6·=·args; | 462 | ························································format·=·o5; |
451 | ························································n·=·columnIndexOrThrow5; | 463 | ························································args·=·o6; |
452 | ························································o7·=·o13; | 464 | ························································columnIndexOrThrow·=·n5; |
453 | ························································columnIndexOrThrow5·=·columnIndexOrThrow9; | 465 | ························································n2·=·n8; |
454 | ························································e·=·o9; | 466 | ························································i·=·n9; |
455 | ························································columnIndexOrThrow·=·n4; | 467 | ························································j·=·n10; |
456 | ························································args·=·array; | 468 | ························································k·=·n11; |
457 | ························································n2·=·n6; | 469 | ························································l·=·n12; |
458 | ························································i·=·n7; | 470 | ························································list·=·(ArrayList<ContentProviderOperation>)e; |
459 | ························································j·=·n8; | 471 | ························································o6·=·s4; |
460 | ························································k·=·n9; | 472 | ························································o5·=·sparseBooleanArray; |
461 | ························································l·=·n10; | 473 | ························································columnIndexOrThrow2·=·n; |
462 | ························································columnIndexOrThrow9·=·a; | 474 | ························································e·=·s20; |
463 | ························································columnIndexOrThrow7·=·n13; | 475 | ························································s4·=·s18; |
464 | ························································o9·=·s4; | 476 | ························································n·=·n7; |
465 | ························································a·=·n5; | 477 | ························································columnIndexOrThrow8·=·columnIndexOrThrow7; |
466 | ························································format·=·o8; | 478 | ························································columnIndexOrThrow7·=·columnIndexOrThrow9; |
467 | ························································s4·=·s19; | 479 | ························································columnIndexOrThrow9·=·n13; |
468 | ························································o8·=·sparseBooleanArray; | 480 | ························································o4·=·o2; |
469 | ························································columnIndexOrThrow8·=·n12; | 481 | ····················································} |
| 482 | ····················································finally·{ |
| 483 | ························································final·ComponentName·componentName; |
| 484 | ························································o·=·componentName; |
470 | ····················································} | 485 | ····················································} |
471 | ····················································finally·{} | |
472 | ················································} | |
473 | ················································finally·{ | |
474 | ····················································n·=·n3; | |
475 | ················································} | 486 | ················································} |
| 487 | ················································finally·{} |
476 | ············································} | 488 | ············································} |
477 | ············································finally·{ | 489 | ············································finally·{ |
478 | ················································e·=·o5; | 490 | ················································e·=·list; |
479 | ················································n·=·n3; | |
480 | ············································} | 491 | ············································} |
481 | ········································} | 492 | ········································} |
482 | ········································n·=·columnIndexOrThrow5; | 493 | ········································n3·=·n6; |
483 | ········································o7·=·o13; | 494 | ········································e·=·s20; |
484 | ········································columnIndexOrThrow5·=·columnIndexOrThrow9; | 495 | ········································format·=·o5; |
485 | ········································e·=·o9; | 496 | ········································args·=·o6; |
486 | ········································o·=·s16; | 497 | ········································o2·=·s14; |
487 | ········································columnIndexOrThrow·=·n4; | 498 | ········································columnIndexOrThrow·=·n5; |
488 | ········································args·=·o14; | 499 | ········································n2·=·n8; |
489 | ········································n2·=·n6; | 500 | ········································i·=·n9; |
490 | ········································i·=·n7; | 501 | ········································j·=·n10; |
491 | ········································j·=·n8; | 502 | ········································k·=·n11; |
492 | ········································k·=·n9; | 503 | ········································l·=·n12; |
493 | ········································l·=·n10; | 504 | ········································o6·=·s4; |
494 | ········································columnIndexOrThrow9·=·a; | 505 | ········································o5·=·sparseBooleanArray; |
495 | ········································columnIndexOrThrow7·=·n13; | 506 | ········································columnIndexOrThrow2·=·n; |
496 | ········································o9·=·s4; | 507 | ········································columnIndexOrThrow8·=·columnIndexOrThrow7; |
497 | ········································a·=·n5; | 508 | ········································columnIndexOrThrow7·=·columnIndexOrThrow9; |
498 | ········································format·=·o8; | 509 | ········································s4·=·s18; |
499 | ········································s4·=·s19; | 510 | ········································columnIndexOrThrow9·=·n13; |
500 | ········································o8·=·sparseBooleanArray; | 511 | ········································n·=·n7; |
501 | ········································columnIndexOrThrow8·=·n12; | |
502 | ····································} | 512 | ····································} |
503 | ····································finally·{} | 513 | ····································finally·{} |
504 | ································} | 514 | ································} |
505 | ································finally·{ | |
506 | ····································o2·=·this; | |
507 | ································} | |
508 | ································e·=·o5; | |
509 | ································final·Integer·n18; | |
510 | ································o4·=·n18; | |
511 | ····························} | 515 | ····························} |
512 | ····························final·int·n19·=·a; | 516 | ····························finally·{ |
513 | ····························e·=·o5; | 517 | ································o3·=·this; |
514 | ····························final·Object·o17·=·o6; | |
515 | ····························final·String·s20·=·(String)s17; | |
516 | ····························a·=·columnIndexOrThrow9; | |
517 | ····························final·int·i4·=·n3; | |
518 | ····························if·(idp·!=·null)·{ | |
519 | ································((Cursor)idp).close(); | |
520 | ····························} | 518 | ····························} |
521 | ····························final·StringBuilder·sb·=·new·StringBuilder(); | 519 | ····························e·=·list; |
522 | ····························sb.append(i4); | 520 | ····························break; |
523 | ····························idp·=·"·items·imported·from·external·source"; | 521 | ························} |
524 | ····························sb.append((String)idp); | 522 | ························final·int·n16·=·n3; |
525 | ····························FileLog.d((String)o,·sb.toString()); | 523 | ························e·=·list; |
526 | ····························if·(i4·>=·6)·{ | 524 | ························final·HashSet<String>·set3·=·set; |
| 525 | ························final·int·i4·=·n4; |
| 526 | ························final·String·s26·=·(String)s15; |
| 527 | ························if·(idp·!=·null)·{ |
| 528 | ····························((Cursor)idp).close(); |
| 529 | ························} |
| 530 | ························final·StringBuilder·sb·=·new·StringBuilder(); |
| 531 | ························sb.append(i4); |
| 532 | ························idp·=·"·items·imported·from·external·source"; |
| 533 | ························sb.append((String)idp); |
| 534 | ························FileLog.d((String)o2,·sb.toString()); |
| 535 | ························if·(i4·>=·6)·{ |
| 536 | ····························if·(!((ArrayList)e).isEmpty())·{ |
| 537 | ································this.mContext.getContentResolver().applyBatch(s26,·(ArrayList)e); |
| 538 | ································((ArrayList)e).clear(); |
| 539 | ····························} |
| 540 | ····························final·IntSparseArrayMap·removeBrokenHotseatItems·=·GridSizeMigrationTask.removeBrokenHotseatItems(this.mContext); |
| 541 | ····························idp·=·LauncherAppState.getIDP(this.mContext); |
| 542 | ····························final·int·numHotseatIcons·=·((InvariantDeviceProfile)idp).numHotseatIcons; |
| 543 | ····························if·(removeBrokenHotseatItems.size()·<·numHotseatIcons)·{ |
| 544 | ································new·ImportDataTask$HotseatLayoutParser(this.mContext,·(AutoInstallsLayout$LayoutParserCallback)new·ImportDataTask$HotseatParserCallback((HashSet)set3,·removeBrokenHotseatItems,·(ArrayList)e,·n16·+·1,·numHotseatIcons)).loadLayout((SQLiteDatabase)null,·new·IntArray()); |
| 545 | ································final·int·size2·=·removeBrokenHotseatItems.size(); |
| 546 | ································final·int·n17·=·1; |
| 547 | ································this.mHotseatSize·=·removeBrokenHotseatItems.keyAt(size2·-·n17)·+·n17; |
527 | ································if·(!((ArrayList)e).isEmpty())·{ | 548 | ································if·(!((ArrayList)e).isEmpty())·{ |
528 | ····································this.mContext.getContentResolver().applyBatch(s20,·(ArrayList)e); | 549 | ····································this.mContext.getContentResolver().applyBatch(s26,·(ArrayList)e); |
529 | ····································((ArrayList)e).clear(); | |
530 | ································} | 550 | ································} |
531 | ································final·IntSparseArrayMap·removeBrokenHotseatItems·=·GridSizeMigrationTask.removeBrokenHotseatItems(this.mContext); | |
532 | ································idp·=·LauncherAppState.getIDP(this.mContext); | |
533 | ································final·int·numHotseatIcons·=·((InvariantDeviceProfile)idp).numHotseatIcons; | |
534 | ································a·=·removeBrokenHotseatItems.size(); | |
535 | ································if·(a·<·numHotseatIcons)·{ | |
536 | ····································final·int·n20; | |
537 | ····································final·ImportDataTask$HotseatParserCallback·importDataTask$HotseatParserCallback·=·new·ImportDataTask$HotseatParserCallback((HashSet)o17,·removeBrokenHotseatItems,·(ArrayList)e,·n20,·numHotseatIcons); | |
538 | ····································n20·=·n19·+·1; | |
539 | ····································new·ImportDataTask$HotseatLayoutParser(this.mContext,·(AutoInstallsLayout$LayoutParserCallback)importDataTask$HotseatParserCallback).loadLayout((SQLiteDatabase)null,·new·IntArray()); | |
540 | ····································final·int·size·=·removeBrokenHotseatItems.size(); | |
541 | ····································final·int·n21·=·1; | |
542 | ····································this.mHotseatSize·=·removeBrokenHotseatItems.keyAt(size·-·n21)·+·n21; | |
543 | ····································if·(!((ArrayList)e).isEmpty())·{ | |
544 | ········································this.mContext.getContentResolver().applyBatch(s20,·(ArrayList)e); | |
545 | ····································} | |
546 | ································} | |
547 | ································return; | |
548 | ····························} | 551 | ····························} |
549 | ····························throw·new·Exception("Insufficient·data"); | 552 | ····························return; |
550 | ························} | 553 | ························} |
551 | ····················} | 554 | ························throw·new·Exception("Insufficient·data"); |
552 | ····················finally·{ | |
553 | ························e·=·o5; | |
554 | ························final·Integer·n22; | |
555 | ························o4·=·n22; | |
556 | ····················} | 555 | ····················} |
557 | ················} | 556 | ················} |
558 | ················finally·{ | 557 | ················finally·{ |
559 | ····················e·=·o5; | 558 | ····················e·=·list; |
560 | ····················final·Integer·n23; | |
561 | ····················o4·=·n23; | |
562 | ················} | 559 | ················} |
563 | ············} | 560 | ············} |
564 | ············finally·{} | 561 | ············finally·{ |
| 562 | ················e·=·list; |
| 563 | ············} |
565 | ········} | 564 | ········} |
566 | ········finally·{ | 565 | ········finally·{ |
567 | ············final·Throwable·t2; | 566 | ············final·Throwable·t2; |
568 | ············final·Throwable·t·=·t2; | 567 | ············t·=·t2; |
569 | ············if·(o4·!=·null)·{ | 568 | ········} |
570 | ················try·{ | 569 | ········if·(idp·!=·null)·{ |
571 | ····················((Cursor)o4).close(); | 570 | ············try·{ |
572 | ················} | 571 | ················((Cursor)idp).close(); |
573 | ················finally·{ | 572 | ············} |
574 | ····················final·Throwable·exception; | 573 | ············finally·{ |
575 | ····················t.addSuppressed(exception); | 574 | ················final·Throwable·exception; |
576 | ················} | 575 | ················t.addSuppressed(exception); |
577 | ············} | 576 | ············} |
578 | ········} | 577 | ········} |
| 578 | ········throw·t; |
579 | ····} | 579 | ····} |
580 | ···· | 580 | ···· |
581 | ····public·static·boolean·performImportIfPossible(final·Context·context)·{ | 581 | ····public·static·boolean·performImportIfPossible(final·Context·context)·{ |
582 | ········final·SharedPreferences·devicePrefs·=·Utilities.getDevicePrefs(context); | 582 | ········final·SharedPreferences·devicePrefs·=·Utilities.getDevicePrefs(context); |
583 | ········final·String·s·=·"data_import_src_pkg"; | 583 | ········final·String·s·=·"data_import_src_pkg"; |
584 | ········final·String·s2·=·""; | 584 | ········final·String·s2·=·""; |
585 | ········final·String·string·=·devicePrefs.getString(s,·s2); | 585 | ········final·String·string·=·devicePrefs.getString(s,·s2); |