Report Uri after import

The filename from Uri code was removed in a previous commit.
To give some feedback about what was imported, the Uri itself
is reported.
This commit is contained in:
Branden Archer
2018-01-19 22:55:08 -05:00
parent 4034997d7f
commit f1b2c0d93d

View File

@@ -248,6 +248,14 @@ public class ImportExportActivity extends AppCompatActivity
builder.setTitle(R.string.importFailedTitle);
}
int messageId = success ? R.string.importedFrom : R.string.importFailed;
final String template = getResources().getString(messageId);
// Get the filename of the file being imported
String filename = path.toString();
final String message = String.format(template, filename);
builder.setMessage(message);
builder.setNeutralButton(R.string.ok, new DialogInterface.OnClickListener()
{
@Override