Small improvement

pull/187/head
M66B 4 years ago
parent 2cbbece8a4
commit 067d93ff1b

@ -1426,14 +1426,14 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
btnBatteryInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 39);
Helper.viewFAQ(v.getContext(), 39);
}
});
btnReformatInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 35);
Helper.viewFAQ(v.getContext(), 35);
}
});

@ -6290,8 +6290,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ibInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.viewFAQ(getContext(), 92);
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 92);
}
});

@ -416,8 +416,8 @@ public class FragmentAccount extends FragmentBase {
tvLeave.getPaint().setUnderlineText(true);
tvLeave.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.viewFAQ(getContext(), 134);
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 134);
}
});

@ -383,7 +383,7 @@ public class FragmentAnswer extends FragmentBase {
sb.setAction(R.string.title_info, new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 49);
Helper.viewFAQ(v.getContext(), 49);
}
});
sb.show();

@ -1731,7 +1731,7 @@ public class FragmentCompose extends FragmentBase {
snackbar.setAction(R.string.title_fix, new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 158);
Helper.viewFAQ(v.getContext(), 158);
}
});
snackbar.show();
@ -1779,7 +1779,7 @@ public class FragmentCompose extends FragmentBase {
snackbar.setAction(R.string.title_fix, new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 25);
Helper.viewFAQ(v.getContext(), 25);
}
});
snackbar.show();
@ -1969,7 +1969,7 @@ public class FragmentCompose extends FragmentBase {
snackbar.setAction(R.string.title_fix, new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 12);
Helper.viewFAQ(v.getContext(), 12);
}
});
snackbar.show();
@ -2147,7 +2147,7 @@ public class FragmentCompose extends FragmentBase {
snackbar.setAction(R.string.title_fix, new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 158);
Helper.viewFAQ(v.getContext(), 158);
}
});
snackbar.show();
@ -4218,7 +4218,7 @@ public class FragmentCompose extends FragmentBase {
sb.setAction(R.string.title_info, new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 49);
Helper.viewFAQ(v.getContext(), 49);
}
});
sb.show();
@ -5695,7 +5695,7 @@ public class FragmentCompose extends FragmentBase {
ibEncryption.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 12);
Helper.viewFAQ(v.getContext(), 12);
}
});

@ -89,7 +89,7 @@ public class FragmentDialogSearch extends FragmentDialogBase {
@Override
public void onClick(View v) {
imm.hideSoftInputFromWindow(etQuery.getWindowToken(), 0);
Helper.viewFAQ(getContext(), 13);
Helper.viewFAQ(v.getContext(), 13);
}
});

@ -173,8 +173,8 @@ public class FragmentFolder extends FragmentBase {
btnInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.viewFAQ(getContext(), 39);
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 39);
}
});

@ -65,7 +65,7 @@ public class FragmentLegend extends FragmentBase {
view.findViewById(R.id.ibInfoBackoff).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 123);
Helper.viewFAQ(v.getContext(), 123);
}
});
}

@ -3833,7 +3833,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
@Override
public void onClick(View v) {
snackbar.dismiss();
Helper.viewFAQ(getContext(), 147);
Helper.viewFAQ(v.getContext(), 147);
prefs.edit().putBoolean("third_party_notified", true).apply();
}
});
@ -5587,7 +5587,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
snackbar.setAction(R.string.title_fix, new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 12);
Helper.viewFAQ(v.getContext(), 12);
}
});
snackbar.show();
@ -7534,7 +7534,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
btnInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 104);
Helper.viewFAQ(v.getContext(), 104);
}
});

@ -142,7 +142,7 @@ public class FragmentOptionsEncryption extends FragmentBase implements SharedPre
ibInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(getContext(), 12);
Helper.viewFAQ(v.getContext(), 12);
}
});

@ -274,8 +274,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
tvExperimentsHint.setPaintFlags(tvExperimentsHint.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvExperimentsHint.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.viewFAQ(getContext(), 125);
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 125);
}
});

@ -252,8 +252,8 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
ibDisconnectBlacklist.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.viewFAQ(getContext(), 159);
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 159);
}
});

@ -159,8 +159,8 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
ibOptimizeInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.viewFAQ(getContext(), 39);
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 39);
}
});

@ -129,16 +129,16 @@ public class FragmentPro extends FragmentBase implements SharedPreferences.OnSha
tvPriceHint.setPaintFlags(tvPriceHint.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvPriceHint.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.viewFAQ(getContext(), 19);
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 19);
}
});
tvRestoreHint.setPaintFlags(tvRestoreHint.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvRestoreHint.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.viewFAQ(getContext(), 117);
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 117);
}
});

@ -222,8 +222,8 @@ public class FragmentSetup extends FragmentBase {
tvQuickNew.setPaintFlags(tvQuickNew.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvQuickNew.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.viewFAQ(getContext(), 112);
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 112);
}
});
@ -246,8 +246,8 @@ public class FragmentSetup extends FragmentBase {
tvIdentityWhat.setPaintFlags(tvIdentityWhat.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvIdentityWhat.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.viewFAQ(getContext(), 9);
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 9);
}
});
@ -270,16 +270,16 @@ public class FragmentSetup extends FragmentBase {
tvBatteryUsage.setPaintFlags(tvBatteryUsage.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvBatteryUsage.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.viewFAQ(getContext(), 39);
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 39);
}
});
tvSyncStopped.setPaintFlags(tvSyncStopped.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvSyncStopped.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.viewFAQ(getContext(), 16);
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 16);
}
});

Loading…
Cancel
Save