From d83091faf887ac090e64c5ac8da385e7601a944c Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Fri, 27 Jul 2018 07:28:58 +0200 Subject: [PATCH] Give clearer names Reviewers: #kde_connect, apol Reviewed By: #kde_connect, apol Subscribers: kdeconnect, apol, #kde_connect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D12217 --- res/layout/activity_list.xml | 10 ++++++++++ res/layout/fragment_pair.xml | 18 ++++++++++++++++++ .../Plugins/SharePlugin/ShareActivity.java | 3 +-- .../UserInterface/PairingFragment.java | 2 +- 4 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 res/layout/activity_list.xml create mode 100644 res/layout/fragment_pair.xml diff --git a/res/layout/activity_list.xml b/res/layout/activity_list.xml new file mode 100644 index 00000000..ab989ad8 --- /dev/null +++ b/res/layout/activity_list.xml @@ -0,0 +1,10 @@ + diff --git a/res/layout/fragment_pair.xml b/res/layout/fragment_pair.xml new file mode 100644 index 00000000..d2f33575 --- /dev/null +++ b/res/layout/fragment_pair.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareActivity.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareActivity.java index b6505d12..ade3d02f 100644 --- a/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareActivity.java +++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareActivity.java @@ -128,8 +128,7 @@ public class ShareActivity extends AppCompatActivity { super.onCreate(savedInstanceState); ThemeUtil.setUserPreferredTheme(this); - setContentView(R.layout.devices_list); - + setContentView(R.layout.fragment_pair); ActionBar actionBar = getSupportActionBar(); mSwipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.refresh_list_layout); diff --git a/src/org/kde/kdeconnect/UserInterface/PairingFragment.java b/src/org/kde/kdeconnect/UserInterface/PairingFragment.java index 4c3112fe..60c3d6f6 100644 --- a/src/org/kde/kdeconnect/UserInterface/PairingFragment.java +++ b/src/org/kde/kdeconnect/UserInterface/PairingFragment.java @@ -75,7 +75,7 @@ public class PairingFragment extends Fragment implements PairingDeviceItem.Callb setHasOptionsMenu(true); - rootView = inflater.inflate(R.layout.devices_list, container, false); + rootView = inflater.inflate(R.layout.fragment_pair, container, false); View listRootView = rootView.findViewById(R.id.devices_list); mSwipeRefreshLayout = (SwipeRefreshLayout) rootView.findViewById(R.id.refresh_list_layout); mSwipeRefreshLayout.setOnRefreshListener(