Update category for AccountDetailDashboardFragment.
- use a separate category key for AccountDetailDashboardFragment instead of sharing the same key with UserAndAccountDashboardFragment. Tile using the original category will now show up at the top level account setting, and tile using the new account detail detail will be displayed under the specified account type. Bug: 62446202 Test: make RunSettingsRoboTests Change-Id: I06f781a20f24498bdc6207aef5469be9cd0c8e47
This commit is contained in:
@@ -66,27 +66,6 @@ public class UserAndAccountDashboardFragmentTest {
|
||||
assertThat(mFragment.getCategoryKey()).isEqualTo(CategoryKey.CATEGORY_ACCOUNT);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void refreshDashboardTiles_HasAccountType_shouldNotDisplay() {
|
||||
final Tile tile = new Tile();
|
||||
final Bundle metaData = new Bundle();
|
||||
metaData.putString(METADATA_CATEGORY, CategoryKey.CATEGORY_ACCOUNT);
|
||||
metaData.putString(METADATA_ACCOUNT_TYPE, "com.abc");
|
||||
tile.metaData = metaData;
|
||||
|
||||
assertThat(mFragment.displayTile(tile)).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void refreshDashboardTiles_NoAccountType_shouldDisplay() {
|
||||
final Tile tile = new Tile();
|
||||
final Bundle metaData = new Bundle();
|
||||
metaData.putString(METADATA_CATEGORY, CategoryKey.CATEGORY_ACCOUNT);
|
||||
tile.metaData = metaData;
|
||||
|
||||
assertThat(mFragment.displayTile(tile)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void updateSummary_shouldDisplaySignedInUser() {
|
||||
final Activity activity = mock(Activity.class);
|
||||
|
Reference in New Issue
Block a user