We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c4e604 commit 89dd672Copy full SHA for 89dd672
extensions/shared/src/main/java/app/revanced/extension/shared/settings/preference/ColorPreference.java
@@ -153,6 +153,12 @@ protected void onBindView(View view) {
153
colorPreviewDot.setMinimumHeight(size);
154
colorPreviewDot.setOnClickListener(v -> onClick());
155
}
156
+
157
+ // Remove colorPreviewDot from its current parent, if it has one
158
+ if (colorPreviewDot.getParent() != null) {
159
+ ((ViewGroup) colorPreviewDot.getParent()).removeView(colorPreviewDot);
160
+ }
161
162
updateColorDot();
163
164
ViewGroup widgetFrame = view.findViewById(android.R.id.widget_frame);
0 commit comments