diff --git a/app/src/main/java/app/fedilab/fedilabtube/AccountActivity.java b/app/src/main/java/app/fedilab/fedilabtube/AccountActivity.java index 2e77ea9..9d7b897 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/AccountActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/AccountActivity.java @@ -37,6 +37,7 @@ import androidx.fragment.app.FragmentStatePagerAdapter; import androidx.viewpager.widget.PagerAdapter; import androidx.viewpager.widget.ViewPager; +import com.google.android.material.floatingactionbutton.FloatingActionButton; import com.google.android.material.tabs.TabLayout; import org.jetbrains.annotations.NotNull; @@ -97,6 +98,10 @@ public class AccountActivity extends AppCompatActivity { displayname.setText(account.getDisplayName()); instanceView.setText(account.getHost()); + FloatingActionButton edit_profile = findViewById(R.id.edit_profile); + edit_profile.setOnClickListener(v -> { + startActivity(new Intent(AccountActivity.this, MyAccountActivity.class)); + }); Button logout_button = findViewById(R.id.logout_button); logout_button.setOnClickListener(v -> { diff --git a/app/src/main/res/layout/activity_account.xml b/app/src/main/res/layout/activity_account.xml index 1b2c595..164c08f 100644 --- a/app/src/main/res/layout/activity_account.xml +++ b/app/src/main/res/layout/activity_account.xml @@ -61,13 +61,28 @@ + +