mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add clarifying comment
This commit is contained in:
parent
ee6515b4ad
commit
650095c64f
1 changed files with 1 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ class ImageLoaderTask extends AsyncTask<Uri, String, Bitmap> {
|
||||||
|
|
||||||
public Bitmap getBitmap(Uri imageUri) throws FileNotFoundException {
|
public Bitmap getBitmap(Uri imageUri) throws FileNotFoundException {
|
||||||
|
|
||||||
|
// FIXME: Use proper window width, not device width. But should do for now!
|
||||||
WindowManager wm = (WindowManager) view.getContext().getSystemService(Context.WINDOW_SERVICE);
|
WindowManager wm = (WindowManager) view.getContext().getSystemService(Context.WINDOW_SERVICE);
|
||||||
int reqHeight = wm.getDefaultDisplay().getHeight();
|
int reqHeight = wm.getDefaultDisplay().getHeight();
|
||||||
int reqWidth = wm.getDefaultDisplay().getWidth();
|
int reqWidth = wm.getDefaultDisplay().getWidth();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue