summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRicardo Cerqueira <ricardo@cyngn.com>2015-02-20 20:00:04 +0000
committerRicardo Cerqueira <ricardo@cyngn.com>2015-11-12 13:58:04 +0000
commit1028cf567404f3fe87f9ba0fa84cd36e3e5e0c6a (patch)
tree2502de8f8e0971a05b09dd3f4441565d90e15bcb /src
parent2f0e4c163c1447b8e67e5fef273d462962818a67 (diff)
downloadandroid_packages_apps_Screencast-1028cf567404f3fe87f9ba0fa84cd36e3e5e0c6a.tar.gz
android_packages_apps_Screencast-1028cf567404f3fe87f9ba0fa84cd36e3e5e0c6a.tar.bz2
android_packages_apps_Screencast-1028cf567404f3fe87f9ba0fa84cd36e3e5e0c6a.zip
Simplify the filename in the share intent
Do not use the full path as the document name, strip it down to just the file part Change-Id: I997276e43f0fb93fe9221b1ef8a71c0c31bbe684
Diffstat (limited to 'src')
-rw-r--r--src/com/cyanogenmod/screencast/ScreencastService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/screencast/ScreencastService.java b/src/com/cyanogenmod/screencast/ScreencastService.java
index 2daf179..327d53b 100644
--- a/src/com/cyanogenmod/screencast/ScreencastService.java
+++ b/src/com/cyanogenmod/screencast/ScreencastService.java
@@ -39,6 +39,7 @@ import android.view.Display;
import android.widget.Toast;
import android.graphics.Point;
+import java.io.File;
import java.lang.reflect.Method;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -257,7 +258,7 @@ public class ScreencastService extends Service {
sharingIntent.setType("video/mp4");
Uri uri = Uri.parse("file://" + file);
sharingIntent.putExtra(Intent.EXTRA_STREAM, uri);
- sharingIntent.putExtra(Intent.EXTRA_SUBJECT, file);
+ sharingIntent.putExtra(Intent.EXTRA_SUBJECT, new File(file).getName());
Intent chooserIntent = Intent.createChooser(sharingIntent, null);
chooserIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
long timeElapsed = System.currentTimeMillis() - startTime;