Pebble: fix taking screenshots on Android 8.0

Closes #790
master
Andreas Shimokawa 2017-09-03 14:11:51 +02:00
parent 24797c7dd7
commit a63dc4a018
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ public abstract class AbstractDeviceSupport implements DeviceSupport {
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("image/*");
shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(fullpath)));
shareIntent.putExtra(Intent.EXTRA_STREAM, screenshotURI);
PendingIntent pendingShareIntent = PendingIntent.getActivity(context, 0, Intent.createChooser(shareIntent, "share screenshot"),
PendingIntent.FLAG_UPDATE_CURRENT);