Skip to content

Commit 4d41a62

Browse files
Removed OnBackPress due to Error
1 parent f8deee0 commit 4d41a62

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

app/src/main/java/com/aaxena/takenotes/Landing.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ public class Landing extends AppCompatActivity {
8282
private AppUpdateManager mAppUpdateManager;
8383
private static final int RC_APP_UPDATE = 11;
8484
FirebaseAuth mAuth;
85-
private long pressedTime;
8685
private String hello;
8786

8887
@Override
@@ -554,14 +553,5 @@ protected void onPostExecute(File file) {
554553
finish();
555554
}
556555
}
557-
@Override
558-
public void onBackPressed() {
559-
if (pressedTime + 2000 > System.currentTimeMillis()) {
560-
super.onBackPressed();
561-
finish();
562-
} else {
563-
Toast.makeText(getBaseContext(), "Press back again to exit", Toast.LENGTH_SHORT).show();
564-
}
565-
pressedTime = System.currentTimeMillis();
566-
}
556+
567557
}

0 commit comments

Comments
 (0)