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

Commit fab0878e authored by Andrew Walbran's avatar Andrew Walbran
Browse files

Update to improved system_properties API.

Bug: 217728265
Test: mm
Change-Id: I01ca63ef51f88be6ecee67d2cb5e266cfa5c7df1
parent 5d3306a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
/// Gets the value of a system property on Android
#[cfg(target_os = "android")]
pub fn get(name: &str) -> Option<String> {
    rustutils::system_properties::read(name).ok()
    rustutils::system_properties::read(name).unwrap_or(None)
}

/// Fake getter for non-Android, which will always return nothing.