|
|
@ -86,11 +86,14 @@ public class FragmentSetup extends Fragment {
|
|
|
|
|
|
|
|
|
|
|
|
if (!once) {
|
|
|
|
if (!once) {
|
|
|
|
once = true;
|
|
|
|
once = true;
|
|
|
|
|
|
|
|
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
if (account != null)
|
|
|
|
if (account != null)
|
|
|
|
args.putLong("id", account.id);
|
|
|
|
args.putLong("id", account.id);
|
|
|
|
|
|
|
|
|
|
|
|
FragmentAccount fragment = new FragmentAccount();
|
|
|
|
FragmentAccount fragment = new FragmentAccount();
|
|
|
|
fragment.setArguments(args);
|
|
|
|
fragment.setArguments(args);
|
|
|
|
|
|
|
|
|
|
|
|
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
|
|
|
|
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
|
|
|
|
fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("account");
|
|
|
|
fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("account");
|
|
|
|
fragmentTransaction.commit();
|
|
|
|
fragmentTransaction.commit();
|
|
|
@ -120,8 +123,10 @@ public class FragmentSetup extends Fragment {
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
if (identity != null)
|
|
|
|
if (identity != null)
|
|
|
|
args.putLong("id", identity.id);
|
|
|
|
args.putLong("id", identity.id);
|
|
|
|
|
|
|
|
|
|
|
|
FragmentIdentity fragment = new FragmentIdentity();
|
|
|
|
FragmentIdentity fragment = new FragmentIdentity();
|
|
|
|
fragment.setArguments(args);
|
|
|
|
fragment.setArguments(args);
|
|
|
|
|
|
|
|
|
|
|
|
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
|
|
|
|
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
|
|
|
|
fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("identity");
|
|
|
|
fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("identity");
|
|
|
|
fragmentTransaction.commit();
|
|
|
|
fragmentTransaction.commit();
|
|
|
|