mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 15:40:59 +01:00
Added options button
This commit is contained in:
@@ -71,6 +71,7 @@ public class FragmentSetup extends FragmentBase {
|
||||
|
||||
private Button btnData;
|
||||
|
||||
private Button btnOptions;
|
||||
private Button btnInbox;
|
||||
|
||||
private int textColorPrimary;
|
||||
@@ -111,6 +112,7 @@ public class FragmentSetup extends FragmentBase {
|
||||
|
||||
btnData = view.findViewById(R.id.btnData);
|
||||
|
||||
btnOptions = view.findViewById(R.id.btnOptions);
|
||||
btnInbox = view.findViewById(R.id.btnInbox);
|
||||
|
||||
// Wire controls
|
||||
@@ -183,6 +185,15 @@ public class FragmentSetup extends FragmentBase {
|
||||
}
|
||||
});
|
||||
|
||||
btnOptions.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
|
||||
fragmentTransaction.replace(R.id.content_frame, new FragmentOptions()).addToBackStack("options");
|
||||
fragmentTransaction.commit();
|
||||
}
|
||||
});
|
||||
|
||||
btnInbox.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
Reference in New Issue
Block a user