|
|
@ -14,6 +14,7 @@ import android.content.Context;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.content.IntentFilter;
|
|
|
|
import android.content.IntentFilter;
|
|
|
|
import android.graphics.Color;
|
|
|
|
import android.graphics.Color;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.os.Parcelable;
|
|
|
|
import android.os.Parcelable;
|
|
|
|
import android.util.DisplayMetrics;
|
|
|
|
import android.util.DisplayMetrics;
|
|
|
|
import android.util.Log;
|
|
|
|
import android.util.Log;
|
|
|
@ -288,8 +289,9 @@ public class FilterAdapter extends BaseExpandableListAdapter {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onReceive(Context context, Intent intent) {
|
|
|
|
public void onReceive(Context context, Intent intent) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
final Parcelable[] filters = intent.getExtras().
|
|
|
|
Bundle extras = intent.getExtras();
|
|
|
|
getParcelableArray(AstridApiConstants.EXTRAS_RESPONSE);
|
|
|
|
extras.setClassLoader(FilterListHeader.class.getClassLoader());
|
|
|
|
|
|
|
|
final Parcelable[] filters = extras.getParcelableArray(AstridApiConstants.EXTRAS_RESPONSE);
|
|
|
|
for (Parcelable item : filters) {
|
|
|
|
for (Parcelable item : filters) {
|
|
|
|
FilterListItem filter = (FilterListItem) item;
|
|
|
|
FilterListItem filter = (FilterListItem) item;
|
|
|
|
if(skipIntentFilters && !(filter instanceof Filter ||
|
|
|
|
if(skipIntentFilters && !(filter instanceof Filter ||
|
|
|
|