Pebble: do not move to last position if reinstalling an app, the order seems to be preserved on the pebble

This commit is contained in:
Andreas Shimokawa 2016-06-19 21:13:47 +02:00
parent 24e840e03b
commit 7597ce337d
1 changed files with 4 additions and 3 deletions

View File

@ -134,9 +134,10 @@ public class AppManagerActivity extends AbstractGBFragmentActivity {
synchronized public static void addToAppOrderFile(String filename, UUID uuid) {
ArrayList<UUID> uuids = getUuidsFromFile(filename);
uuids.remove(uuid); // if alread there
uuids.add(uuid);
rewriteAppOrderFile(filename, uuids);
if (!uuids.contains(uuid)) {
uuids.add(uuid);
rewriteAppOrderFile(filename, uuids);
}
}
static synchronized ArrayList<UUID> getUuidsFromFile(String filename) {