Use tablet layout for google tvs

pull/14/head
Sam Bosley 13 years ago
parent 3a5b3f9eb5
commit e2b51f072a

@ -760,6 +760,8 @@ public class AndroidUtilities {
* @return * @return
*/ */
public static boolean isTabletSized(Context context) { public static boolean isTabletSized(Context context) {
if (context.getPackageManager().hasSystemFeature("com.google.android.tv")) //$NON-NLS-1$
return true;
int size = context.getResources().getConfiguration().screenLayout int size = context.getResources().getConfiguration().screenLayout
& Configuration.SCREENLAYOUT_SIZE_MASK; & Configuration.SCREENLAYOUT_SIZE_MASK;
if (size == Configuration.SCREENLAYOUT_SIZE_XLARGE) return true; if (size == Configuration.SCREENLAYOUT_SIZE_XLARGE) return true;

Loading…
Cancel
Save