Simplify code

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-03-03 19:33:18 +01:00
parent ab49e2c26b
commit 08827ffadd

View File

@ -344,11 +344,7 @@ public abstract class BottomNavigationController extends BaseController {
* The childRouter should handleBack, * The childRouter should handleBack,
* as this BottomNavigationController doesn't have a back step sensible to the user. * as this BottomNavigationController doesn't have a back step sensible to the user.
*/ */
if (lastActiveChildRouter != null) { return lastActiveChildRouter != null && lastActiveChildRouter.handleBack();
return lastActiveChildRouter.handleBack();
} else {
return false;
}
} }
/** /**