Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Simplify if statement conditions for the item click listene…
…r 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.
  • Loading branch information
lioncash committed Aug 17, 2013
1 parent 9149b30 commit 88f79a1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -96,7 +96,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
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);
Expand Down

0 comments on commit 88f79a1

Please sign in to comment.