From 8ab9ed2a0ef2a73b7e61a68321f8e99475593483 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 1 Sep 2018 18:49:16 +0200 Subject: Small drawing UI fixes --- app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt') diff --git a/app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt b/app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt index dd537a7..38031ad 100644 --- a/app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt +++ b/app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt @@ -2,6 +2,7 @@ package me.texx.Texx import android.net.Uri import android.os.Bundle +import android.support.v4.content.ContextCompat import android.support.v7.app.AppCompatActivity import android.view.View import android.view.Window @@ -55,7 +56,7 @@ class PhotoEditorActivity : AppCompatActivity() { if (currentlyDrawing) drawColorSeekbar.visibility = View.VISIBLE else { drawColorSeekbar.visibility = View.GONE - photoDrawButton.setBackgroundColor(View.INVISIBLE) + photoDrawButton.background = ContextCompat.getDrawable(this, R.drawable.ic_mode_edit_white_24dp) } } -- cgit v1.2.3