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

Commit b4542cff authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Use Option.ofNullable instead of Optional.of" am: a85c99c7

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Dialer/+/1792941

Change-Id: I2bd64336f007caf8fc46b2ce3f03b5a0de45eb72
parents c5af9675 a85c99c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ public final class SpeedDialEntryDatabaseHelper extends SQLiteOpenHelper
              Channel.builder()
                  .setNumber(number)
                  .setPhoneType(cursor.getInt(POSITION_PHONE_TYPE))
                  .setLabel(Optional.of(cursor.getString(POSITION_PHONE_LABEL)).or(""))
                  .setLabel(Optional.fromNullable(cursor.getString(POSITION_PHONE_LABEL)).or(""))
                  .setTechnology(cursor.getInt(POSITION_PHONE_TECHNOLOGY))
                  .build();
        }