Partial Fix for Filters not working on ZTE Blade (15723487) for ZTE Blades from UK with 2.1 stock rom. Hercz reported it working on gs-thread

pull/14/head
Arne Jans 14 years ago
parent 9818c52018
commit 52657081ca

@ -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 ||

Loading…
Cancel
Save