mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2024-12-17 18:58:35 +01:00
removing a redundant variable
This commit is contained in:
parent
f6f5e96fac
commit
caec3cf03a
@ -40,7 +40,6 @@ class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
|
||||
private var mStartX = 0f
|
||||
private var mStartY = 0f
|
||||
private var mCurrBrushSize = 0f
|
||||
private var mIsSaving = false
|
||||
private var mAllowZooming = true
|
||||
private var mIsEraserOn = false
|
||||
private var mWasMultitouch = false
|
||||
@ -134,9 +133,7 @@ class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
|
||||
val bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888)
|
||||
val canvas = Canvas(bitmap)
|
||||
canvas.drawColor(Color.WHITE)
|
||||
mIsSaving = true
|
||||
draw(canvas)
|
||||
mIsSaving = false
|
||||
return bitmap
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user