mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-01 18:59:14 +02:00
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:
parent
24e840e03b
commit
7597ce337d
@ -134,10 +134,11 @@ 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
|
||||
if (!uuids.contains(uuid)) {
|
||||
uuids.add(uuid);
|
||||
rewriteAppOrderFile(filename, uuids);
|
||||
}
|
||||
}
|
||||
|
||||
static synchronized ArrayList<UUID> getUuidsFromFile(String filename) {
|
||||
ArrayList<UUID> uuids = new ArrayList<>();
|
||||
|
Loading…
Reference in New Issue
Block a user