Fix code style

This commit is contained in:
Alexander Sytnyk 2017-08-15 18:58:58 +03:00
parent 8e94406753
commit dc4fd71802

View file

@ -1107,6 +1107,20 @@ public class MeasurementToolFragment extends Fragment {
}
}
public static boolean showInstance(FragmentManager fragmentManager, NewGpxLine newGpxLine) {
try {
MeasurementToolFragment fragment = new MeasurementToolFragment();
fragment.setNewGpxLine(newGpxLine);
fragment.setRetainInstance(true);
fragmentManager.beginTransaction()
.add(R.id.bottomFragmentContainer, fragment, MeasurementToolFragment.TAG)
.commitAllowingStateLoss();
return true;
} catch (Exception e) {
return false;
}
}
private class MeasurementToolBarController extends TopToolbarController {
MeasurementToolBarController(NewGpxLine newGpxLine) {
@ -1133,19 +1147,4 @@ public class MeasurementToolFragment extends Fragment {
}
}
}
public static boolean showInstance(FragmentManager fragmentManager, NewGpxLine newGpxLine) {
try {
MeasurementToolFragment fragment = new MeasurementToolFragment();
fragment.setNewGpxLine(newGpxLine);
fragment.setRetainInstance(true);
fragmentManager
.beginTransaction()
.add(R.id.bottomFragmentContainer, fragment, MeasurementToolFragment.TAG)
.commitAllowingStateLoss();
return true;
} catch (Exception e) {
return false;
}
}
}