Remove deep link to app store from app header.
The link doesn't actually work and uses wrong icon. There is a working version at the app info screen already. Change-Id: I16890bd66e095c3185e12d604d8daba5036ab24c Fix: 37544209 Test: robotests
This commit is contained in:
@@ -18,7 +18,6 @@ package com.android.settings.applications;
|
||||
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import static org.mockito.Matchers.any;
|
||||
import static org.mockito.Matchers.anyInt;
|
||||
import static org.mockito.Matchers.eq;
|
||||
@@ -171,25 +170,6 @@ public class AppHeaderControllerTest {
|
||||
.isEqualTo(View.GONE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void bindButton_noStoreLink_shouldNotShowButton() {
|
||||
final View appLinks = mLayoutInflater
|
||||
.inflate(R.layout.app_details, null /* root */);
|
||||
when(mContext.getPackageManager().resolveActivity(any(Intent.class), anyInt()))
|
||||
.thenReturn(null);
|
||||
|
||||
mController = new AppHeaderController(mContext, mFragment, appLinks);
|
||||
mController.setButtonActions(
|
||||
AppHeaderController.ActionType.ACTION_STORE_DEEP_LINK,
|
||||
AppHeaderController.ActionType.ACTION_NONE);
|
||||
mController.done(mActivity);
|
||||
|
||||
assertThat(appLinks.findViewById(R.id.left_button).getVisibility())
|
||||
.isEqualTo(View.GONE);
|
||||
assertThat(appLinks.findViewById(R.id.right_button).getVisibility())
|
||||
.isEqualTo(View.GONE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void bindButton_noAppInfo_shouldNotShowButton() {
|
||||
final View appLinks = mLayoutInflater
|
||||
|
Reference in New Issue
Block a user