mirror of https://github.com/M66B/FairEmail.git
Refactoring
This commit is contained in:
parent
e4225f310b
commit
a6681b7e51
|
@ -1591,8 +1591,10 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
|||
}
|
||||
|
||||
private void onGmail(Intent intent) {
|
||||
FragmentGmail fragment = new FragmentGmail();
|
||||
fragment.setArguments(intent.getExtras());
|
||||
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
|
||||
fragmentTransaction.replace(R.id.content_frame, new FragmentGmail()).addToBackStack("quick");
|
||||
fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("quick");
|
||||
fragmentTransaction.commit();
|
||||
}
|
||||
|
||||
|
|
|
@ -96,11 +96,9 @@ public class FragmentGmail extends FragmentBase {
|
|||
super.onCreate(savedInstanceState);
|
||||
|
||||
Bundle args = getArguments();
|
||||
if (args != null) {
|
||||
personal = args.getString("personal");
|
||||
address = args.getString("address");
|
||||
update = args.getBoolean("update");
|
||||
}
|
||||
personal = args.getString("personal");
|
||||
address = args.getString("address");
|
||||
update = args.getBoolean("update");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue