482483484485486487488489490491492
overlay.popMode(); // The CropModes need setup and teardown: if ((oldMode == cropMode) || (oldMode == rotateMode)) { CropMode crop = (CropMode) oldMode; crop.doCrop(); } oldMode.exit(); } if (newMode != null) { overlay.pushMode(newMode);