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

Commit cc470bc0 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 am: b4542cff

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

Change-Id: Ie71fa595c16823bc9fc87d6be5276449505d42ee
parents 17c942c7 b4542cff
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();
        }