1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-28 11:35:48 +01:00

Don't remember paired Mi device in preferences

(this was just a very old workaround for an even older Mi firmware
that couldn't pair)
This commit is contained in:
cpfeiffer 2016-07-05 20:27:23 +02:00
parent 8549031c6f
commit abeb642972

View File

@ -168,11 +168,6 @@ public class MiBandPairingActivity extends Activity {
LocalBroadcastManager.getInstance(this).unregisterReceiver(mPairingReceiver);
unregisterReceiver(mBondingReceiver);
if (pairedSuccessfully) {
Prefs prefs = GBApplication.getPrefs();
prefs.getPreferences().edit().putString(MiBandConst.PREF_MIBAND_ADDRESS, macAddress).apply();
}
Intent intent = new Intent(this, ControlCenter.class).setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
finish();