Fix code style
This commit is contained in:
parent
8e94406753
commit
dc4fd71802
1 changed files with 14 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue