Add abnormal app page for battery settings
1. Add abnormal app page 2. Add strings for abnormal app page 3. Change AnomalyPreferenceController to open abnormal app page, when there are more than one anomaly. 4. Add AnomalyPreference, who stores a reference of anomaly. Also rename AnomalyPreferenceController to AnomalySummaryPreferenceController because this controller is not used to handle AnomalyPreference. Following cls will add summary and icon for each abnormal app. Bug: 37681665 Test: RunSettingsRoboTests Change-Id: I4266f906476ff8daccd962572c8cfa99f948080a
This commit is contained in:
@@ -51,7 +51,6 @@ public class Anomaly implements Parcelable {
|
||||
public final int type;
|
||||
public final int uid;
|
||||
public final long wakelockTimeMs;
|
||||
|
||||
/**
|
||||
* Display name of this anomaly, usually it is the app name
|
||||
*/
|
||||
@@ -98,7 +97,6 @@ public class Anomaly implements Parcelable {
|
||||
}
|
||||
|
||||
Anomaly other = (Anomaly) obj;
|
||||
|
||||
return type == other.type
|
||||
&& uid == other.uid
|
||||
&& wakelockTimeMs == other.wakelockTimeMs
|
||||
|
||||
Reference in New Issue
Block a user