Remove callback onDestroy to avoid NPE

This commit is contained in:
Xiao Bao Clark committed 2016-06-12 13:38:43 +10:00
1 parent f9f8962064
commit 90dcbc57cd
1 file changed
+6
@@ -158,6 +158,12 @@ public class SDScannerFragment extends Fragment
mScanFragment.setScanProgressCallbacks(this);
}
@Override
public void onDestroy() {
super.onDestroy();
mScanFragment.setScanProgressCallbacks(null);
}
private View findViewById(int viewId) {
return getView().findViewById(viewId);
}