diff options
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 |