IanTDuncan / MealTime

Project for CSC 480
0 stars 0 forks source link

Account Info - Backend Development #148

Closed Cade5480 closed 6 months ago

Cade5480 commented 6 months ago

Account Info

Description:

I need to add the button click for account info with the account information popup

Steps to Reproduce:

  1. Log in
  2. Click on My Account
  3. Click on Account Info

Code Snippets:

buttonAccount.setOnClickListener { val intent = Intent(this, AccountOptionsActivity::class.java) startActivity(intent) }

`package com.example.mealtime1

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.activity.ComponentActivity

class AccountOptionsActivity: ComponentActivity() {
private lateinit var backButton: Button
override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.user_info_activity)

    backButton = findViewById(R.id.button)

    backButton.setOnClickListener {
        val intent = Intent(this, MyAccountActivity::class.java)
        startActivity(intent)
    }

}

}`

Environment Details:

IDE: Android Studio SDK: 34.1.2

For Issue Resolution:

Add a click handler to the account info activity to correctly display user and account info

For Investigations/Research:

N/A

Current Status:

Completed

Cade5480 commented 6 months ago

Will assign due date when I begin work

Cade5480 commented 6 months ago

Added functionality to button click of account info, closing this issue