removing a redundant variable

This commit is contained in:
tibbi 2019-01-14 14:09:17 +01:00
parent f6f5e96fac
commit caec3cf03a
1 changed files with 0 additions and 3 deletions

View File

@ -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
}