[Android] Simplify a string retrieval in FolderBrowserAdapter.

Also remove an unnecessary import from EmulationActivity.java. This should have been removed in the previous commit.
This commit is contained in:
Lioncash 2013-10-02 22:31:17 -04:00
parent c517b7fe7e
commit 4e08a6cc8d
2 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@ package org.dolphinemu.dolphinemu.emulation;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;

View File

@ -78,7 +78,7 @@ public final class FolderBrowserAdapter extends ArrayAdapter<FolderBrowserItem>
if(subtitle != null)
{
// Remove the subtitle for all folders, except for the parent directory folder.
if (item.isDirectory() && !item.getSubtitle().equals(c.getResources().getString(R.string.parent_directory)))
if (item.isDirectory() && !item.getSubtitle().equals(c.getString(R.string.parent_directory)))
{
subtitle.setVisibility(View.GONE);
}