Tweak app notification page title and expand button cutoff

Change-Id: If9b93023ac9ab946b7c2b0dd65852948029da896
Fixes: 71813209
Test: visual
This commit is contained in:
Fan Zhang
2018-01-12 15:00:09 -08:00
parent 87d120a7e1
commit 4f389a7731
3 changed files with 2 additions and 8 deletions

View File

@@ -20,7 +20,7 @@
xmlns:settings="http://schemas.android.com/apk/res-auto" xmlns:settings="http://schemas.android.com/apk/res-auto"
android:key="apps_and_notification_screen" android:key="apps_and_notification_screen"
android:title="@string/app_and_notification_dashboard_title" android:title="@string/app_and_notification_dashboard_title"
settings:initialExpandedChildrenCount="4"> settings:initialExpandedChildrenCount="6">
<PreferenceCategory <PreferenceCategory
android:key="recent_apps_category" android:key="recent_apps_category"
@@ -37,7 +37,6 @@
android:action="android.intent.action.MAIN" android:action="android.intent.action.MAIN"
android:targetPackage="com.android.settings" android:targetPackage="com.android.settings"
android:targetClass="com.android.settings.Settings$ManageApplicationsActivity"> android:targetClass="com.android.settings.Settings$ManageApplicationsActivity">
<extra android:name="show_drawer_menu" android:value="true" />
</intent> </intent>
</Preference> </Preference>
</PreferenceCategory> </PreferenceCategory>

View File

@@ -232,7 +232,7 @@ public class ManageApplications extends InstrumentedPreferenceFragment
Intent intent = activity.getIntent(); Intent intent = activity.getIntent();
Bundle args = getArguments(); Bundle args = getArguments();
int screenTitle = intent.getIntExtra( int screenTitle = intent.getIntExtra(
SettingsActivity.EXTRA_SHOW_FRAGMENT_TITLE_RESID, R.string.notifications_label); SettingsActivity.EXTRA_SHOW_FRAGMENT_TITLE_RESID, R.string.application_info_label);
String className = args != null ? args.getString(EXTRA_CLASSNAME) : null; String className = args != null ? args.getString(EXTRA_CLASSNAME) : null;
if (className == null) { if (className == null) {
className = intent.getComponent().getClassName(); className = intent.getComponent().getClassName();

View File

@@ -196,11 +196,6 @@ public class ManageApplicationsTest {
.isFalse(); .isFalse();
} }
@Test
public void shouldUseStableItemHeight_notificationType_no() {
}
@Test @Test
public void onRebuildComplete_shouldHideLoadingView() { public void onRebuildComplete_shouldHideLoadingView() {
final Context context = RuntimeEnvironment.application; final Context context = RuntimeEnvironment.application;