mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-03 00:43:02 +01: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,9 +134,10 @@ public class AppManagerActivity extends AbstractGBFragmentActivity {
|
|||||||
|
|
||||||
synchronized public static void addToAppOrderFile(String filename, UUID uuid) {
|
synchronized public static void addToAppOrderFile(String filename, UUID uuid) {
|
||||||
ArrayList<UUID> uuids = getUuidsFromFile(filename);
|
ArrayList<UUID> uuids = getUuidsFromFile(filename);
|
||||||
uuids.remove(uuid); // if alread there
|
if (!uuids.contains(uuid)) {
|
||||||
uuids.add(uuid);
|
uuids.add(uuid);
|
||||||
rewriteAppOrderFile(filename, uuids);
|
rewriteAppOrderFile(filename, uuids);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static synchronized ArrayList<UUID> getUuidsFromFile(String filename) {
|
static synchronized ArrayList<UUID> getUuidsFromFile(String filename) {
|
||||||
|
Loading…
Reference in New Issue
Block a user