mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-11-22 15:48:54 +01:00
Cleanup.
This commit is contained in:
@@ -74,7 +74,7 @@ public class BluetoothLeAdapter extends BaseAdapter {
|
||||
|
||||
public class Device {
|
||||
private String name;
|
||||
private String address;
|
||||
private final String address;
|
||||
|
||||
public Device(String name, String address) {
|
||||
this.name = name;
|
||||
|
||||
@@ -88,10 +88,10 @@ public class BluetoothLePreference extends DialogPreference {
|
||||
public static class BluetoothLePreferenceDialog extends PreferenceDialogFragmentCompat {
|
||||
|
||||
private int selectedEntryIndex;
|
||||
private BluetoothLeAdapter listAdapter = new BluetoothLeAdapter();
|
||||
private final BluetoothLeAdapter listAdapter = new BluetoothLeAdapter();
|
||||
|
||||
private BluetoothLeScanner scanner = null;
|
||||
private ScanCallback scanCallback = new ScanCallback() {
|
||||
private final ScanCallback scanCallback = new ScanCallback() {
|
||||
@Override
|
||||
public void onScanResult(int callbackType, ScanResult result) {
|
||||
super.onScanResult(callbackType, result);
|
||||
|
||||
Reference in New Issue
Block a user