Skip to content

Commit

Permalink
Ready v0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarRomaCalvo committed Mar 30, 2023
1 parent 66b2a0c commit e72406d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 156 deletions.
3 changes: 0 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
<activity
android:name=".PantallaInicioActivity"
android:exported="false" />
<activity
android:name=".ActivityUltimaCarrera"
android:exported="false" />
<activity
android:name=".MainActivity"
android:exported="true">
Expand Down
90 changes: 0 additions & 90 deletions app/src/main/java/com/example/f1/ActivityUltimaCarrera.java

This file was deleted.

10 changes: 5 additions & 5 deletions app/src/main/java/com/example/f1/PantallaInicioActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;
Expand All @@ -23,6 +24,7 @@ public class PantallaInicioActivity extends AppCompatActivity {
private static final String API_BASE_URL = "https://ergast.com";
private IF1ApiService service;
private FirebaseAuth mFirebaseAuth;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand Down Expand Up @@ -67,14 +69,12 @@ private IF1ApiService crearService(){
return retrofit.create(IF1ApiService.class);
}

public void logOut(View v) {

public void logOut() {
mFirebaseAuth.signOut();
Toast.makeText(this, R.string.signed_out, Toast.LENGTH_SHORT).show();
Intent myIntent = new Intent(this, MainActivity.class);
startActivity(myIntent);
}
public void abrirUltimaCarrera (View view){
Intent myIntent = new Intent(this, ActivityUltimaCarrera.class);
startActivity(myIntent);
}

}
35 changes: 0 additions & 35 deletions app/src/main/java/com/example/f1/modelo/Piloto.java

This file was deleted.

3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_pantalla_inicio.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".PantallaInicioActivity">
tools:context=".PantallaInicioActivity"
tools:menu="@menu/menu_toolbar">

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
Expand Down
20 changes: 0 additions & 20 deletions app/src/main/res/layout/activity_ultima_carrera.xml

This file was deleted.

3 changes: 1 addition & 2 deletions app/src/main/res/menu/menu_toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
android:icon="@drawable/baseline_logout_24"
android:iconTint="@color/blanco_amarillento"
android:title="LogOut"
app:showAsAction="ifRoom"
android:onClick="LogOut"/>
app:showAsAction="ifRoom" />
</menu>

0 comments on commit e72406d

Please sign in to comment.