commit before refactor

This commit is contained in:
leca 2024-10-04 18:56:53 +03:00
parent 364e78d203
commit 19fd23e616
4 changed files with 4 additions and 5 deletions

View File

@ -38,7 +38,6 @@ class AbstractProductView: LinearLayout {
val thumbnailsDir = File(context.cacheDir, "thumbnails")
thumbnailsDir.mkdirs()
val imageUri = getImageUri(activity, File(thumbnailsDir, "$productImageHash.webp"))
Log.d("QWERTYUIOP", "${productPicture.minimumWidth}x${productPicture.minimumHeight}")
productPicture.setImageURI(imageUri)
productPicture.rotation = 90f
productPicture.setOnClickListener {

View File

@ -65,9 +65,6 @@ class AddProductFragment : Fragment() {
//Saving picture to a temp file for further hash calculation and moving to a proper directory
val imageFile = File(requireContext().filesDir, "image.png")
val imageUri = getImageUri(requireActivity(), imageFile)
if (imageUri != null) {
Log.d("QWERTYUIOP", imageUri.path.toString())
}
takePicture.launch(imageUri)
}

View File

@ -39,7 +39,9 @@ class MainActivity : AppCompatActivity() {
override fun onOptionsItemSelected(item: MenuItem): Boolean {
return when (item.itemId) {
R.id.action_settings -> true
R.id.action_settings -> {
true
}
else -> super.onOptionsItemSelected(item)
}
}

View File

@ -6,4 +6,5 @@
android:title="@string/action_settings"
android:orderInCategory="100"
app:showAsAction="never"/>
<item android:title="Delete item..." android:id="@+id/action_delete"/>
</menu>