Skip to content

Commit

Permalink
Documented 2 methods (uberspot#39)
Browse files Browse the repository at this point in the history
Documented the methods applyFullScreen() and onBackPressed in MainActivity.java
  • Loading branch information
shubham1701 authored and uberspot committed Jul 25, 2016
1 parent 6a2391f commit 26a2088
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/com/uberspot/a2048/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ public boolean onCreateOptionsMenu(Menu menu) {
// getMenuInflater().inflate(R.menu.main, menu);
return true;
}

/**
* Saves the full screen setting in the SharedPreferences
* @param isFullScreen
*/

private void saveFullScreen(boolean isFullScreen) {
// save in preferences
Expand Down Expand Up @@ -165,7 +170,13 @@ private void applyFullScreen(boolean isFullScreen) {
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
}


/**
* Prevents app from closing on pressing back button accidentally.
* mBackPressThreshold specifies the maximum delay (ms) between two consecutive backpress to
* quit the app.
*/

@Override
public void onBackPressed() {
long currentTime = System.currentTimeMillis();
Expand Down

0 comments on commit 26a2088

Please sign in to comment.