GuidedStepFragment Subclass need explcitly specify a container id for background

After fixed Bug 24570987

Change-Id: I1ec51f8ea39b21e4d547e923386dd357a538ff4a
This commit is contained in:
Dake Gu
2015-10-01 11:44:48 -07:00
parent 8894dc714a
commit 2e3684e007
2 changed files with 10 additions and 6 deletions

View File

@@ -106,9 +106,6 @@ public class GuidedStepActivity extends Activity {
.build()); .build());
} }
/**
* The first fragment is instantiated via XML, so it must be public.
*/
public static class FirstStepFragment extends GuidedStepFragment { public static class FirstStepFragment extends GuidedStepFragment {
@Override @Override
public int onProvideTheme() { public int onProvideTheme() {
@@ -139,6 +136,11 @@ public class GuidedStepActivity extends Activity {
getActivity().finish(); getActivity().finish();
} }
} }
@Override
protected int getContainerIdForBackground() {
return R.id.lb_guidedstep_background;
}
} }
public static class SecondStepFragment extends GuidedStepFragment { public static class SecondStepFragment extends GuidedStepFragment {

View File

@@ -108,9 +108,6 @@ public class GuidedStepSupportActivity extends FragmentActivity {
.build()); .build());
} }
/**
* The first fragment is instantiated via XML, so it must be public.
*/
public static class FirstStepFragment extends GuidedStepSupportFragment { public static class FirstStepFragment extends GuidedStepSupportFragment {
@Override @Override
public int onProvideTheme() { public int onProvideTheme() {
@@ -141,6 +138,11 @@ public class GuidedStepSupportActivity extends FragmentActivity {
getActivity().finish(); getActivity().finish();
} }
} }
@Override
protected int getContainerIdForBackground() {
return R.id.lb_guidedstep_background;
}
} }
public static class SecondStepFragment extends GuidedStepSupportFragment { public static class SecondStepFragment extends GuidedStepSupportFragment {