commit before refactor
This commit is contained in:
parent
364e78d203
commit
19fd23e616
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue