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
Using ColorPicker version 1.1.0 with an Android app that makes use of AndroidX, I am getting the following ClassCastException:
java.lang.ClassCastException: my.package.SettingsActivity cannot be cast to androidx.fragment.app.FragmentActivity
at com.jaredrummler.android.colorpicker.ColorPreference.onAttachedToActivity(ColorPreference.java:118)
at android.preference.PreferenceGroup.onAttachedToActivity(PreferenceGroup.java:281)
at android.preference.PreferenceGroup.onAttachedToActivity(PreferenceGroup.java:281)
at android.preference.PreferenceScreen.bind(PreferenceScreen.java:169)
at android.preference.PreferenceFragment.bindPreferences(PreferenceFragment.java:391)
at android.preference.PreferenceFragment.onActivityCreated(PreferenceFragment.java:214)
at android.app.Fragment.performActivityCreated(Fragment.java:2531)
Using ColorPicker version 1.1.0 with an Android app that makes use of AndroidX, I am getting the following ClassCastException:
See https://github.com/jaredrummler/ColorPicker/blob/master/library/src/main/java/com/jaredrummler/android/colorpicker/ColorPreference.java#L118.
The class
my.package.SettingsActivity
extendsandroid.preference.PreferenceActivity
.The same code works perfect with version 1.0.2. Starting with version 1.0.3 the issue appears. Versions 1.0.4 and 1.0.5 are also affected.
The text was updated successfully, but these errors were encountered: