Commit b1ba95c7 authored by Alexandre Perraud's avatar Alexandre Perraud
Browse files

Fix possible NPE on rotation

parent 541e521a
......@@ -710,8 +710,8 @@ public class MainActivity extends AppCompatActivity implements OnItemClickListen
v.setNextFocusRightId(R.id.ml_menu_search);
if (LibVlcUtil.isHoneycombOrLater())
v.setNextFocusForwardId(mActionBarIconId);
findViewById(R.id.ml_menu_search).setNextFocusLeftId(
mActionBarIconId);
if (findViewById(R.id.ml_menu_search) != null)
findViewById(R.id.ml_menu_search).setNextFocusLeftId(mActionBarIconId);
}
return super.onKeyUp(keyCode, event);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment