Remove callback onDestroy to avoid NPE
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user