Always Remove super.onBackPressed

This is a reminder for me and for every Android developer. If you want to override the default behaviour when user pressed the back button, always remove the super.onBackPressed call.

@Override
public void onBackPressed() {
doSomething();
finish();
// super.onBackPressed();
}
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.