Added files of Alex and fixed the code.
This commit is contained in:
parent
c3d1f605d7
commit
ccd5a1d53b
872 changed files with 15722 additions and 26674 deletions
70
UI/app/src/main/java/com/example/capstone/Settings.java
Normal file
70
UI/app/src/main/java/com/example/capstone/Settings.java
Normal file
|
@ -0,0 +1,70 @@
|
|||
package com.example.capstone;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
|
||||
import com.google.firebase.auth.FirebaseAuth;
|
||||
|
||||
public class Settings extends AppCompatActivity {
|
||||
FirebaseAuth fAuth;
|
||||
private Button dri, enr, sup, pas, abu;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_settings);
|
||||
fAuth = FirebaseAuth.getInstance();
|
||||
|
||||
dri = findViewById(R.id.managedrivers);
|
||||
enr = findViewById(R.id.enrollment);
|
||||
sup = findViewById(R.id.support);
|
||||
pas = findViewById(R.id.password);
|
||||
abu = findViewById(R.id.aboutus);
|
||||
|
||||
dri.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
startActivity(new Intent(getApplicationContext(), Drivers.class));
|
||||
}
|
||||
});
|
||||
|
||||
enr.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
startActivity(new Intent(getApplicationContext(), Enrollment.class));
|
||||
}
|
||||
});
|
||||
|
||||
sup.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
startActivity(new Intent(getApplicationContext(), Support.class));
|
||||
}
|
||||
});
|
||||
|
||||
pas.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
startActivity(new Intent(getApplicationContext(), Password.class));
|
||||
}
|
||||
});
|
||||
|
||||
abu.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
startActivity(new Intent(getApplicationContext(), About.class));
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
public void logout(View view){
|
||||
fAuth.signOut();
|
||||
startActivity(new Intent(getApplicationContext(), Login.class));
|
||||
finish();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue