Refactoring

This commit is contained in:
M66B 2023-12-26 12:04:41 +01:00
parent 7a155346de
commit 23f6ca77ba
5 changed files with 6 additions and 6 deletions

View File

@ -418,7 +418,7 @@ public class DeepL {
ibInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 167, true);
Helper.viewFAQ(v.getContext(), 167);
}
});

View File

@ -224,7 +224,7 @@ public class FragmentDialogJunk extends FragmentDialogBase {
ibInfoBlocklist.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 168, true);
Helper.viewFAQ(v.getContext(), 168);
}
});

View File

@ -346,7 +346,7 @@ public class FragmentFolders extends FragmentBase {
public void onClick(View v) {
Boolean pop = (Boolean) v.getTag();
if (pop != null && pop) {
Helper.viewFAQ(v.getContext(), 170, true);
Helper.viewFAQ(v.getContext(), 170);
//ToastEx.makeText(v.getContext(), R.string.title_pop_folders, Toast.LENGTH_LONG).show();
return;
}

View File

@ -601,7 +601,7 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
tvImportContacts.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 172, true);
Helper.viewFAQ(v.getContext(), 172);
}
});
@ -656,7 +656,7 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
tvDozeWhy.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 175, true);
Helper.viewFAQ(v.getContext(), 175);
}
});

View File

@ -1275,7 +1275,7 @@ public class Helper {
viewFAQ(context, question, true /* Google translate */);
}
static void viewFAQ(Context context, int question, boolean english) {
private static void viewFAQ(Context context, int question, boolean english) {
// Redirection is done to prevent text editors from opening the link
// https://email.faircode.eu/faq -> https://github.com/M66B/FairEmail/blob/master/FAQ.md
// https://email.faircode.eu/docs -> https://github.com/M66B/FairEmail/tree/master/docs