daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun getString(@StringRes resId: Int): String {
  2.     val context: Context? = SomeDependencyInjectionSystem()
  3.     return if (context == null) {
  4.       ""
  5.     } else {
  6.       context.getString(resId)
  7.     }
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top