Skip to content
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
12 changes: 6 additions & 6 deletions library/src/main/java/com/scanlibrary/ScanActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ public void onTrimMemory(int level) {
If the event is TRIM_MEMORY_COMPLETE, the process will be one of
the first to be terminated.
*/
new AlertDialog.Builder(this)
.setTitle(R.string.low_memory)
.setMessage(R.string.low_memory_message)
.create()
.show();
break;
// new AlertDialog.Builder(this)
// .setTitle(R.string.low_memory)
// .setMessage(R.string.low_memory_message)
// .create()
// .show();
// break;
default:
/*
Release any non-critical data structures.
Expand Down
4 changes: 2 additions & 2 deletions library/src/main/java/com/scanlibrary/ScanFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private void setBitmap(Bitmap original) {
Bitmap tempBitmap = ((BitmapDrawable) sourceImageView.getDrawable()).getBitmap();
Map<Integer, PointF> pointFs = getEdgePoints(tempBitmap);
polygonView.setPoints(pointFs);
polygonView.setVisibility(View.VISIBLE);
polygonView.setVisibility(View.GONE);
int padding = (int) getResources().getDimension(R.dimen.scanPadding);
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(tempBitmap.getWidth() + 2 * padding, tempBitmap.getHeight() + 2 * padding);
layoutParams.gravity = Gravity.CENTER;
Expand Down Expand Up @@ -237,4 +237,4 @@ protected void dismissDialog() {
progressDialogFragment.dismissAllowingStateLoss();
}

}
}