Commit be9f0441 authored by Lukas Bersinger's avatar Lukas Bersinger
Browse files

implement edit button in TimeTrackingActivity

parent 60706230
package ch.ost.rj.mge.miniproject.tasktracker.activities
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.widget.Button
import android.widget.ImageButton
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import ch.ost.rj.mge.miniproject.tasktracker.R
......@@ -64,7 +66,12 @@ class TimeTrackingActivity : AppCompatActivity() {
stopTimer()
}
val btnEdit: ImageButton = findViewById(R.id.btnEdit)
btnEdit.setOnClickListener {
val intent = Intent(this, EditTaskActivity::class.java)
intent.putExtra(EditTaskActivity.KEY_TASK_ID, task.id)
startActivity(intent)
}
}
override fun onResume() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment