mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-16 21:10:57 +08:00
Fix crash due to null drawable
This commit is contained in:
parent
55174a3bdb
commit
b1da40d478
@ -67,7 +67,7 @@ public class StatusFragment extends Fragment implements AppStateListener {
|
||||
public boolean onTouch(View v, MotionEvent event) {
|
||||
Drawable mCollectorInfoDrawable = mCollectorInfo.getCompoundDrawables()[2 /* Right */];
|
||||
|
||||
if(event.getAction() == MotionEvent.ACTION_UP) {
|
||||
if((mCollectorInfoDrawable != null) && (event.getAction() == MotionEvent.ACTION_UP)) {
|
||||
if(event.getRawX() >= (mCollectorInfo.getRight() - mCollectorInfoDrawable.getBounds().width())) {
|
||||
Intent intent = new Intent(mActivity, SettingsActivity.class);
|
||||
startActivity(intent);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user