mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Added reformat info button
This commit is contained in:
@@ -1262,15 +1262,23 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
|
||||
LayoutInflater inflater = LayoutInflater.from(getContext());
|
||||
View dview = inflater.inflate(R.layout.dialog_first, null);
|
||||
Button btnInfo = dview.findViewById(R.id.btnInfo);
|
||||
Button btnBatteryInfo = dview.findViewById(R.id.btnBatteryInfo);
|
||||
Button btnReformatInfo = dview.findViewById(R.id.btnReformatInfo);
|
||||
|
||||
btnInfo.setOnClickListener(new View.OnClickListener() {
|
||||
btnBatteryInfo.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Helper.viewFAQ(getContext(), 39);
|
||||
}
|
||||
});
|
||||
|
||||
btnReformatInfo.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Helper.viewFAQ(getContext(), 35);
|
||||
}
|
||||
});
|
||||
|
||||
return new AlertDialog.Builder(getContext())
|
||||
.setView(dview)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
||||
Reference in New Issue
Block a user