mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Added settings help button
This commit is contained in:
@@ -58,6 +58,7 @@ import androidx.preference.PreferenceManager;
|
||||
import java.util.List;
|
||||
|
||||
public class FragmentOptionsNotifications extends FragmentBase implements SharedPreferences.OnSharedPreferenceChangeListener {
|
||||
private ImageButton ibHelp;
|
||||
private Button btnManage;
|
||||
private ImageButton ibClear;
|
||||
private Button btnManageDefault;
|
||||
@@ -138,6 +139,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
|
||||
|
||||
// Get controls
|
||||
|
||||
ibHelp = view.findViewById(R.id.ibHelp);
|
||||
btnManage = view.findViewById(R.id.btnManage);
|
||||
ibClear = view.findViewById(R.id.ibClear);
|
||||
btnManageDefault = view.findViewById(R.id.btnManageDefault);
|
||||
@@ -200,6 +202,13 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
|
||||
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||
boolean debug = prefs.getBoolean("debug", false);
|
||||
|
||||
ibHelp.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Helper.view(v.getContext(), Helper.getSupportUri(v.getContext()), false);
|
||||
}
|
||||
});
|
||||
|
||||
final Intent manage = new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS)
|
||||
.putExtra("app_package", getContext().getPackageName())
|
||||
.putExtra("app_uid", getContext().getApplicationInfo().uid)
|
||||
|
||||
Reference in New Issue
Block a user