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

Commit 504bb5ad authored by Brian Muramatsu's avatar Brian Muramatsu Committed by Android (Google) Code Review
Browse files

Merge "Fix Settings getFloat Methods"

parents 92d50202 e1d4698f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -977,6 +977,9 @@ public final class Settings {
        public static float getFloat(ContentResolver cr, String name)
                throws SettingNotFoundException {
            String v = getString(cr, name);
            if (v == null) {
                throw new SettingNotFoundException(name);
            }
            try {
                return Float.parseFloat(v);
            } catch (NumberFormatException e) {
@@ -2296,6 +2299,9 @@ public final class Settings {
        public static float getFloat(ContentResolver cr, String name)
                throws SettingNotFoundException {
            String v = getString(cr, name);
            if (v == null) {
                throw new SettingNotFoundException(name);
            }
            try {
                return Float.parseFloat(v);
            } catch (NumberFormatException e) {