You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DebugTool.logError(TAG, "A SoftButtonObject must have states with different names.");
99
+
if (BuildConfig.DEBUG && repeatedStateNames)
100
+
thrownewAssertionError("A SoftButtonObject must have states with different names.");
101
+
return;
102
+
}
103
+
if (!hasStateWithInitialName) {
104
+
DebugTool.logError(TAG, "A SoftButtonObject must have a state with initialStateName.");
105
+
if (BuildConfig.DEBUG && !hasStateWithInitialName)
106
+
thrownewAssertionError("A SoftButtonObject must have a state with initialStateName.");
107
+
return;
108
+
}
85
109
this.name = name;
86
110
this.states = states;
87
111
this.currentStateName = initialStateName;
@@ -267,7 +291,7 @@ public List<SoftButtonState> getStates() {
267
291
* @param states a list of the object's soft button states. <strong>states should be unique for every SoftButtonObject. A SoftButtonState instance cannot be reused for multiple SoftButtonObjects.</strong>
0 commit comments