Skip to content
This repository has been archived by the owner on Dec 8, 2018. It is now read-only.

Disabled screenshot image cache. Added file extension in screenshot image file for sharing #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/assets/*
/bin/*
/gen/*
/libs/*
bin
gen
libs
/res/*


Expand Down
6 changes: 0 additions & 6 deletions shaketobug-library/gen/com/shake2bug/android/BuildConfig.java

This file was deleted.

127 changes: 0 additions & 127 deletions shaketobug-library/gen/com/shake2bug/android/R.java

This file was deleted.

3 changes: 2 additions & 1 deletion shaketobug-library/src/com/shaketobug/ScreenUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class ScreenUtils {
* @return {@link Bitmap}
*/
public static Bitmap takeScreenshot(View rootView) {
rootView.destroyDrawingCache();
rootView.setDrawingCacheEnabled(true);
Bitmap screenBitmap = rootView.getDrawingCache();
return screenBitmap;
Expand Down Expand Up @@ -74,7 +75,7 @@ public static String createNameforFile() {
*/
public static String saveScreenshot(Bitmap bitmap) {
String externalPath = Environment.getExternalStorageDirectory() + "/";
String filePath = externalPath + createNameforFile();
String filePath = externalPath + createNameforFile() + ".jpeg";
File imageFile = new File(filePath);
FileOutputStream fos;

Expand Down
53 changes: 0 additions & 53 deletions shaketobug-sample/gen/com/shake2bug/android/R.java

This file was deleted.

This file was deleted.

Loading