|
|
@ -37,6 +37,24 @@ public class AstridWrapperActivity extends FragmentActivity
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
protected boolean mMultipleFragments = false;
|
|
|
|
protected boolean mMultipleFragments = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected FilterListActivity getFilterListFragment() {
|
|
|
|
|
|
|
|
FilterListActivity frag = (FilterListActivity) getSupportFragmentManager()
|
|
|
|
|
|
|
|
.findFragmentById(R.id.filterlist_fragment);
|
|
|
|
|
|
|
|
if (frag == null || !frag.isInLayout())
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return frag;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected TaskListActivity getTaskListFragment() {
|
|
|
|
|
|
|
|
TaskListActivity frag = (TaskListActivity) getSupportFragmentManager()
|
|
|
|
|
|
|
|
.findFragmentById(R.id.tasklist_fragment);
|
|
|
|
|
|
|
|
if (frag == null || !frag.isInLayout())
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return frag;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
/* (non-Javadoc)
|
|
|
|
* @see android.support.v4.app.FragmentActivity#onCreate(android.os.Bundle)
|
|
|
|
* @see android.support.v4.app.FragmentActivity#onCreate(android.os.Bundle)
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -45,6 +63,19 @@ public class AstridWrapperActivity extends FragmentActivity
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
|
|
|
|
* @see android.app.Activity#onNewIntent(android.content.Intent)
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
protected void onNewIntent(Intent intent) {
|
|
|
|
|
|
|
|
super.onNewIntent(intent);
|
|
|
|
|
|
|
|
FilterListActivity frag = getFilterListFragment();
|
|
|
|
|
|
|
|
if (frag != null) {
|
|
|
|
|
|
|
|
// forwarding for search-requests
|
|
|
|
|
|
|
|
frag.onNewIntent(intent);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Handles items being clicked from the filterlist-fragment. Return true if item is handled.
|
|
|
|
* Handles items being clicked from the filterlist-fragment. Return true if item is handled.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|