fix: someshit
This commit is contained in:
parent
120e63ea8a
commit
36c64951c7
4 changed files with 8 additions and 14 deletions
|
@ -80,7 +80,6 @@ class CalendarActivity : AppCompatActivity() {
|
|||
)
|
||||
binding.settingsContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
||||
topMargin = statusBarHeight
|
||||
bottomMargin = navBarHeight
|
||||
}
|
||||
}
|
||||
setContentView(binding.root)
|
||||
|
|
|
@ -81,7 +81,7 @@ class ProfileActivity : AppCompatActivity() {
|
|||
})
|
||||
val userLevel = intent.getStringExtra("username") ?: ""
|
||||
binding.followButton.visibility = if (user.id == Anilist.userid || Anilist.userid == null) View.GONE else View.VISIBLE
|
||||
binding.followButton.text = if (user.isFollowing) "Unfollow" else "Follow"
|
||||
binding.followButton.text = if (user.isFollowing) "Unfollow" else if(user.isFollower) "Follows you" else "Follow"
|
||||
if (user.isFollowing && user.isFollower) binding.followButton.text = "Mutual"
|
||||
binding.followButton.setOnClickListener {
|
||||
lifecycleScope.launch(Dispatchers.IO) {
|
||||
|
@ -90,7 +90,7 @@ class ProfileActivity : AppCompatActivity() {
|
|||
withContext(Dispatchers.Main) {
|
||||
snackString("Success")
|
||||
user.isFollowing = res.data.toggleFollow.isFollowing
|
||||
binding.followButton.text = if (user.isFollowing) "Unfollow" else "Follow"
|
||||
binding.followButton.text = if (user.isFollowing) "Unfollow" else if(user.isFollower) "Follows you" else "Follow"
|
||||
if (user.isFollowing && user.isFollower) binding.followButton.text = "Mutual"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
android:id="@+id/profileUserDataContainer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-124dp"
|
||||
android:layout_marginTop="-171dp"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="vertical"
|
||||
tools:visibility="visible">
|
||||
|
@ -81,6 +81,7 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_gravity="center"
|
||||
android:textColor="?attr/colorPrimary"
|
||||
android:fontFamily="@font/poppins_semi_bold"
|
||||
android:text="@string/username"
|
||||
|
@ -91,21 +92,17 @@
|
|||
style="@style/Widget.Material3.Button.OutlinedButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"
|
||||
android:enabled="true"
|
||||
android:layout_gravity="center"
|
||||
android:fontFamily="@font/poppins_bold"
|
||||
android:insetTop="0dp"
|
||||
android:insetBottom="0dp"
|
||||
android:padding="8dp"
|
||||
android:textColor="@color/bg_opp"
|
||||
android:text="Follow"
|
||||
android:textSize="16sp"
|
||||
app:cornerRadius="16dp"
|
||||
android:textSize="14sp"
|
||||
android:backgroundTint="?attr/colorPrimaryContainer"
|
||||
app:cornerRadius="8dp"
|
||||
app:strokeColor="?attr/colorPrimaryContainer"
|
||||
tools:ignore="SpeakableTextPresentCheck" />
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_marginEnd="32dp"
|
||||
android:layout_marginStart="32dp"
|
||||
android:backgroundTint="@color/yt_red"
|
||||
android:fontFamily="@font/poppins_bold"
|
||||
android:insetTop="0dp"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue