Created
April 29, 2018 08:23
-
-
Save lomza/ebf5cf6a8c8fcf24235b0ce0bb8c7292 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_main) | |
if (!AppPreferences.firstRun) { | |
AppPreferences.firstRun = true | |
Log.d("SpinKotlin", "The value of our pref is: ${AppPreferences.firstRun}") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment