Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7bb27de0 authored by Linus Tufvesson's avatar Linus Tufvesson
Browse files

Sort properties by keys

'device_config list' is printing the values sorted
'device_config list <namespace>' should do the same.

Test: Manually verified
Change-Id: I6b1f65161e56f5299a74b7c0942cef3a4d16d3d9
parent 56af6730
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -196,7 +196,9 @@ public final class DeviceConfigService extends Binder {
                case LIST:
                    if (namespace != null) {
                        DeviceConfig.Properties properties = DeviceConfig.getProperties(namespace);
                        for (String name : properties.getKeyset()) {
                        List<String> keys = new ArrayList<>(properties.getKeyset());
                        Collections.sort(keys);
                        for (String name : keys) {
                            pout.println(name + "=" + properties.getString(name, null));
                        }
                    } else {