From 7e16d7abc5359427b9f1c028dde451c5aea0cd71 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 6 Apr 2014 06:37:51 -0700 Subject: [PATCH] add getContentView -- since I can never remember how to do it --- .../android/XWords4/src/org/eehouse/android/xw4/Utils.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java index 935047f01..70c04f996 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java @@ -465,6 +465,11 @@ public class Utils { return result; } + public static View getContentView( Activity activity ) + { + return activity.findViewById( android.R.id.content ); + } + public static boolean isGooglePlayApp( Context context ) { PackageManager pm = context.getPackageManager();