- FragmentTransaction ft = fragmentManager.beginTransaction();
- if (transactionListFragment == null) {
- Log.d("flow", "MainActivity creating TransactionListFragment");
- transactionListFragment = new TransactionListFragment();
- }
- Bundle bundle = new Bundle();
- if (account != null) {
- bundle.putString(TransactionListFragment.BUNDLE_KEY_FILTER_ACCOUNT_NAME,
- account.getName());
- }
- transactionListFragment.setArguments(bundle);
- ft.replace(R.id.root_frame, transactionListFragment);
- if (account != null)
- ft.addToBackStack(getResources().getString(R.string.title_activity_transaction_list));
- ft.commit();
-
- currentFragment = transactionListFragment;
+ mViewPager.setCurrentItem(1, true);
+// FragmentTransaction ft = fragmentManager.beginTransaction();
+// if (transactionListFragment == null) {
+// Log.d("flow", "MainActivity creating TransactionListFragment");
+// transactionListFragment = new TransactionListFragment();
+// }
+// Bundle bundle = new Bundle();
+// if (account != null) {
+// bundle.putString(TransactionListFragment.BUNDLE_KEY_FILTER_ACCOUNT_NAME,
+// account.getName());
+// }
+// transactionListFragment.setArguments(bundle);
+// ft.replace(R.id.root_frame, transactionListFragment);
+// if (account != null)
+// ft.addToBackStack(getResources().getString(R.string.title_activity_transaction_list));
+// ft.commit();
+//
+// currentFragment = transactionListFragment;