Skip to content

Commit f7948aa

Browse files
committed
* disable installation of OpenCV from Play Store ( Close #130 )
1 parent de53585 commit f7948aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/main/java/com/todobom/opennotescanner/helpers/CustomOpenCVLoader.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import android.content.Intent;
1111
import android.content.IntentFilter;
1212
import android.content.ServiceConnection;
13-
import android.content.pm.PackageInfo;
1413
import android.content.pm.PackageManager;
1514
import android.database.Cursor;
1615
import android.net.Uri;
@@ -51,6 +50,9 @@ public void onServiceDisconnected(ComponentName name) {
5150
public static boolean isGooglePlayInstalled(Context context) {
5251
PackageManager pm = context.getPackageManager();
5352
boolean app_installed = false;
53+
54+
// DISABLED installation from Google Play since OpenCV Manager is removed from there
55+
/*
5456
try
5557
{
5658
PackageInfo info = pm.getPackageInfo("com.android.vending", PackageManager.GET_ACTIVITIES);
@@ -61,6 +63,8 @@ public static boolean isGooglePlayInstalled(Context context) {
6163
{
6264
app_installed = false;
6365
}
66+
*/
67+
6468
return app_installed;
6569
}
6670

0 commit comments

Comments
 (0)