Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMarquis committed May 1, 2020
1 parent 60aa907 commit 8659c00
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ android {
}
lintOptions {
textReport = true
disable "UnsafeExperimentalUsageError","UnsafeExperimentalUsageWarning"
}
}

Expand Down
4 changes: 0 additions & 4 deletions app/src/main/java/fr/smarquis/ar_toolbox/FaceActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ class FaceActivity : ArActivity(R.layout.activity_face) {
}

private fun onArUpdate() {
val frame = arSceneView.arFrame
val camera = frame?.camera
val state = camera?.trackingState // Always TrackingState.PAUSED

val updatedFaces = arSceneView.arFrame?.getUpdatedTrackables(AugmentedFace::class.java)
updatedFaces?.forEach {
when (it.trackingState) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/bottom_sheet_face_body.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
android:paddingLeft="@dimen/bottom_sheet_horizontal_padding"
android:paddingRight="@dimen/bottom_sheet_horizontal_padding"
android:paddingBottom="@dimen/material_unit_1"
tools:ignore="KeyboardInaccessibleWidget"
tools:ignore="KeyboardInaccessibleWidget,Overdraw"
tools:showIn="@layout/bottom_sheet_face">

<TextView
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/bottom_sheet_node_body.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
android:paddingLeft="@dimen/bottom_sheet_horizontal_padding"
android:paddingRight="@dimen/bottom_sheet_horizontal_padding"
android:paddingBottom="@dimen/material_unit_1"
tools:ignore="KeyboardInaccessibleWidget"
tools:ignore="KeyboardInaccessibleWidget,Overdraw"
tools:showIn="@layout/bottom_sheet_node">

<TextView
Expand Down

0 comments on commit 8659c00

Please sign in to comment.