Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove something that slipped through the last commit.
Don't even know why that was there.
  • Loading branch information
lioncash committed Apr 24, 2013
1 parent bd284f1 commit 9ee3a30
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -136,8 +136,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data)
if (resultCode == Activity.RESULT_OK)
{
DisplayMetrics displayMetrics = new DisplayMetrics();
getApplicationContext();
WindowManager wm = (WindowManager) getApplicationContext().getSystemService(Context.WINDOW_SERVICE); // the results will be higher than using the activity context object or the getWindowManager() shortcut
WindowManager wm = (WindowManager) getApplicationContext().getSystemService(Context.WINDOW_SERVICE); // the results will be higher than using the activity context object or the getWindowManager() shortcut
wm.getDefaultDisplay().getMetrics(displayMetrics);
screenWidth = displayMetrics.widthPixels;
screenHeight = displayMetrics.heightPixels;
Expand Down

0 comments on commit 9ee3a30

Please sign in to comment.