summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/setup/SetupPage.java
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2015-01-23 11:37:23 -0800
committercretin45 <cretin45@gmail.com>2015-01-23 11:37:23 -0800
commit61a331f403816183d7618f85828c26d25fd48b90 (patch)
tree457eb0e9b7f2353f658fb4d7a862e53a11efa50a /src/com/cyanogenmod/setupwizard/setup/SetupPage.java
parent30af327616c2c591d0f54982688915edfaf23742 (diff)
downloadpackages_apps_SetupWizard-61a331f403816183d7618f85828c26d25fd48b90.zip
packages_apps_SetupWizard-61a331f403816183d7618f85828c26d25fd48b90.tar.gz
packages_apps_SetupWizard-61a331f403816183d7618f85828c26d25fd48b90.tar.bz2
SetupWizard: Better handle next and previous actions
Change-Id: I239269d9313594b1d37ce3468e0c095c851946c6
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup/SetupPage.java')
-rw-r--r--src/com/cyanogenmod/setupwizard/setup/SetupPage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/SetupPage.java b/src/com/cyanogenmod/setupwizard/setup/SetupPage.java
index 60322bf..e7daf98 100644
--- a/src/com/cyanogenmod/setupwizard/setup/SetupPage.java
+++ b/src/com/cyanogenmod/setupwizard/setup/SetupPage.java
@@ -45,7 +45,7 @@ public abstract class SetupPage implements Page {
}
@Override
- public Fragment getFragment() {
+ public Fragment getFragment(FragmentManager fragmentManager, int action) {
return null;
}
@@ -73,7 +73,7 @@ public abstract class SetupPage implements Page {
public void doLoadAction(Activity context, int action) {
if (context == null || context.isFinishing()) { return; }
final FragmentManager fragmentManager = context.getFragmentManager();
- Fragment fragment = getFragment();
+ Fragment fragment = getFragment(fragmentManager, action);
if (action == Page.ACTION_NEXT) {
Transition t = new Slide(Gravity.RIGHT);
fragment.setEnterTransition(t);