Skip to content

Commit

Permalink
improvements in speed and stability for camera capture
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed May 2, 2024
1 parent 3729f52 commit 96bc459
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class CameraFragment : BaseFragment<FragmentCameraBinding>(R.layout.fragment_cam
private var cameraProvider: ProcessCameraProvider? = null
private var imageCapture: ImageCapture? = null
private var imageAnalyzer: ImageAnalysis? = null
`

// A lazy instance of the current fragment's view binding
override val binding: FragmentCameraBinding by lazy {
FragmentCameraBinding.inflate(
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/org/witness/proofmode/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import org.witness.proofmode.databinding.ActivityMainBinding
import org.witness.proofmode.onboarding.OnboardingActivity
import org.witness.proofmode.service.MediaWatcher
import org.witness.proofmode.util.GPSTracker
import timber.log.Timber
import java.io.IOException
import java.util.Date
import java.util.UUID
Expand Down Expand Up @@ -265,6 +266,7 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte

private fun addProofActivity(items: List<Uri>) {

Timber.d("addProofActivity: New Proof Items: ${items.size}")

val proofItems = ArrayList<ProofableItem>()
for (item in items) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.util.Log
import android.widget.Toast
import androidx.compose.runtime.mutableStateListOf
import timber.log.Timber
Expand Down Expand Up @@ -36,7 +37,7 @@ class ProofEventReceiver : BroadcastReceiver() {
)
}

Timber.d("New Proof Event: " + it)
Timber.tag("ProofEventReceiver").i("New Proof Event: " + it)
}
}

Expand Down

0 comments on commit 96bc459

Please sign in to comment.