Update SDLActivity.java

This commit is contained in:
Anthony Calosa
2016-06-17 17:03:37 +08:00
committed by GitHub
parent 0f9bbc1561
commit 9a3b3013a3

View File

@@ -215,10 +215,9 @@ public class SDLActivity extends Activity implements OnKeyListener
private void importDeckOptions()
{
AlertDialog.Builder importDeck = new AlertDialog.Builder(this);
int index=internalPath.lastIndexOf('/');
AlertDialog.Builder importDeck = new AlertDialog.Builder(this);
importDeck.setTitle("Choose Deck to Import:");
File root = new File(internalPath.substring(0,index)+"/Download");
File root = new File(System.getenv("EXTERNAL_STORAGE")+"/Download");
File[] files = root.listFiles();
for( File f : files)
{