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

Commit e78766c3 authored by Chris Antol's avatar Chris Antol
Browse files

Support Storage App List in Catalyst

Bug: 404280477
Test: Manual testing via ADB
Flag: com.android.settings.flags.catalyst_app_list
Change-Id: If7faf71908dc24bbc96c19d2503dd5a991dbe3d2
parent 41ef72bc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -139,6 +139,7 @@ message PreferenceValueProto {
    bool boolean_value = 1;
    int32 int_value = 2;
    float float_value = 3;
    int64 long_value = 4;
  }
}

@@ -148,6 +149,7 @@ message PreferenceValueDescriptorProto {
    bool boolean_type = 1;
    RangeValueProto range_value = 2;
    bool float_type = 3;
    bool long_type = 4;
  }
}

+2 −0
Original line number Diff line number Diff line
@@ -441,6 +441,7 @@ fun PreferenceMetadata.toProto(
                    storage.getBoolean(metadata.key)?.let { booleanValue = it }
                Float::class.javaObjectType ->
                    storage.getFloat(metadata.key)?.let { floatValue = it }
                Long::class.javaObjectType -> storage.getLong(metadata.key)?.let { longValue = it }
                else -> {}
            }
        }
@@ -458,6 +459,7 @@ fun PreferenceMetadata.toProto(
            when (metadata.valueType) {
                Boolean::class.javaObjectType -> booleanType = true
                Float::class.javaObjectType -> floatType = true
                Long::class.javaObjectType -> longType = true
            }
        }
    }