From cf47145c974669dbfea1c1ba569ebc0c28cf2241 Mon Sep 17 00:00:00 2001 From: Arkadip Bhattacharya Date: Thu, 28 May 2020 11:29:10 +0530 Subject: [PATCH] Release: 1.2.1 - (41b373406bde452204a74aec1ece489875bd3323) - (251166c3dab023c8085d1e931c9610bb74757bbe) - (d6bc27e9f9666c8d104e1550a73bb3b48681862b) - (14b56326847880d7e77474ca7a72098a303fd63c) - (972e375007daa8a2d37fa9ca6dcc4ea60587ecb9) - (445382d8565779533ebca9aa5ee511ff6aa62a8c) - (3f9c56fad58f5e71819d55612129ca782690e866) - (1dc0c747b9204be02b47861a01eb00680682ef8e) - (98b0e6c6f4c7479c06ccbffc95bd1d80668028a0) - (98b0e6c6f4c7479c06ccbffc95bd1d80668028a0) - (9717b5fe98ce2a1eb387446d3c75e9cd4eca56ed) - (06b93d307874a4b11da7333f466545612b20e761) - (4ec6de7e6c8bfb737c88aaef76ac1d6aa4880f51) Signed-off-by: Arkadip Bhattacharya --- app/build.gradle | 6 +++--- app/src/main/java/com/arkadip/whatsthere/LogicActivity.java | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 42a72c2..91b0406 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,7 +11,7 @@ android { minSdkVersion 21 targetSdkVersion 29 versionCode 1 - versionName '1.2.1' + versionName '1.2.2' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } @@ -42,9 +42,9 @@ dependencies { implementation 'androidx.camera:camera-camera2:1.0.0-beta04' implementation 'androidx.camera:camera-core:1.0.0-beta04' - implementation 'androidx.camera:camera-core:1.0.0-beta03' + implementation 'androidx.camera:camera-core:1.0.0-beta04' implementation 'androidx.camera:camera-extensions:1.0.0-alpha11' - implementation 'androidx.camera:camera-lifecycle:1.0.0-beta03' + implementation 'androidx.camera:camera-lifecycle:1.0.0-beta04' implementation 'androidx.camera:camera-view:1.0.0-alpha11' implementation 'org.pytorch:pytorch_android:1.5.0' implementation 'org.pytorch:pytorch_android_torchvision:1.5.0' diff --git a/app/src/main/java/com/arkadip/whatsthere/LogicActivity.java b/app/src/main/java/com/arkadip/whatsthere/LogicActivity.java index 0af7618..e0c13c8 100644 --- a/app/src/main/java/com/arkadip/whatsthere/LogicActivity.java +++ b/app/src/main/java/com/arkadip/whatsthere/LogicActivity.java @@ -140,6 +140,7 @@ private void bindCameraUseCases() { toggleFlash(); } + private void toggleFlash() { toggleButton.setOnClickListener(v -> { try {