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
When AdapterView belongs to SherlockFragmentActivity instead of SherlockActivity, an exception is thrown.
MultiChoiceAdapterHelper from package "com.manuelpeinado.multichoiceadapter.extras.actionbarsherlock" only checks if adapterview context is an instance of SherlockActivity.
**For a quick fix, change startActionMode method to:
@OverrideprotectedvoidstartActionMode() {
if (!(adapterView.getContext() instanceofSherlockActivity)
&& !(adapterView.getContext() instanceofSherlockFragmentActivity)) {
thrownewIllegalStateException("List view must belong to a SherlockActivity or a SherlockFragmentActivity");
}
if (!(ownerinstanceofActionMode.Callback)) {
thrownewIllegalStateException("Owner adapter must implement ActionMode.Callback");
}
if (adapterView.getContext() instanceofSherlockActivity) {
}
if ((adapterView.getContext() instanceofSherlockActivity)) {
SherlockActivityactivity = (SherlockActivity) adapterView.getContext();
actionMode = activity.startActionMode((ActionMode.Callback) owner);
} else {
SherlockFragmentActivityactivity = (SherlockFragmentActivity) adapterView.getContext();
actionMode = activity.startActionMode((ActionMode.Callback) owner);
}
}
The text was updated successfully, but these errors were encountered:
When AdapterView belongs to SherlockFragmentActivity instead of SherlockActivity, an exception is thrown.
MultiChoiceAdapterHelper from package "com.manuelpeinado.multichoiceadapter.extras.actionbarsherlock" only checks if adapterview context is an instance of SherlockActivity.
**For a quick fix, change startActionMode method to:
The text was updated successfully, but these errors were encountered: