ja acabei
This commit is contained in:
@@ -10,13 +10,13 @@
|
||||
/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java:80: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]
|
||||
String date = String.format("%02d/%02d/%04d", dayOfMonth, month + 1, year);
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java:188: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]
|
||||
/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java:187: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]
|
||||
String todayStr = String.format("%02d/%02d/%04d",
|
||||
^
|
||||
/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java:202: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]
|
||||
/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java:201: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]
|
||||
addSlot(slots, String.format("%02d:00", hour), bookedTimes);
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java:206: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]
|
||||
/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java:205: Warning: Implicitly using the default locale is a common source of bugs: Use String.format(Locale, ...) instead [DefaultLocale]
|
||||
addSlot(slots, String.format("%02d:30", hour), bookedTimes);
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -429,6 +429,9 @@
|
||||
/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java:36: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
|
||||
holder.textReason.setText("Motivo: " + (appointment.reason != null ? appointment.reason : "--"));
|
||||
~~~~~~~~~~
|
||||
/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java:50: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
|
||||
holder.textStatus.setText("Pendente");
|
||||
~~~~~~~~~~
|
||||
/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/home/HomeFragment.java:44: Warning: Do not concatenate text displayed with setText. Use resource string with placeholders. [SetTextI18n]
|
||||
binding.textGreeting.setText("Olá, " + firstName + "!");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -689,16 +692,19 @@
|
||||
/Users/230405/Desktop/papcuida/app/src/main/res/layout/fragment_sns24.xml:85: Warning: Hardcoded string "Hospital mais próximo", should use @string resource [HardcodedText]
|
||||
android:text="Hospital mais próximo"
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml:23: Warning: Hardcoded string "Tipo de Consulta", should use @string resource [HardcodedText]
|
||||
android:text="Tipo de Consulta"
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml:38: Warning: Hardcoded string "dd/MM/yyyy", should use @string resource [HardcodedText]
|
||||
/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml:28: Warning: Hardcoded string "Tipo de Consulta", should use @string resource [HardcodedText]
|
||||
android:text="Tipo de Consulta"
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml:37: Warning: Hardcoded string "Pendente", should use @string resource [HardcodedText]
|
||||
android:text="Pendente"
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml:56: Warning: Hardcoded string "dd/MM/yyyy", should use @string resource [HardcodedText]
|
||||
android:text="dd/MM/yyyy"
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml:45: Warning: Hardcoded string "HH:mm", should use @string resource [HardcodedText]
|
||||
/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml:63: Warning: Hardcoded string "HH:mm", should use @string resource [HardcodedText]
|
||||
android:text="HH:mm"
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml:53: Warning: Hardcoded string "Motivo: --", should use @string resource [HardcodedText]
|
||||
/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml:71: Warning: Hardcoded string "Motivo: --", should use @string resource [HardcodedText]
|
||||
android:text="Motivo: --"
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_medication.xml:37: Warning: Hardcoded string "Nome Medicamento", should use @string resource [HardcodedText]
|
||||
@@ -731,4 +737,4 @@
|
||||
There are quickfixes to automatically extract this hardcoded string into a
|
||||
resource lookup.
|
||||
|
||||
0 errors, 153 warnings
|
||||
0 errors, 155 warnings
|
||||
|
||||
Reference in New Issue
Block a user