v2.0.6 - removed delay in startWatchApp because it crashed because of use of handler.

This commit is contained in:
Graham Jones
2016-07-19 22:43:56 +01:00
parent 354f9c6fa2
commit 85e0b811d4

View File

@@ -473,14 +473,14 @@ public class SdDataSourcePebble extends SdDataSource {
// first close the watch app if it is running. // first close the watch app if it is running.
PebbleKit.closeAppOnPebble(mContext, SD_UUID); PebbleKit.closeAppOnPebble(mContext, SD_UUID);
// then start it after a 1 second delay. // then start it after a 1 second delay.
final Handler handler = new Handler(); //final Handler handler = new Handler();
handler.postDelayed(new Runnable() { //handler.postDelayed(new Runnable() {
@Override // @Override
public void run() { // public void run() {
Log.v(TAG, "startWatchApp() - starting watch app..."); Log.v(TAG, "startWatchApp() - starting watch app...");
PebbleKit.startAppOnPebble(mContext, SD_UUID); PebbleKit.startAppOnPebble(mContext, SD_UUID);
} // }
}, 1000); //}, 1000);
} }
/** /**