Add kill-switch to distinguish chart or non-chart design

Bug: 184807417
Bug: 180607918
Test: make SettingsRoboTests
Test: make SettingsGoogleRoboTests
Change-Id: Iacbb012209d552b58b774f90f5b0aeb60ce6d33d
This commit is contained in:
ykhung
2021-04-09 11:43:22 +08:00
committed by YUKAI HUNG
parent 57f27f7a30
commit cdd73e7fec
6 changed files with 284 additions and 16 deletions

View File

@@ -74,7 +74,9 @@ public class BatteryChartView extends AppCompatImageView implements View.OnClick
public BatteryChartView(Context context, AttributeSet attrs) {
super(context, attrs);
initializeColors(context);
// Registers the click event listener.
setOnClickListener(this);
setClickable(false);
setSelectedIndex(SELECTED_INDEX_ALL);
setTrapezoidCount(DEFAULT_TRAPEZOID_COUNT);
}