Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onBackPressed() { //--Alex I added this method to resolve some out of memory exception errors from repeated launching of Makers 12/20/2014
- super.onBackPressed();
- // de-referencing objects to prevent memory leaks
- mLastTool = null;
- mActiveTool = null;
- mLastColor = null;
- mActiveColor = null;
- mLastPenType = null;
- mActivePenType = null;
- mDebugButton = null;
- mColorsView = null;
- mActionBarView = null;
- mToolsView = null;
- mLogoView = null;
- mComboHudView = null;
- finish();
- overridePendingTransition(R.anim.activity_back_in, R.anim.activity_back_out); // this line adds my nice custom transitions out of this MarkersActivity
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement