Remove app info page v1 related codes.
- change to use AppInfoDashboardFragment completely - remove InstalledAppDetails and the corresponding tests Change-Id: I8cbdf71cadc8b5743929abbafe91185e5e39b6b2 Fixes: 69384089 Test: make RunSettingsRoboTests
This commit is contained in:
@@ -17,30 +17,21 @@
|
||||
package com.android.settings.applications;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.util.FeatureFlagUtils;
|
||||
|
||||
import com.android.settings.SettingsActivity;
|
||||
import com.android.settings.applications.appinfo.AppInfoDashboardFragment;
|
||||
import com.android.settings.core.FeatureFlags;
|
||||
|
||||
public class InstalledAppDetailsTop extends SettingsActivity {
|
||||
|
||||
@Override
|
||||
public Intent getIntent() {
|
||||
Intent modIntent = new Intent(super.getIntent());
|
||||
if (FeatureFlagUtils.isEnabled(this, FeatureFlags.APP_INFO_V2)) {
|
||||
modIntent.putExtra(EXTRA_SHOW_FRAGMENT, AppInfoDashboardFragment.class.getName());
|
||||
} else {
|
||||
modIntent.putExtra(EXTRA_SHOW_FRAGMENT, InstalledAppDetails.class.getName());
|
||||
}
|
||||
modIntent.putExtra(EXTRA_SHOW_FRAGMENT, AppInfoDashboardFragment.class.getName());
|
||||
return modIntent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isValidFragment(String fragmentName) {
|
||||
if (FeatureFlagUtils.isEnabled(this, FeatureFlags.APP_INFO_V2)) {
|
||||
return AppInfoDashboardFragment.class.getName().equals(fragmentName);
|
||||
}
|
||||
return InstalledAppDetails.class.getName().equals(fragmentName);
|
||||
return AppInfoDashboardFragment.class.getName().equals(fragmentName);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user