TP-52122 | Addressed PR comment to include vararg & function renaming (#9068)
This commit is contained in:
@@ -14,13 +14,13 @@ import javax.inject.Inject
|
||||
|
||||
interface ResourceProvider {
|
||||
|
||||
fun getStringFromResId(@StringRes resId: Int, vararg formatArg: Any): String
|
||||
fun getString(@StringRes resId: Int, vararg formatArg: Any): String
|
||||
}
|
||||
|
||||
class ResourceProviderImpl @Inject constructor(@ApplicationContext val context: Context) :
|
||||
ResourceProvider {
|
||||
|
||||
override fun getStringFromResId(@StringRes resId: Int, vararg formatArg: Any): String {
|
||||
return context.getString(resId)
|
||||
override fun getString(@StringRes resId: Int, vararg formatArg: Any): String {
|
||||
return context.getString(resId, formatArg)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user