fix issue:1. HistogramView disappear after activity switch.
2.Application exit with Exception when rapid press back key when enter
the application.