diff --git a/app/src/main/java/com/sopt/now/compose/data/UserPreference.kt b/app/src/main/java/com/sopt/now/compose/data/UserPreference.kt index 4a3f5f3..d09c0b2 100644 --- a/app/src/main/java/com/sopt/now/compose/data/UserPreference.kt +++ b/app/src/main/java/com/sopt/now/compose/data/UserPreference.kt @@ -3,7 +3,7 @@ package com.sopt.now.compose.data import android.content.Context class UserPreference(context: Context) { - private val sharedPreferences = context.getSharedPreferences("userData", Context.MODE_PRIVATE) + private val sharedPreferences = context.applicationContext.getSharedPreferences("userData", Context.MODE_PRIVATE) // 사용자 아이디 저장 fun saveUserId(userId: String) {