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
Copy file name to clipboardExpand all lines: base/src/main/java/com/smartdevicelink/managers/screen/SoftButtonObject.java
+4-14Lines changed: 4 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -96,13 +96,13 @@ public SoftButtonObject(@NonNull String name, @NonNull List<SoftButtonState> sta
96
96
97
97
if (repeatedStateNames) {
98
98
DebugTool.logError(TAG, "A SoftButtonObject must have states with different names.");
99
-
if (BuildConfig.DEBUG && repeatedStateNames)
99
+
if (BuildConfig.DEBUG)
100
100
thrownewAssertionError("A SoftButtonObject must have states with different names.");
101
101
return;
102
102
}
103
103
if (!hasStateWithInitialName) {
104
104
DebugTool.logError(TAG, "A SoftButtonObject must have a state with initialStateName.");
105
-
if (BuildConfig.DEBUG && !hasStateWithInitialName)
105
+
if (BuildConfig.DEBUG)
106
106
thrownewAssertionError("A SoftButtonObject must have a state with initialStateName.");
107
107
return;
108
108
}
@@ -291,28 +291,18 @@ public List<SoftButtonState> getStates() {
291
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