Skip to content

Commit

Permalink
fix exporting monitoring (#33)
Browse files Browse the repository at this point in the history
Use file provider for providing Uri for the export file.
  • Loading branch information
onyxvd authored Jan 23, 2019
1 parent a1120b0 commit cb7dbed
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.app.IntentService;
import android.content.Intent;
import android.net.Uri;
import android.support.v4.content.FileProvider;
import android.util.Log;

import org.androidannotations.annotations.Bean;
Expand Down Expand Up @@ -84,6 +85,7 @@ public void prepareForExport() {
return;
}

eventBus.post(new ExportPreparedEvent(Uri.fromFile(exportFile)));
Uri uri = FileProvider.getUriForFile(getApplicationContext(), SmartBirdsApplication.FILES_AUTHORITY, exportFile);
eventBus.post(new ExportPreparedEvent(uri));
}
}

0 comments on commit cb7dbed

Please sign in to comment.