mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
add getContentView -- since I can never remember how to do it
This commit is contained in:
parent
6b59093d84
commit
7e16d7abc5
1 changed files with 5 additions and 0 deletions
|
@ -465,6 +465,11 @@ public class Utils {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static View getContentView( Activity activity )
|
||||||
|
{
|
||||||
|
return activity.findViewById( android.R.id.content );
|
||||||
|
}
|
||||||
|
|
||||||
public static boolean isGooglePlayApp( Context context )
|
public static boolean isGooglePlayApp( Context context )
|
||||||
{
|
{
|
||||||
PackageManager pm = context.getPackageManager();
|
PackageManager pm = context.getPackageManager();
|
||||||
|
|
Loading…
Reference in a new issue