Skip to content

Commit d27ebd8

Browse files
refactor : clean up code and remove unused code
1 parent 918f2df commit d27ebd8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
android:name="com.google.firebase.ml.vision.DEPENDENCIES"
3636
android:value="face" />
3737
</activity>
38-
<activity android:name=".activity.HomeActivity">
38+
<activity
39+
android:name=".activity.HomeActivity"
40+
android:launchMode="singleTop">
3941
<intent-filter>
4042
<action android:name="android.intent.action.MAIN" />
4143
<category android:name="android.intent.category.LAUNCHER" />
@@ -48,7 +50,9 @@
4850
android:name="com.google.firebase.ml.vision.DEPENDENCIES"
4951
android:value="barcode" />
5052
</activity>
51-
<activity android:name=".activity.LandscapeDetectorActivity">
53+
<activity
54+
android:name=".activity.LandscapeDetectorActivity"
55+
android:parentActivityName=".activity.HomeActivity">
5256

5357
</activity>
5458

app/src/main/java/io/github/the_dagger/mlkit/activity/LandscapeDetectorActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class LandscapeDetectorActivity : BaseCameraActivity() {
6767
getLandscapeFromCloud(bitmap)
6868
imagePreview.setImageBitmap(bitmap)
6969
framePreview.visibility = View.VISIBLE
70+
btnRetry.visibility = View.GONE
7071
}
7172

7273
override fun onImagePickerError(e: Exception?, source: EasyImage.ImageSource?, type: Int) {

0 commit comments

Comments
 (0)