Created
April 13, 2015 02:12
-
-
Save cuber5566/4db78fa9b04d40a93da2 to your computer and use it in GitHub Desktop.
This file contains 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
private OnBackKeyClickListener onBackKeyClickListener; | |
public interface OnBackKeyClickListener { | |
public void onBackKeyClick(); | |
} | |
public void setOnBackKeyClickListener(OnBackKeyClickListener onBackKeyClickListener) { | |
this.onBackKeyClickListener = onBackKeyClickListener; | |
} | |
@Override | |
public void onBackPressed() { | |
if (onBackKeyClickListener != null) { | |
onBackKeyClickListener.onBackKeyClick(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment