video fragment: handle possible null pointer on configuration change
This commit is contained in:
parent
e80a85d3b4
commit
ddfd967ac7
@ -297,7 +297,11 @@ public class GalleryVideoFragment extends GalleryBaseFragment {
|
||||
public void onConfigurationChanged(Configuration newConfig) {
|
||||
super.onConfigurationChanged(newConfig);
|
||||
|
||||
resizeSurface(getView().findViewById(R.id.flavor_video));
|
||||
try {
|
||||
resizeSurface(getView().findViewById(R.id.flavor_video));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user