Add metric id for anomaly fragments.
1. PowerUsageAnomalyDetails
2. AnomalyDialogFragment
Bug: 37681923
Test: Build
Change-Id: Ia82fde0fa3e61b6284dc18db3018dd223a0e435b
(cherry picked from commit 725562c748
)
This commit is contained in:
@@ -125,8 +125,7 @@ public class PowerUsageAnomalyDetails extends DashboardFragment implements
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
//TODO(b/37681923): add correct metrics category
|
||||
return 0;
|
||||
return MetricsProto.MetricsEvent.FUELGAUGE_ANOMALY_DETAIL;
|
||||
}
|
||||
|
||||
void refreshUi() {
|
||||
|
@@ -23,6 +23,7 @@ import android.content.DialogInterface;
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.VisibleForTesting;
|
||||
|
||||
import com.android.internal.logging.nano.MetricsProto;
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.core.instrumentation.InstrumentedDialogFragment;
|
||||
import com.android.settings.fuelgauge.anomaly.action.AnomalyAction;
|
||||
@@ -79,8 +80,7 @@ public class AnomalyDialogFragment extends InstrumentedDialogFragment implements
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
// TODO(b/37681923): add anomaly metric id
|
||||
return 0;
|
||||
return MetricsProto.MetricsEvent.DIALOG_HANDLE_ANOMALY;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user