Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
lioncash committed Sep 4, 2013
1 parent b94a462 commit 10eb9f0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -42,7 +42,7 @@ public GameListItem(Context ctx, String name, String data, String path)
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)
Expand All @@ -60,7 +60,7 @@ public GameListItem(Context ctx, String name, String data, String path)
}
catch (IOException e)
{
Log.e("Exception-GameListItem", e.toString());
Log.e("GameListItem", e.toString());
}
}
else
Expand Down

0 comments on commit 10eb9f0

Please sign in to comment.