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
1 changed files with 0 additions and 5 deletions

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();