Restructure app info page

When the collapsing toolbar is applied in the Settings app, some pages
they used manage_applications_apps will have the collapsing toolbar not
work properly. This was caused by using multiple CoordinatorLayout and
AppBarLayout in these pages.

Bug: 177375909
Test: visual verified
Change-Id: Ibfeeab9cf907a23d18ee1ec2c450c523316cfc92
This commit is contained in:
Mill Chen
2021-02-04 18:53:44 +08:00
parent 9e949b1920
commit d072e8501a
2 changed files with 68 additions and 1 deletions

View File

@@ -398,7 +398,11 @@ public class ManageApplications extends InstrumentedFragment
return mRootView;
}
mRootView = inflater.inflate(R.layout.manage_applications_apps, null);
if (FeatureFlagUtils.isEnabled(getContext(), FeatureFlags.SILKY_HOME)) {
mRootView = inflater.inflate(R.layout.manage_applications_apps_v2, null);
} else {
mRootView = inflater.inflate(R.layout.manage_applications_apps, null);
}
mLoadingContainer = mRootView.findViewById(R.id.loading_container);
mListContainer = mRootView.findViewById(R.id.list_container);
if (mListContainer != null) {