X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/3113c459092dbb3dea60e50efe61070e38804b09..93de9f91d56ec3ff6ccd1d26df75dc1293e861bb:/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java diff --git a/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java b/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java index a8f0d812..8abf5696 100644 --- a/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java +++ b/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java @@ -292,8 +292,13 @@ public class FileDetailFragment extends SherlockFragment implements } Display display = getActivity().getWindowManager().getDefaultDisplay(); Point size = new Point(); - display.getSize(size); - int screenwidth = size.x; + int screenwidth; + if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB_MR2) { + display.getSize(size); + screenwidth = size.x; + } else { + screenwidth = display.getWidth(); + } Log.e("ASD", "W " + width + " SW " + screenwidth);