From 90cfcbb7ae1c5fb3abc3d4588f1e7a9f96b998fa Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 11 Nov 2020 11:36:01 +0100 Subject: [PATCH] Fix issue #67 - Reaching profile edition from the account activity --- .../fedilab/fedilabtube/AccountActivity.java | 5 +++++ app/src/main/res/layout/activity_account.xml | 19 +++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) 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 @@ + +