Check graph contacts

pull/213/head
M66B 2 years ago
parent ef9bed3cd3
commit cdd5049fbb

@ -1405,14 +1405,16 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
EntityLog.log(context, "Graph/contacts count=" + count);
NumberFormat NF = NumberFormat.getInstance();
String msg = getString(R.string.title_setup_import_graph_result, NF.format(count));
String msg = getString(R.string.title_setup_import_graph_new, NF.format(count));
final Snackbar snackbar = Snackbar.make(view, msg, Snackbar.LENGTH_INDEFINITE)
.setGestureInsetBottomIgnored(true);
snackbar.setAction(android.R.string.ok, new View.OnClickListener() {
snackbar.setAction(R.string.title_check, new View.OnClickListener() {
@Override
public void onClick(View view) {
public void onClick(View v) {
snackbar.dismiss();
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(v.getContext());
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_MANAGE_LOCAL_CONTACTS));
}
});
snackbar.show();

@ -262,7 +262,7 @@
<string name="title_setup_permission_why">Which permissions are needed and why?</string>
<string name="title_setup_permission_import_contacts">How can I import contacts?</string>
<string name="title_setup_import_graph_contact">Outlook contacts</string>
<string name="title_setup_import_graph_result">New contacts: %1$s</string>
<string name="title_setup_import_graph_new">New contacts: %1$s</string>
<string name="title_setup_doze">Disable battery optimizations</string>
<string name="title_setup_doze_remark">To send and receive email reliably in the background</string>
<string name="title_setup_doze_explanation">Battery optimizations should be disabled for the app to ensure reliable sending and receiving of messages in the background</string>

Loading…
Cancel
Save