mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 18:45:49 +01:00
tiny log addition
This commit is contained in:
parent
8cd6bf09a4
commit
b056e1b2a0
@ -9,9 +9,13 @@ import android.content.SharedPreferences;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
import android.support.v4.content.LocalBroadcastManager;
|
import android.support.v4.content.LocalBroadcastManager;
|
||||||
|
import android.util.Log;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import nodomain.freeyourgadget.gadgetbridge.GBApplication;
|
import nodomain.freeyourgadget.gadgetbridge.GBApplication;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||||
import nodomain.freeyourgadget.gadgetbridge.activities.ControlCenter;
|
import nodomain.freeyourgadget.gadgetbridge.activities.ControlCenter;
|
||||||
@ -20,6 +24,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.DeviceCoordinator;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||||
|
|
||||||
public class MiBandPairingActivity extends Activity {
|
public class MiBandPairingActivity extends Activity {
|
||||||
|
private static final Logger LOG = LoggerFactory.getLogger(MiBandPairingActivity.class);
|
||||||
|
|
||||||
private static final int REQ_CODE_USER_SETTINGS = 52;
|
private static final int REQ_CODE_USER_SETTINGS = 52;
|
||||||
private static final String STATE_MIBAND_ADDRESS = "mibandMacAddress";
|
private static final String STATE_MIBAND_ADDRESS = "mibandMacAddress";
|
||||||
@ -31,6 +36,7 @@ public class MiBandPairingActivity extends Activity {
|
|||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
if (GBDevice.ACTION_DEVICE_CHANGED.equals(intent.getAction())) {
|
if (GBDevice.ACTION_DEVICE_CHANGED.equals(intent.getAction())) {
|
||||||
GBDevice device = intent.getParcelableExtra(GBDevice.EXTRA_DEVICE);
|
GBDevice device = intent.getParcelableExtra(GBDevice.EXTRA_DEVICE);
|
||||||
|
LOG.debug("pairing activity: device changed: " + device);
|
||||||
if (macAddress.equals(device.getAddress()) && device.isInitialized()) {
|
if (macAddress.equals(device.getAddress()) && device.isInitialized()) {
|
||||||
pairingFinished(true);
|
pairingFinished(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user