diff --git a/ScanDemoExample/scanlibrary/src/main/java/com/scanlibrary/ScanActivity.java b/ScanDemoExample/scanlibrary/src/main/java/com/scanlibrary/ScanActivity.java index 5a98566a..fff9ba86 100644 --- a/ScanDemoExample/scanlibrary/src/main/java/com/scanlibrary/ScanActivity.java +++ b/ScanDemoExample/scanlibrary/src/main/java/com/scanlibrary/ScanActivity.java @@ -94,11 +94,15 @@ 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) + +// This alert is causing problems on MIUI and other third party OSes, I believe it is not necessary to be shown. +// This alert always appears on a Xiaomi mi 9 with 6 GBs of ram + /* new AlertDialog.Builder(this) .setTitle(R.string.low_memory) .setMessage(R.string.low_memory_message) .create() .show(); + */ break; default: /* @@ -125,4 +129,4 @@ public void onTrimMemory(int level) { System.loadLibrary("opencv_java3"); System.loadLibrary("Scanner"); } -} \ No newline at end of file +}