diff --git a/app/src/main/java/com/airlim/garagetrois/MainActivity.java b/app/src/main/java/com/airlim/garagetrois/MainActivity.java index 45901bf..39c6527 100644 --- a/app/src/main/java/com/airlim/garagetrois/MainActivity.java +++ b/app/src/main/java/com/airlim/garagetrois/MainActivity.java @@ -47,7 +47,12 @@ public class MainActivity extends Activity implements NumberPicker.OnValueChange volatile String geofence = "false"; GPSTracker gps; public void onBackPressed() { - finish(); + if(textView.getText() == "Log in by entering your PIN") { + finish(); + } + else { + textView.setText("Log in by entering your PIN"); + } } @Override protected void onCreate(Bundle savedInstanceState) {