This repository has been archived by the owner on Oct 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove custom binary for consistency, missing translations
- Loading branch information
1 parent
2079ea8
commit 154c0d4
Showing
104 changed files
with
116 additions
and
7,879 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
app/src/main/java/com/genonbeta/TrebleShot/activity/QRScannerActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
package com.genonbeta.TrebleShot.activity; | ||
|
||
import android.os.Bundle; | ||
import android.support.annotation.NonNull; | ||
import android.support.annotation.Nullable; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.view.KeyEvent; | ||
|
||
import com.journeyapps.barcodescanner.CaptureManager; | ||
import com.journeyapps.barcodescanner.DecoratedBarcodeView; | ||
|
||
/** | ||
* created by: Veli | ||
* date: 23.02.2018 19:50 | ||
*/ | ||
|
||
public class QRScannerActivity extends AppCompatActivity | ||
{ | ||
private CaptureManager mManager; | ||
private DecoratedBarcodeView mScannerView; | ||
|
||
@Override | ||
protected void onCreate(@Nullable Bundle savedInstanceState) | ||
{ | ||
super.onCreate(savedInstanceState); | ||
|
||
mScannerView = initializeContent(); | ||
|
||
mManager = new CaptureManager(this, mScannerView); | ||
mManager.initializeFromIntent(getIntent(), savedInstanceState); | ||
mManager.decode(); | ||
} | ||
|
||
protected DecoratedBarcodeView initializeContent() | ||
{ | ||
setContentView(com.google.zxing.client.android.R.layout.zxing_capture); | ||
return (DecoratedBarcodeView) findViewById(com.google.zxing.client.android.R.id.zxing_barcode_scanner); | ||
} | ||
|
||
@Override | ||
protected void onResume() | ||
{ | ||
super.onResume(); | ||
mManager.onResume(); | ||
} | ||
|
||
@Override | ||
protected void onPause() | ||
{ | ||
super.onPause(); | ||
mManager.onPause(); | ||
} | ||
|
||
@Override | ||
protected void onDestroy() | ||
{ | ||
super.onDestroy(); | ||
mManager.onDestroy(); | ||
} | ||
|
||
@Override | ||
protected void onSaveInstanceState(Bundle outState) | ||
{ | ||
super.onSaveInstanceState(outState); | ||
mManager.onSaveInstanceState(outState); | ||
} | ||
|
||
@Override | ||
public void onRequestPermissionsResult(int requestCode, @NonNull String permissions[], @NonNull int[] grantResults) | ||
{ | ||
mManager.onRequestPermissionsResult(requestCode, permissions, grantResults); | ||
} | ||
|
||
@Override | ||
public boolean onKeyDown(int keyCode, KeyEvent event) | ||
{ | ||
return mScannerView.onKeyDown(keyCode, event) || super.onKeyDown(keyCode, event); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<merge xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
|
||
<com.journeyapps.barcodescanner.DecoratedBarcodeView | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:id="@+id/zxing_barcode_scanner" | ||
app:zxing_preview_scaling_strategy="centerCrop" | ||
app:zxing_use_texture_view="false"/> | ||
|
||
</merge> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
qrcode/src/androidTest/java/com/genonbeta/qrcode/ExampleInstrumentedTest.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.