File tree Expand file tree Collapse file tree
app/src/main/java/com/cornellappdev/uplift Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,15 +2,13 @@ package com.cornellappdev.uplift
22
33import android.content.pm.ActivityInfo
44import android.os.Bundle
5- import android.util.Log
65import androidx.activity.ComponentActivity
76import androidx.activity.compose.setContent
87import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
98import com.cornellappdev.uplift.data.repositories.DatastoreRepository
109import com.cornellappdev.uplift.ui.MainNavigationWrapper
1110import com.cornellappdev.uplift.ui.theme.UpliftTheme
1211import com.cornellappdev.uplift.util.LockScreenOrientation
13- import com.google.firebase.messaging.FirebaseMessaging
1412import dagger.hilt.android.AndroidEntryPoint
1513import javax.inject.Inject
1614
@@ -34,19 +32,6 @@ class MainActivity : ComponentActivity() {
3432 MainNavigationWrapper ()
3533 }
3634 }
37-
38- FirebaseMessaging .getInstance().token.addOnCompleteListener { task ->
39- if (! task.isSuccessful) {
40- Log .w(" FCM" , " Fetching FCM registration token failed" , task.exception)
41- return @addOnCompleteListener
42- }
43-
44- // Get new FCM registration token
45- val token = task.result
46-
47- // Log and handle your token
48- Log .d(" FCM" , " Current token: $token " )
49- }
5035 }
5136}
5237
Original file line number Diff line number Diff line change 11package com.cornellappdev.uplift.ui.components.general
22
3+ import androidx.compose.animation.animateContentSize
34import androidx.compose.animation.core.animateFloatAsState
45import androidx.compose.foundation.layout.Arrangement
56import androidx.compose.foundation.layout.Row
@@ -76,8 +77,9 @@ fun UpliftButton(
7677 ) {
7778 Row (
7879 verticalAlignment = Alignment .CenterVertically ,
79- horizontalArrangement = Arrangement .Center
80- ) {
80+ horizontalArrangement = Arrangement .Center ,
81+ modifier = Modifier .animateContentSize()
82+ ) {
8183 leadingIcon?.let {
8284 it()
8385 }
You can’t perform that action at this time.
0 commit comments