diff options
author | cretin45 <cretin45@gmail.com> | 2015-03-13 16:18:24 -0700 |
---|---|---|
committer | cretin45 <cretin45@gmail.com> | 2015-03-13 16:18:24 -0700 |
commit | bfde63c27cb0ae757ac7b6045062a6b3b1fdda74 (patch) | |
tree | 8511604c95e1159bb084f4492fc9e180b0ac5b80 /src/com/cyanogenmod/setupwizard/setup | |
parent | 0ed67f547cf59b7aff7a58ab503c15e69c41c97c (diff) | |
download | packages_apps_SetupWizard-bfde63c27cb0ae757ac7b6045062a6b3b1fdda74.zip packages_apps_SetupWizard-bfde63c27cb0ae757ac7b6045062a6b3b1fdda74.tar.gz packages_apps_SetupWizard-bfde63c27cb0ae757ac7b6045062a6b3b1fdda74.tar.bz2 |
SetupWizard: #blamethemes
Themes keep breaking the handle themeConfig flag. This provides a workaround for cases the activity gets torn down during the finish process.
Change-Id: I6664ded3dfff5b69c1217f89f25106953cb5f92a
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/setup/AbstractSetupData.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/AbstractSetupData.java b/src/com/cyanogenmod/setupwizard/setup/AbstractSetupData.java index c15900f..105facf 100644 --- a/src/com/cyanogenmod/setupwizard/setup/AbstractSetupData.java +++ b/src/com/cyanogenmod/setupwizard/setup/AbstractSetupData.java @@ -34,6 +34,8 @@ public abstract class AbstractSetupData extends BroadcastReceiver implements Set private boolean mIsResumed = false; + private boolean mIsFinished = false; + private OnResumeRunnable mOnResumeRunnable; public AbstractSetupData(Context context) { @@ -186,6 +188,7 @@ public abstract class AbstractSetupData extends BroadcastReceiver implements Set } public void finishPages() { + mIsFinished = true; for (Page page : mPageList.values()) { page.onFinishSetup(); } @@ -198,6 +201,10 @@ public abstract class AbstractSetupData extends BroadcastReceiver implements Set } } + public boolean isFinished() { + return mIsFinished; + } + public Bundle save() { Bundle bundle = new Bundle(); for (Page page : mPageList.values()) { |