Remove redundant cast

Bug: 313569889
Test: atest
Change-Id: Idad218e3722f29063b6c357139f7120414dea09e
This commit is contained in:
Fan Wu
2024-01-31 10:44:39 +08:00
parent c7e0649c2e
commit 148640e72d

View File

@@ -677,7 +677,7 @@ public class DashboardFeatureProviderImplTest {
preference.performClick();
Intent nextStartedActivity =
Shadows.shadowOf((Application) mApplication).peekNextStartedActivity();
Shadows.shadowOf(mApplication).peekNextStartedActivity();
assertThat(nextStartedActivity).isNotNull();
assertThat(nextStartedActivity.getAction()).isEqualTo("test");
}
@@ -704,7 +704,7 @@ public class DashboardFeatureProviderImplTest {
mActivity.getSupportFragmentManager().findFragmentByTag("select_profile");
assertThat(dialogFragment).isNotNull();
Intent nextStartedActivity =
Shadows.shadowOf((Application) mApplication).peekNextStartedActivity();
Shadows.shadowOf(mApplication).peekNextStartedActivity();
assertThat(nextStartedActivity).isNull();
}