"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "android/src/com/google/zxing/client/android/CaptureActivityHandler.java" between
zxing-zxing-3.4.0.tar.gz and zxing-zxing-3.4.1.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.

CaptureActivityHandler.java  (zxing-zxing-3.4.0):CaptureActivityHandler.java  (zxing-zxing-3.4.1)
skipping to change at line 121 skipping to change at line 121
Intent intent = new Intent(Intent.ACTION_VIEW); Intent intent = new Intent(Intent.ACTION_VIEW);
intent.addFlags(Intents.FLAG_NEW_DOC); intent.addFlags(Intents.FLAG_NEW_DOC);
intent.setData(Uri.parse(url)); intent.setData(Uri.parse(url));
ResolveInfo resolveInfo = ResolveInfo resolveInfo =
activity.getPackageManager().resolveActivity(intent, PackageManager. MATCH_DEFAULT_ONLY); activity.getPackageManager().resolveActivity(intent, PackageManager. MATCH_DEFAULT_ONLY);
String browserPackageName = null; String browserPackageName = null;
if (resolveInfo != null && resolveInfo.activityInfo != null) { if (resolveInfo != null && resolveInfo.activityInfo != null) {
browserPackageName = resolveInfo.activityInfo.packageName; browserPackageName = resolveInfo.activityInfo.packageName;
Log.d(TAG, "Using browser in package " + browserPackageName);
} }
// Needed for default Android browser / Chrome only apparently // Needed for default Android browser / Chrome only apparently
if (browserPackageName != null) { if (browserPackageName != null) {
switch (browserPackageName) { switch (browserPackageName) {
case "com.android.browser": case "com.android.browser":
case "com.android.chrome": case "com.android.chrome":
intent.setPackage(browserPackageName); intent.setPackage(browserPackageName);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra(Browser.EXTRA_APPLICATION_ID, browserPackageName); intent.putExtra(Browser.EXTRA_APPLICATION_ID, browserPackageName);
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)