treehouses / remote

⚡ control Raspberry Pi from Android Device through Bluetooth ⚡
https://play.google.com/store/apps/details?id=io.treehouses.remote
GNU Affero General Public License v3.0
64 stars 29 forks source link

RPI only appear in device list if it is not paired with the phone. #178

Closed rrijal53 closed 5 years ago

rrijal53 commented 5 years ago

RPI only appear in 'device to connect' list if it is not paired with the phone. If the pi is already paired with the phone, app does not show any devices. And appears after deleting RPI from paired device list. am i the only one facing this problem??

rrijal53 commented 5 years ago

The problem is caused by this line as it is commented. I tried uncommenting this line and the problem is solved. can anybody tell me why it is commented???

https://github.com/treehouses/remote/blob/786bda87e44942188059a0fe7f08168e59772aaf/app/src/main/java/io/treehouses/remote/Fragments/RPIDialogFragment.java#L108

Sriharsha-Singam commented 5 years ago

Wow this is interesting... That's odd I fixed that issue a while ago. That Connect To Device List includes all paired devices and all Bluetooth devices in the surrounding

Sriharsha-Singam commented 5 years ago

Oh that's funny... Nice fix! I'm curious when that piece of code was changed...

Sriharsha-Singam commented 5 years ago

@rrijal53 are you going to make a PR for this? If you are, instead of uncommenting that line you could delete and use the function setAdapterNotNull()