mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 15:46:34 +02:00
Added hint text
This commit is contained in:
@@ -22,6 +22,7 @@ package eu.faircode.email;
|
||||
import android.app.Dialog;
|
||||
import android.app.TimePickerDialog;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
@@ -48,6 +49,7 @@ import androidx.fragment.app.DialogFragment;
|
||||
import androidx.lifecycle.Lifecycle;
|
||||
import androidx.lifecycle.LifecycleOwner;
|
||||
import androidx.lifecycle.Observer;
|
||||
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
|
||||
import androidx.preference.PreferenceManager;
|
||||
import androidx.recyclerview.widget.DiffUtil;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
@@ -72,6 +74,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
private TextView tvScheduleStart;
|
||||
private TextView tvScheduleEnd;
|
||||
private CheckBox[] cbDay;
|
||||
private TextView tvScheduleIgnore;
|
||||
private ImageButton ibSchedules;
|
||||
|
||||
private SwitchCompat swQuickSyncImap;
|
||||
@@ -146,6 +149,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
view.findViewById(R.id.cbDay5),
|
||||
view.findViewById(R.id.cbDay6)
|
||||
};
|
||||
tvScheduleIgnore = view.findViewById(R.id.tvScheduleIgnore);
|
||||
ibSchedules = view.findViewById(R.id.ibSchedules);
|
||||
|
||||
swQuickSyncImap = view.findViewById(R.id.swQuickSyncImap);
|
||||
@@ -278,6 +282,14 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
||||
});
|
||||
}
|
||||
|
||||
tvScheduleIgnore.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(v.getContext());
|
||||
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_VIEW_ACCOUNTS));
|
||||
}
|
||||
});
|
||||
|
||||
ibSchedules.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
Reference in New Issue
Block a user