diff options
author | erfanian <erfanian@google.com> | 2018-06-29 12:10:24 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-06-29 12:10:24 -0700 |
commit | b09be66b952c6fd353295454c3bd63f2f7ea0d1f (patch) | |
tree | 4732362932f7e6b6c17d59c17c397d05590d1a2d | |
parent | 1868e16046474b81ea65acf241d06d26c5ca238a (diff) | |
parent | d0ea13da747a9f17fb8f114201f7d5b500bf806c (diff) |
Merge "Remove more instances of guava optional for built in optional." am: 3c18592885 am: 90f61762da
am: d0ea13da74
Change-Id: I723289e8e48c57b9127b6b97ddb7cb24ab34ff95
3 files changed, 5 insertions, 5 deletions
diff --git a/java/com/android/incallui/InCallActivity.java b/java/com/android/incallui/InCallActivity.java index 9db42d75f..fa4a06ecf 100644 --- a/java/com/android/incallui/InCallActivity.java +++ b/java/com/android/incallui/InCallActivity.java @@ -96,12 +96,12 @@ import com.android.incallui.video.bindings.VideoBindings; import com.android.incallui.video.protocol.VideoCallScreen; import com.android.incallui.video.protocol.VideoCallScreenDelegate; import com.android.incallui.video.protocol.VideoCallScreenDelegateFactory; -import com.google.common.base.Optional; import com.google.common.util.concurrent.ListenableFuture; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.ArrayList; import java.util.List; +import java.util.Optional; /** Version of {@link InCallActivity} that shows the new UI */ public class InCallActivity extends TransactionSafeFragmentActivity @@ -124,7 +124,7 @@ public class InCallActivity extends TransactionSafeFragmentActivity private static final int DIALPAD_REQUEST_SHOW = 2; private static final int DIALPAD_REQUEST_HIDE = 3; - private static Optional<Integer> audioRouteForTesting = Optional.absent(); + private static Optional<Integer> audioRouteForTesting = Optional.empty(); private SelectPhoneAccountListener selectPhoneAccountListener; private UiListener<Result> preferredAccountWorkerResultListener; diff --git a/java/com/android/incallui/speakeasy/SpeakEasyCallManager.java b/java/com/android/incallui/speakeasy/SpeakEasyCallManager.java index f2916f46f..55905ceb3 100644 --- a/java/com/android/incallui/speakeasy/SpeakEasyCallManager.java +++ b/java/com/android/incallui/speakeasy/SpeakEasyCallManager.java @@ -20,8 +20,8 @@ import android.content.Context; import android.support.annotation.NonNull; import android.support.v4.app.Fragment; import com.android.incallui.call.DialerCall; -import com.google.common.base.Optional; import com.google.common.util.concurrent.ListenableFuture; +import java.util.Optional; /** Provides operations necessary to SpeakEasy. */ public interface SpeakEasyCallManager { diff --git a/java/com/android/incallui/speakeasy/SpeakEasyCallManagerStub.java b/java/com/android/incallui/speakeasy/SpeakEasyCallManagerStub.java index da5e88aa3..4eebc809e 100644 --- a/java/com/android/incallui/speakeasy/SpeakEasyCallManagerStub.java +++ b/java/com/android/incallui/speakeasy/SpeakEasyCallManagerStub.java @@ -21,9 +21,9 @@ import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import com.android.incallui.call.DialerCall; -import com.google.common.base.Optional; import com.google.common.util.concurrent.Futures; import com.google.common.util.concurrent.ListenableFuture; +import java.util.Optional; import javax.inject.Inject; /** Default implementation of SpeakEasyCallManager. */ @@ -36,7 +36,7 @@ public class SpeakEasyCallManagerStub implements SpeakEasyCallManager { @Override @Nullable public Optional<Fragment> getSpeakEasyFragment(DialerCall call) { - return Optional.absent(); + return Optional.empty(); } /** Always inert in the stub. */ |