Skip to content

Commit

Permalink
Update MainActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
jamenlang committed Sep 19, 2015
1 parent f1fba95 commit f532d2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/src/main/java/com/airlim/garagetrois/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f532d2c

Please sign in to comment.