Fix InCallActivity not showing on Dialer start

By setting value on LiveData active and inactive, it is triggering
update uncessarily. If onActive is triggered before a valid primary call
set, it will set null value and cause the InCallActivity to finish.

Fixes: 168834716
Test: manually
Change-Id: Id8dde279d1e3d764e1ff1e127dd35fc65513c5fb
diff --git a/src/com/android/car/dialer/livedata/CallDetailLiveData.java b/src/com/android/car/dialer/livedata/CallDetailLiveData.java
index 58328e0..142e6a9 100644
--- a/src/com/android/car/dialer/livedata/CallDetailLiveData.java
+++ b/src/com/android/car/dialer/livedata/CallDetailLiveData.java
@@ -33,18 +33,6 @@
 
     private Call mTelecomCall;
 
-    @Override
-    protected void onActive() {
-        super.onActive();
-        setTelecomCall(mTelecomCall);
-    }
-
-    @Override
-    protected void onInactive() {
-        super.onInactive();
-        setTelecomCall(null);
-    }
-
     private Call.Callback mCallback = new Call.Callback() {
         @Override
         public void onStateChanged(Call telecomCall, int state) {
diff --git a/tests/robotests/src/com/android/car/dialer/livedata/CallDetailLiveDataTest.java b/tests/robotests/src/com/android/car/dialer/livedata/CallDetailLiveDataTest.java
index e1a886e..ba4d50d 100644
--- a/tests/robotests/src/com/android/car/dialer/livedata/CallDetailLiveDataTest.java
+++ b/tests/robotests/src/com/android/car/dialer/livedata/CallDetailLiveDataTest.java
@@ -75,14 +75,6 @@
 
     @Test
     public void testOnActiveRegistry() {
-        reset(mMockCall);
-        mCallDetailLiveData.onActive();
-
-        verify(mMockCall).registerCallback(any());
-    }
-
-    @Test
-    public void testOnLifecycleStart() {
         mCallDetailLiveData.observe(mMockLifecycleOwner, (value) -> mMockObserver.onChanged(value));
         verify(mMockObserver, never()).onChanged(any());
         assertThat(mCallDetailLiveData.hasObservers()).isTrue();