mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Refactoring
This commit is contained in:
parent
7a155346de
commit
23f6ca77ba
5 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue