From 436de7afeea2cd234db8a4b70ace396101126e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Thu, 30 Apr 2015 19:09:31 +0200 Subject: Better layout, xlarge adaptation too. --- .../userstatus/UserStatusFragment.java | 9 ---- .../res/layout-xlarge/fragment_user_session.xml | 55 ++++++++++++++++++++++ app/src/main/res/layout/fragment_user_session.xml | 29 ++++++------ 3 files changed, 70 insertions(+), 23 deletions(-) create mode 100644 app/src/main/res/layout-xlarge/fragment_user_session.xml diff --git a/app/src/main/java/se/leap/bitmaskclient/userstatus/UserStatusFragment.java b/app/src/main/java/se/leap/bitmaskclient/userstatus/UserStatusFragment.java index 0766dbd5..f0f4a8fa 100644 --- a/app/src/main/java/se/leap/bitmaskclient/userstatus/UserStatusFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/userstatus/UserStatusFragment.java @@ -60,15 +60,6 @@ public class UserStatusFragment extends Fragment implements Observer, SessionDia return view; } - @Override - public void onDestroyView() { - super.onDestroyView(); - Fragment fragment = (getFragmentManager().findFragmentById(R.id.user_status_fragment)); - FragmentTransaction ft = getActivity().getFragmentManager().beginTransaction(); - ft.remove(fragment); - ft.commit(); - } - @Override public void onAttach(Activity activity) { super.onAttach(activity); diff --git a/app/src/main/res/layout-xlarge/fragment_user_session.xml b/app/src/main/res/layout-xlarge/fragment_user_session.xml new file mode 100644 index 00000000..30969219 --- /dev/null +++ b/app/src/main/res/layout-xlarge/fragment_user_session.xml @@ -0,0 +1,55 @@ + + + + + + +