diff options
author | twyen <twyen@google.com> | 2017-09-13 10:37:01 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-09-13 16:40:09 -0700 |
commit | 592098024c2f5c7df232c73034b6ae17e8af53a4 (patch) | |
tree | 7a2e4ed6af08572dfb400e7d5eeff5c8a40cdc35 /java/com/android/incallui/videotech/lightbringer/LightbringerTech.java | |
parent | a23a522125599d99bcad03bc5c999df339538373 (diff) |
Setup SMS filter even if VVM is already activated
VVM can be "activated" through restoring shared preferences from another device. In this case the SMS filter in telephony is still not configured, and needs to be set up.
Bug: 65542413
Test: ActivationTaskTest
PiperOrigin-RevId: 168560153
Change-Id: I46dd9b31e43899d8d567e7e6baebf06559548525
Diffstat (limited to 'java/com/android/incallui/videotech/lightbringer/LightbringerTech.java')
-rw-r--r-- | java/com/android/incallui/videotech/lightbringer/LightbringerTech.java | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/java/com/android/incallui/videotech/lightbringer/LightbringerTech.java b/java/com/android/incallui/videotech/lightbringer/LightbringerTech.java index 4882ba879..a807759db 100644 --- a/java/com/android/incallui/videotech/lightbringer/LightbringerTech.java +++ b/java/com/android/incallui/videotech/lightbringer/LightbringerTech.java @@ -21,7 +21,6 @@ import android.os.Build; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.telecom.Call; -import com.android.contacts.common.compat.telecom.TelecomManagerCompat; import com.android.dialer.common.Assert; import com.android.dialer.common.LogUtil; import com.android.dialer.configprovider.ConfigProviderBindings; @@ -55,7 +54,7 @@ public class LightbringerTech implements VideoTech, LightbringerListener { @Override public boolean isAvailable(Context context) { - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) { + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) { LogUtil.v("LightbringerTech.isAvailable", "upgrade unavailable, only supported on O+"); return false; } @@ -71,11 +70,6 @@ public class LightbringerTech implements VideoTech, LightbringerListener { return false; } - if (!TelecomManagerCompat.supportsHandover()) { - LogUtil.v("LightbringerTech.isAvailable", "upgrade unavailable, telephony support missing"); - return false; - } - if (!lightbringer.supportsUpgrade(context, callingNumber)) { LogUtil.v("LightbringerTech.isAvailable", "upgrade unavailable, number does not support it"); return false; @@ -125,13 +119,13 @@ public class LightbringerTech implements VideoTech, LightbringerListener { } @Override - public void upgradeToVideo() { + public void upgradeToVideo(@NonNull Context context) { listener.onImpressionLoggingNeeded(DialerImpression.Type.LIGHTBRINGER_UPGRADE_REQUESTED); - lightbringer.requestUpgrade(call); + lightbringer.requestUpgrade(context, call); } @Override - public void acceptVideoRequest() { + public void acceptVideoRequest(@NonNull Context context) { throw Assert.createUnsupportedOperationFailException(); } @@ -156,7 +150,7 @@ public class LightbringerTech implements VideoTech, LightbringerListener { } @Override - public void resumeTransmission() { + public void resumeTransmission(@NonNull Context context) { throw Assert.createUnsupportedOperationFailException(); } |