blob: a54b02ec3d86a7b398f05a65a26d26bcc38caf87 [file] [log] [blame]
package com.android.settings.fuelgauge.anomaly;
import android.content.Context;
import androidx.preference.Preference;
import com.android.settings.R;
/**
* 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;
}
}