We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9302e7 commit 8b509b6Copy full SHA for 8b509b6
1 file changed
source-code/app/src/main/java/org/buildmlearn/toolkit/activity/HomeActivity.java
@@ -210,8 +210,9 @@ public void onBackPressed() {
210
if(backPressedOnce){
211
finish();
212
}
213
+ if(!backPressedOnce)
214
+ Toast.makeText(this, "Tap back once more to exit.", Toast.LENGTH_SHORT).show();
215
backPressedOnce=true;
- Toast.makeText(this, "Tap back once more to exit.", Toast.LENGTH_SHORT).show();
216
new Handler().postDelayed(new Runnable()
217
{
218
@Override
0 commit comments