Added reformat info button

This commit is contained in:
M66B
2020-04-20 10:05:15 +02:00
parent 1f036f5216
commit fcd68a05f1
2 changed files with 21 additions and 5 deletions

View File

@@ -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() {