Update action bar style in app header UI.
- Update background color of actionbar - Remove elevation of actionbar so it appears to be the same entity as app header. - Add a shadow below app header view. We can't set elevation on app header unfortunately because that will add shadow all round the view, but we only want shadow below it. - Updated app icon size/text size per to match UI spec. Change-Id: I63d7fa42b859a008fa662aaf19848cd40529c2ff Fix: 37207527 Fix: 37079248 Test: visual && make RunSettingsRoboTests
This commit is contained in:
@@ -17,16 +17,12 @@
|
||||
package com.android.settings.fuelgauge;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.app.Dialog;
|
||||
import android.app.admin.DevicePolicyManager;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.os.BatteryStats;
|
||||
import android.os.Bundle;
|
||||
import android.os.SystemClock;
|
||||
import android.os.UserHandle;
|
||||
import android.os.UserManager;
|
||||
import android.support.annotation.VisibleForTesting;
|
||||
@@ -179,7 +175,7 @@ public class AdvancedPowerUsageDetail extends PowerUsageBase implements
|
||||
@VisibleForTesting
|
||||
void initHeader() {
|
||||
final View appSnippet = mHeaderPreference.findViewById(R.id.app_snippet);
|
||||
final Context context = getContext();
|
||||
final Activity context = getActivity();
|
||||
final Bundle bundle = getArguments();
|
||||
AppHeaderController controller = FeatureFactory.getFactory(context)
|
||||
.getApplicationFeatureProvider(context)
|
||||
@@ -203,7 +199,7 @@ public class AdvancedPowerUsageDetail extends PowerUsageBase implements
|
||||
controller.setSummary(getString(Utils.getInstallationStatus(mAppEntry.info)));
|
||||
}
|
||||
|
||||
controller.done(true /* rebindActions */);
|
||||
controller.done(context, true /* rebindActions */);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user