mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 09:01:55 +01:00
Limit LiveActivityFragment to just the current device
Filter incoming realtime samples by device
This commit is contained in:
parent
43a1613f95
commit
8bb9a36a68
@ -158,6 +158,11 @@ public class LiveActivityFragment extends AbstractActivityChartFragment<ChartsDa
|
||||
private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
final GBDevice device = intent.getParcelableExtra(GBDevice.EXTRA_DEVICE);
|
||||
if (device == null || !device.equals(getChartsHost().getDevice())) {
|
||||
return;
|
||||
}
|
||||
|
||||
String action = intent.getAction();
|
||||
switch (action) {
|
||||
case DeviceService.ACTION_REALTIME_SAMPLES: {
|
||||
|
Loading…
Reference in New Issue
Block a user