mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-22 19:01:30 +00:00
Update zxing-android-embedded and small related fixes (#1642)
This commit is contained in:
parent
2f83612774
commit
517c5ca73d
5 changed files with 7 additions and 2 deletions
|
@ -13,7 +13,7 @@ dependencies {
|
|||
implementation 'com.annimon:stream:1.2.2'
|
||||
implementation 'com.android.volley:volley:1.2.0'
|
||||
|
||||
implementation ('com.journeyapps:zxing-android-embedded:3.6.0') { transitive = false }
|
||||
implementation ('com.journeyapps:zxing-android-embedded:4.1.0') { transitive = false }
|
||||
implementation 'com.google.zxing:core:3.3.0'
|
||||
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
<!-- CAMERA is required for the QR Code Scanner -->
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
|
||||
<uses-sdk tools:overrideLibrary="com.google.zxing.client.android" />
|
||||
|
||||
<application
|
||||
android:allowBackup="false"
|
||||
android:fullBackupContent="false"
|
||||
|
|
|
@ -395,6 +395,8 @@ public class DeviceActivity extends SyncthingActivity implements View.OnClickLis
|
|||
*/
|
||||
@Override
|
||||
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
|
||||
super.onActivityResult(requestCode, resultCode, intent);
|
||||
|
||||
if (requestCode == QR_SCAN_REQUEST_CODE) {
|
||||
if (resultCode == Activity.RESULT_OK) {
|
||||
String scanResult = intent.getStringExtra(QRScannerActivity.QR_RESULT_ARG);
|
||||
|
|
|
@ -514,6 +514,8 @@ public class FolderActivity extends SyncthingActivity
|
|||
|
||||
@Override
|
||||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
super.onActivityResult(requestCode, resultCode, data);
|
||||
|
||||
if (resultCode == Activity.RESULT_OK && requestCode == CHOOSE_FOLDER_REQUEST) {
|
||||
// This result case only occurs on API level >= Build.VERSION_CODES.LOLLIPOP (21)
|
||||
mFolderUri = data.getData();
|
||||
|
|
|
@ -34,7 +34,6 @@ public class QRScannerActivity extends ThemedAppCompatActivity implements Barcod
|
|||
private final int RC_HANDLE_CAMERA_PERM = 888;
|
||||
|
||||
private DecoratedBarcodeView barcodeView;
|
||||
private TextView cancleButton;
|
||||
|
||||
// region === Activity Lifecycle ===
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue