forked from upstream-mirrors/OpenTracks
Bugfix: crash on opening heart rate sensor dialog (settings).
This commit is contained in:
@@ -40,7 +40,7 @@ public class BluetoothLeAdapter extends BaseAdapter {
|
|||||||
LayoutInflater inflater = LayoutInflater.from(parent.getContext());
|
LayoutInflater inflater = LayoutInflater.from(parent.getContext());
|
||||||
//TODO Check if there is a better way to achieve identical look and feel to ListPreference.
|
//TODO Check if there is a better way to achieve identical look and feel to ListPreference.
|
||||||
//Use material design single choice; for old style use: android.R.layout.select_dialog_singlechoice
|
//Use material design single choice; for old style use: android.R.layout.select_dialog_singlechoice
|
||||||
currentView = inflater.inflate(androidx.appcompat.R.layout.select_dialog_singlechoice_material, parent);
|
currentView = inflater.inflate(androidx.appcompat.R.layout.select_dialog_singlechoice_material, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
Device device = devices.get(position);
|
Device device = devices.get(position);
|
||||||
|
|||||||
Reference in New Issue
Block a user