diff options
author | Javier <dev.git@javispedro.com> | 2021-03-21 14:54:18 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2021-03-21 14:54:18 +0100 |
commit | 12d9c7021b3b14b95c8763ce3ec029ad72dbd4f0 (patch) | |
tree | a9342c462a3d914b60d9a74b1583b91bd1458041 /app/src/main/java/com/javispedro/autobluetether | |
parent | cdfc2a9807c785701af162d2b76a37063a3ad48a (diff) | |
download | autobluetether-master.tar.gz autobluetether-master.zip |
Diffstat (limited to 'app/src/main/java/com/javispedro/autobluetether')
3 files changed, 2 insertions, 8 deletions
diff --git a/app/src/main/java/com/javispedro/autobluetether/BtDeviceRecyclerViewAdapter.java b/app/src/main/java/com/javispedro/autobluetether/BtDeviceRecyclerViewAdapter.java index 4515a95..7fa609a 100644 --- a/app/src/main/java/com/javispedro/autobluetether/BtDeviceRecyclerViewAdapter.java +++ b/app/src/main/java/com/javispedro/autobluetether/BtDeviceRecyclerViewAdapter.java @@ -55,7 +55,6 @@ public class BtDeviceRecyclerViewAdapter extends RecyclerView.Adapter<BtDeviceRe } public class ViewHolder extends RecyclerView.ViewHolder { - private final View mView; private final TextView mNameView; private final TextView mAddressView; private final CheckBox mCheckBox; @@ -63,7 +62,6 @@ public class BtDeviceRecyclerViewAdapter extends RecyclerView.Adapter<BtDeviceRe public ViewHolder(View view) { super(view); - mView = view; mNameView = view.findViewById(R.id.name); mAddressView = view.findViewById(R.id.address); mCheckBox = view.findViewById(R.id.checked); diff --git a/app/src/main/java/com/javispedro/autobluetether/DeviceFragment.java b/app/src/main/java/com/javispedro/autobluetether/DeviceFragment.java index 0876d6f..96418b2 100644 --- a/app/src/main/java/com/javispedro/autobluetether/DeviceFragment.java +++ b/app/src/main/java/com/javispedro/autobluetether/DeviceFragment.java @@ -86,6 +86,7 @@ public class DeviceFragment extends Fragment { super.onDestroyView(); mRecyclerView = null; mAdapter = null; + mEnabledAdapter = null; } public void refreshList() { diff --git a/app/src/main/java/com/javispedro/autobluetether/SystemSettingsFragment.java b/app/src/main/java/com/javispedro/autobluetether/SystemSettingsFragment.java index a97f8c8..2b5c228 100644 --- a/app/src/main/java/com/javispedro/autobluetether/SystemSettingsFragment.java +++ b/app/src/main/java/com/javispedro/autobluetether/SystemSettingsFragment.java @@ -13,17 +13,12 @@ public class SystemSettingsFragment extends Fragment { } public static SystemSettingsFragment newInstance() { - SystemSettingsFragment fragment = new SystemSettingsFragment(); - Bundle args = new Bundle(); - fragment.setArguments(args); - return fragment; + return new SystemSettingsFragment(); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - if (getArguments() != null) { - } } @Override |