summaryrefslogtreecommitdiff
path: root/Source/Android/src
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Android/src')
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/GameListAdapter.java2
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/GameListItem.java6
2 files changed, 7 insertions, 1 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/GameListAdapter.java b/Source/Android/src/org/dolphinemu/dolphinemu/GameListAdapter.java
index d7170bb474..0571c9d213 100644
--- a/Source/Android/src/org/dolphinemu/dolphinemu/GameListAdapter.java
+++ b/Source/Android/src/org/dolphinemu/dolphinemu/GameListAdapter.java
@@ -36,7 +36,7 @@ public final class GameListAdapter extends ArrayAdapter<GameListItem>
if (v == null)
{
LayoutInflater vi = (LayoutInflater)c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- v = vi.inflate(id, null);
+ v = vi.inflate(id, parent, false);
}
final GameListItem item = items.get(position);
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/GameListItem.java b/Source/Android/src/org/dolphinemu/dolphinemu/GameListItem.java
index 92ad986e91..10f44f69e4 100644
--- a/Source/Android/src/org/dolphinemu/dolphinemu/GameListItem.java
+++ b/Source/Android/src/org/dolphinemu/dolphinemu/GameListItem.java
@@ -31,8 +31,14 @@ public final class GameListItem implements Comparable<GameListItem>
{
try
{
+ // Open the no banner icon.
InputStream noBannerPath = ctx.getAssets().open("NoBanner.png");
+
+ // Decode the bitmap.
image = BitmapFactory.decodeStream(noBannerPath);
+
+ // Scale the bitmap to match other banners.
+ image = Bitmap.createScaledBitmap(image, 96, 32, false);
}
catch (IOException e)
{