[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:
parent
b94a462fca
commit
10eb9f09b4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue