From ec4469a87b0c8f66183c8988e10aa9e30834c22b Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Wed, 24 Aug 2016 20:15:26 +0200 Subject: [PATCH] Testing with dummy onboarding activity crashes --- app/build.gradle | 4 +- app/src/main/AndroidManifest.xml | 5 ++ .../activities/ControlCenter.java | 13 ++++ .../activities/OnboardingActivity.java | 73 +++++++++++++++++++ .../main/res/layout/activity_onboarding.xml | 19 +++++ 5 files changed, 112 insertions(+), 2 deletions(-) create mode 100644 app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/OnboardingActivity.java create mode 100644 app/src/main/res/layout/activity_onboarding.xml diff --git a/app/build.gradle b/app/build.gradle index 65373c949..381f28e1c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -18,8 +18,8 @@ android { targetSdkVersion 23 // note: always bump BOTH versionCode and versionName! - versionName "0.11.2" - versionCode 58 + versionName "0.12.0" + versionCode 59 } buildTypes { release { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 97599340a..a993e4f79 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -226,6 +226,11 @@ android:parentActivityName=".activities.ControlCenter" android:screenOrientation="portrait" android:windowSoftInputMode="stateHidden" /> + () { + @Override + protected Object doInBackground(Object[] params) { + helper.importOldDb(oldHandler, device, targetHandler); + progress.dismiss(); + return null; + } + }.execute((Object[]) null); + } catch (Exception ex) { + GB.toast(OnboardingActivity.this, "Error importing old activity data into new database.", Toast.LENGTH_LONG, GB.ERROR, ex); + } + } + +} diff --git a/app/src/main/res/layout/activity_onboarding.xml b/app/src/main/res/layout/activity_onboarding.xml new file mode 100644 index 000000000..a1a97d87a --- /dev/null +++ b/app/src/main/res/layout/activity_onboarding.xml @@ -0,0 +1,19 @@ + + + +