From c8de1b017b2c2ed7afc803a99771903d1fed0148 Mon Sep 17 00:00:00 2001 From: BeppiMenozzi Date: Tue, 22 Nov 2016 12:15:48 +0100 Subject: [PATCH] Update SampleActivity.java --- .../it/beppi/tristatetogglebuttonsample/SampleActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tristatetogglebutton_sample/src/main/java/it/beppi/tristatetogglebuttonsample/SampleActivity.java b/tristatetogglebutton_sample/src/main/java/it/beppi/tristatetogglebuttonsample/SampleActivity.java index 47ea43a..5c1e66e 100644 --- a/tristatetogglebutton_sample/src/main/java/it/beppi/tristatetogglebuttonsample/SampleActivity.java +++ b/tristatetogglebutton_sample/src/main/java/it/beppi/tristatetogglebuttonsample/SampleActivity.java @@ -52,7 +52,7 @@ public void onToggle(TriStateToggleButton.ToggleStatus toggleStatus, boolean boo switch (toggleStatus) { case off: tstb_2_text.setText("Off"); break; case mid: tstb_2_text.setText("Almost..."); break; - case on: tstb_2_text.setText("On"); tstb_3.setEnabled(true); break; + case on: tstb_2_text.setText("On"); break; } } });