From 10eb9f09b48329b3a4a6e043406ab6dc6eba1a3f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 4 Sep 2013 08:02:32 -0400 Subject: [PATCH] [Android] Change a check for an empty path from !path.equals("") to !path.isEmpty() in GameListItem. Also simplify the logging exception tag in the constructor. --- .../src/org/dolphinemu/dolphinemu/gamelist/GameListItem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListItem.java b/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListItem.java index a84b901bdd..f65740dec3 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListItem.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/gamelist/GameListItem.java @@ -42,7 +42,7 @@ public final class GameListItem implements Comparable this.path = path; File file = new File(path); - if (!file.isDirectory() && !path.equals("")) + if (!file.isDirectory() && !path.isEmpty()) { int[] Banner = NativeLibrary.GetBanner(path); if (Banner[0] == 0) @@ -60,7 +60,7 @@ public final class GameListItem implements Comparable } catch (IOException e) { - Log.e("Exception-GameListItem", e.toString()); + Log.e("GameListItem", e.toString()); } } else