[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.
This commit is contained in:
Lioncash 2013-09-04 08:02:32 -04:00
parent b94a462fca
commit 10eb9f09b4
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ public final class GameListItem implements Comparable<GameListItem>
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<GameListItem>
}
catch (IOException e)
{
Log.e("Exception-GameListItem", e.toString());
Log.e("GameListItem", e.toString());
}
}
else