[Android] Simplify if statement conditions for the item click listener in FolderBrowser.java.

Since FolderBrowserItems have an 'isDirectory()' method, that's all we need to care about now. There's no need to check subtitles to determine if an item is a directory anymore.
This commit is contained in:
Lioncash 2013-08-17 11:03:02 -04:00
parent 9149b30237
commit 88f79a14db
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public final class FolderBrowser extends Fragment
public void onItemClick(AdapterView<?> parent, View view, int position, long id)
{
FolderBrowserItem item = adapter.getItem(position);
if(item.isDirectory() || item.getSubtitle().equalsIgnoreCase(getString(R.string.parent_directory)))
if(item.isDirectory())
{
currentDir = new File(item.getPath());
Fill(currentDir);