blob: ba061473049d1236eafd0e9c51d7a5429fbbdf48 [file] [log] [blame]
package com.android.settings.fuelgauge.anomaly;
import android.content.Context;
import androidx.preference.Preference;
/**
* Preference that stores {@link Anomaly}
*/
public class AnomalyPreference extends Preference {
private Anomaly mAnomaly;
public AnomalyPreference(Context context, Anomaly anomaly) {
super(context);
mAnomaly = anomaly;
if (anomaly != null) {
setTitle(anomaly.displayName);
}
}
public Anomaly getAnomaly() {
return mAnomaly;
}
}