Fixed a bug with an occasional crash when rotating FLA

pull/14/head
Sam Bosley 13 years ago
parent b995728bb3
commit e50422c61c

@ -2,6 +2,8 @@ package com.todoroo.astrid.activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.widget.TextView;
import com.timsu.astrid.R;
@ -21,6 +23,16 @@ public class FilterListWrapperActivity extends AstridWrapperActivity {
setContentView(R.layout.filter_list_wrapper_activity);
if (findViewById(R.id.tasklist_fragment_container) != null)
setupTasklistFragmentWithFilter((Filter)getIntent().getParcelableExtra(TaskListActivity.TOKEN_FILTER));
else {
Fragment tla = getTaskListFragment();
if (tla != null) {
FragmentManager manager = getSupportFragmentManager();
FragmentTransaction transaction = manager.beginTransaction();
transaction.remove(tla);
transaction.commit();
}
}
}
/* (non-Javadoc)

Loading…
Cancel
Save