Commit fcc7b36d authored by Edward Wang's avatar Edward Wang

MainActivity: make the back button work properly

parent 3f3fa172
......@@ -264,6 +264,16 @@ public class MainActivity extends SherlockFragmentActivity {
reloadPreferences();
}
@Override
public void onBackPressed() {
if(mMenu.isBehindShowing()) {
/* Close the menu first */
mMenu.showAbove();
} else {
super.onBackPressed();
}
}
/** Create menu from XML
*/
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment