ja acabei
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -25,6 +25,9 @@ public final class ItemAppointmentBinding implements ViewBinding {
|
|||||||
@NonNull
|
@NonNull
|
||||||
public final TextView textReason;
|
public final TextView textReason;
|
||||||
|
|
||||||
|
@NonNull
|
||||||
|
public final TextView textStatus;
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
public final TextView textTime;
|
public final TextView textTime;
|
||||||
|
|
||||||
@@ -32,10 +35,12 @@ public final class ItemAppointmentBinding implements ViewBinding {
|
|||||||
public final TextView textType;
|
public final TextView textType;
|
||||||
|
|
||||||
private ItemAppointmentBinding(@NonNull MaterialCardView rootView, @NonNull TextView textDate,
|
private ItemAppointmentBinding(@NonNull MaterialCardView rootView, @NonNull TextView textDate,
|
||||||
@NonNull TextView textReason, @NonNull TextView textTime, @NonNull TextView textType) {
|
@NonNull TextView textReason, @NonNull TextView textStatus, @NonNull TextView textTime,
|
||||||
|
@NonNull TextView textType) {
|
||||||
this.rootView = rootView;
|
this.rootView = rootView;
|
||||||
this.textDate = textDate;
|
this.textDate = textDate;
|
||||||
this.textReason = textReason;
|
this.textReason = textReason;
|
||||||
|
this.textStatus = textStatus;
|
||||||
this.textTime = textTime;
|
this.textTime = textTime;
|
||||||
this.textType = textType;
|
this.textType = textType;
|
||||||
}
|
}
|
||||||
@@ -79,6 +84,12 @@ public final class ItemAppointmentBinding implements ViewBinding {
|
|||||||
break missingId;
|
break missingId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
id = R.id.text_status;
|
||||||
|
TextView textStatus = ViewBindings.findChildViewById(rootView, id);
|
||||||
|
if (textStatus == null) {
|
||||||
|
break missingId;
|
||||||
|
}
|
||||||
|
|
||||||
id = R.id.text_time;
|
id = R.id.text_time;
|
||||||
TextView textTime = ViewBindings.findChildViewById(rootView, id);
|
TextView textTime = ViewBindings.findChildViewById(rootView, id);
|
||||||
if (textTime == null) {
|
if (textTime == null) {
|
||||||
@@ -91,8 +102,8 @@ public final class ItemAppointmentBinding implements ViewBinding {
|
|||||||
break missingId;
|
break missingId;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new ItemAppointmentBinding((MaterialCardView) rootView, textDate, textReason, textTime,
|
return new ItemAppointmentBinding((MaterialCardView) rootView, textDate, textReason,
|
||||||
textType);
|
textStatus, textTime, textType);
|
||||||
}
|
}
|
||||||
String missingId = rootView.getResources().getResourceName(id);
|
String missingId = rootView.getResources().getResourceName(id);
|
||||||
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
|
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
|
||||||
|
|||||||
BIN
app/build/intermediates/apk/debug/app-debug.apk
Normal file
BIN
app/build/intermediates/apk/debug/app-debug.apk
Normal file
Binary file not shown.
@@ -1 +1 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="item_appointment" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/item_appointment.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="com.google.android.material.card.MaterialCardView"><Targets><Target tag="layout/item_appointment_0" view="com.google.android.material.card.MaterialCardView"><Expressions/><location startLine="1" startOffset="0" endLine="57" endOffset="51"/></Target><Target id="@+id/text_type" view="TextView"><Expressions/><location startLine="18" startOffset="8" endLine="25" endOffset="53"/></Target><Target id="@+id/text_date" view="TextView"><Expressions/><location startLine="33" startOffset="12" endLine="38" endOffset="48"/></Target><Target id="@+id/text_time" view="TextView"><Expressions/><location startLine="40" startOffset="12" endLine="45" endOffset="43"/></Target><Target id="@+id/text_reason" view="TextView"><Expressions/><location startLine="48" startOffset="8" endLine="55" endOffset="43"/></Target></Targets></Layout>
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="item_appointment" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/item_appointment.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="com.google.android.material.card.MaterialCardView"><Targets><Target tag="layout/item_appointment_0" view="com.google.android.material.card.MaterialCardView"><Expressions/><location startLine="1" startOffset="0" endLine="75" endOffset="51"/></Target><Target id="@+id/text_type" view="TextView"><Expressions/><location startLine="22" startOffset="12" endLine="30" endOffset="57"/></Target><Target id="@+id/text_status" view="TextView"><Expressions/><location startLine="32" startOffset="12" endLine="42" endOffset="38"/></Target><Target id="@+id/text_date" view="TextView"><Expressions/><location startLine="51" startOffset="12" endLine="56" endOffset="48"/></Target><Target id="@+id/text_time" view="TextView"><Expressions/><location startLine="58" startOffset="12" endLine="63" endOffset="43"/></Target><Target id="@+id/text_reason" view="TextView"><Expressions/><location startLine="66" startOffset="8" endLine="73" endOffset="43"/></Target></Targets></Layout>
|
||||||
@@ -1 +1 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="item_appointment" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/item_appointment.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="com.google.android.material.card.MaterialCardView"><Targets><Target tag="layout/item_appointment_0" view="com.google.android.material.card.MaterialCardView"><Expressions/><location startLine="1" startOffset="0" endLine="57" endOffset="51"/></Target><Target id="@+id/text_type" view="TextView"><Expressions/><location startLine="18" startOffset="8" endLine="25" endOffset="53"/></Target><Target id="@+id/text_date" view="TextView"><Expressions/><location startLine="33" startOffset="12" endLine="38" endOffset="48"/></Target><Target id="@+id/text_time" view="TextView"><Expressions/><location startLine="40" startOffset="12" endLine="45" endOffset="43"/></Target><Target id="@+id/text_reason" view="TextView"><Expressions/><location startLine="48" startOffset="8" endLine="55" endOffset="43"/></Target></Targets></Layout>
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="item_appointment" modulePackage="com.example.cuida" filePath="app/src/main/res/layout/item_appointment.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="com.google.android.material.card.MaterialCardView"><Targets><Target tag="layout/item_appointment_0" view="com.google.android.material.card.MaterialCardView"><Expressions/><location startLine="1" startOffset="0" endLine="75" endOffset="51"/></Target><Target id="@+id/text_type" view="TextView"><Expressions/><location startLine="22" startOffset="12" endLine="30" endOffset="57"/></Target><Target id="@+id/text_status" view="TextView"><Expressions/><location startLine="32" startOffset="12" endLine="42" endOffset="38"/></Target><Target id="@+id/text_date" view="TextView"><Expressions/><location startLine="51" startOffset="12" endLine="56" endOffset="48"/></Target><Target id="@+id/text_time" view="TextView"><Expressions/><location startLine="58" startOffset="12" endLine="63" endOffset="43"/></Target><Target id="@+id/text_reason" view="TextView"><Expressions/><location startLine="66" startOffset="8" endLine="73" endOffset="43"/></Target></Targets></Layout>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,76 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="8dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:foreground="?android:attr/selectableItemBackground"
|
||||||
|
app:cardCornerRadius="16dp"
|
||||||
|
app:cardElevation="4dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="16dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_type"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="Tipo de Consulta"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textColor="@color/primary_color"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_status"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Pendente"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:padding="4dp"
|
||||||
|
android:background="#FFE0B2"
|
||||||
|
android:textColor="#F57C00"
|
||||||
|
android:gravity="end"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:layout_marginTop="8dp">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_date"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="dd/MM/yyyy"
|
||||||
|
android:layout_marginEnd="16dp"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_time"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="HH:mm"
|
||||||
|
android:textStyle="italic"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_reason"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Motivo: --"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textColor="@color/text_secondary"
|
||||||
|
android:layout_marginTop="8dp"/>
|
||||||
|
</LinearLayout>
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="8dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:foreground="?android:attr/selectableItemBackground"
|
||||||
|
app:cardCornerRadius="16dp"
|
||||||
|
app:cardElevation="4dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="16dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_type"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="Tipo de Consulta"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textColor="@color/primary_color"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_status"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Pendente"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:padding="4dp"
|
||||||
|
android:background="#FFE0B2"
|
||||||
|
android:textColor="#F57C00"
|
||||||
|
android:gravity="end"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:layout_marginTop="8dp">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_date"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="dd/MM/yyyy"
|
||||||
|
android:layout_marginEnd="16dp"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_time"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="HH:mm"
|
||||||
|
android:textStyle="italic"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_reason"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Motivo: --"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textColor="@color/text_secondary"
|
||||||
|
android:layout_marginTop="8dp"/>
|
||||||
|
</LinearLayout>
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#Wed Apr 22 12:41:56 WEST 2026
|
#Thu Apr 23 10:00:31 WEST 2026
|
||||||
base.0=/Users/230405/Desktop/papcuida/app/build/intermediates/dex/debug/mergeExtDexDebug/classes.dex
|
base.0=/Users/230405/Desktop/papcuida/app/build/intermediates/dex/debug/mergeExtDexDebug/classes.dex
|
||||||
base.1=/Users/230405/Desktop/papcuida/app/build/intermediates/dex/debug/mergeProjectDexDebug/0/classes.dex
|
base.1=/Users/230405/Desktop/papcuida/app/build/intermediates/dex/debug/mergeProjectDexDebug/0/classes.dex
|
||||||
base.10=/Users/230405/Desktop/papcuida/app/build/intermediates/global_synthetics_dex/debug/generateDebugGlobalSynthetics/classes.dex
|
base.10=/Users/230405/Desktop/papcuida/app/build/intermediates/global_synthetics_dex/debug/generateDebugGlobalSynthetics/classes.dex
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,76 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="8dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:foreground="?android:attr/selectableItemBackground"
|
||||||
|
app:cardCornerRadius="16dp"
|
||||||
|
app:cardElevation="4dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="16dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_type"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="Tipo de Consulta"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textColor="@color/primary_color"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_status"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Pendente"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:padding="4dp"
|
||||||
|
android:background="#FFE0B2"
|
||||||
|
android:textColor="#F57C00"
|
||||||
|
android:gravity="end"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:layout_marginTop="8dp">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_date"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="dd/MM/yyyy"
|
||||||
|
android:layout_marginEnd="16dp"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_time"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="HH:mm"
|
||||||
|
android:textStyle="italic"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_reason"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Motivo: --"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textColor="@color/text_secondary"
|
||||||
|
android:layout_marginTop="8dp"/>
|
||||||
|
</LinearLayout>
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="8dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:foreground="?android:attr/selectableItemBackground"
|
||||||
|
app:cardCornerRadius="16dp"
|
||||||
|
app:cardElevation="4dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="16dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_type"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="Tipo de Consulta"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textColor="@color/primary_color"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_status"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Pendente"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:padding="4dp"
|
||||||
|
android:background="#FFE0B2"
|
||||||
|
android:textColor="#F57C00"
|
||||||
|
android:gravity="end"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:layout_marginTop="8dp">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_date"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="dd/MM/yyyy"
|
||||||
|
android:layout_marginEnd="16dp"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_time"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="HH:mm"
|
||||||
|
android:textStyle="italic"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_reason"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Motivo: --"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textColor="@color/text_secondary"
|
||||||
|
android:layout_marginTop="8dp"/>
|
||||||
|
</LinearLayout>
|
||||||
|
</com.google.android.material.card.MaterialCardView>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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]
|
/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);
|
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",
|
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);
|
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);
|
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]
|
/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 : "--"));
|
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]
|
/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 + "!");
|
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]
|
/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"
|
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]
|
/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"
|
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: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"
|
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"
|
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: --"
|
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]
|
/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
|
There are quickfixes to automatically extract this hardcoded string into a
|
||||||
resource lookup.
|
resource lookup.
|
||||||
|
|
||||||
0 errors, 153 warnings
|
0 errors, 155 warnings
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,110 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<incidents format="6" by="lint 9.2.0" type="partial_results">
|
||||||
|
<map id="NotificationPermission">
|
||||||
|
<entry
|
||||||
|
name="source"
|
||||||
|
boolean="true"/>
|
||||||
|
</map>
|
||||||
|
<map id="ScheduleExactAlarm">
|
||||||
|
<entry
|
||||||
|
name="ChecksExactAlarmPermission"
|
||||||
|
boolean="true"/>
|
||||||
|
</map>
|
||||||
|
<map id="UnsafeImplicitIntentLaunch">
|
||||||
|
<map id="actionsSent">
|
||||||
|
<map id="android.intent.action.DIAL (used to start an activity)">
|
||||||
|
<location id="0"
|
||||||
|
file="${:app*debug*MAIN*sourceProvider*0*javaDir*0}/com/example/cuida/ui/sns24/Sns24Fragment.java"
|
||||||
|
line="32"
|
||||||
|
column="29"
|
||||||
|
startOffset="949"
|
||||||
|
endLine="32"
|
||||||
|
endColumn="59"
|
||||||
|
endOffset="979"/>
|
||||||
|
</map>
|
||||||
|
</map>
|
||||||
|
</map>
|
||||||
|
<map id="UnsafeIntentLaunch">
|
||||||
|
<map id="unprotected">
|
||||||
|
<entry
|
||||||
|
name="com.example.cuida.MainActivity"
|
||||||
|
boolean="true"/>
|
||||||
|
<entry
|
||||||
|
name="com.example.cuida.ui.auth.LoginActivity"
|
||||||
|
boolean="true"/>
|
||||||
|
<entry
|
||||||
|
name="com.example.cuida.ui.auth.ResetPasswordActivity"
|
||||||
|
boolean="true"/>
|
||||||
|
</map>
|
||||||
|
</map>
|
||||||
|
<map id="UnusedResources">
|
||||||
|
<location id="R.color.primary_light_color"
|
||||||
|
file="${:app*debug*MAIN*sourceProvider*0*resDir*0}/values/colors.xml"
|
||||||
|
line="5"
|
||||||
|
column="12"
|
||||||
|
startOffset="169"
|
||||||
|
endLine="5"
|
||||||
|
endColumn="38"
|
||||||
|
endOffset="195"/>
|
||||||
|
<location id="R.color.purple_200"
|
||||||
|
file="${:app*debug*MAIN*sourceProvider*0*resDir*0}/values/colors.xml"
|
||||||
|
line="18"
|
||||||
|
column="12"
|
||||||
|
startOffset="741"
|
||||||
|
endLine="18"
|
||||||
|
endColumn="29"
|
||||||
|
endOffset="758"/>
|
||||||
|
<location id="R.color.purple_500"
|
||||||
|
file="${:app*debug*MAIN*sourceProvider*0*resDir*0}/values/colors.xml"
|
||||||
|
line="19"
|
||||||
|
column="12"
|
||||||
|
startOffset="786"
|
||||||
|
endLine="19"
|
||||||
|
endColumn="29"
|
||||||
|
endOffset="803"/>
|
||||||
|
<location id="R.color.purple_700"
|
||||||
|
file="${:app*debug*MAIN*sourceProvider*0*resDir*0}/values/colors.xml"
|
||||||
|
line="20"
|
||||||
|
column="12"
|
||||||
|
startOffset="831"
|
||||||
|
endLine="20"
|
||||||
|
endColumn="29"
|
||||||
|
endOffset="848"/>
|
||||||
|
<location id="R.color.teal_200"
|
||||||
|
file="${:app*debug*MAIN*sourceProvider*0*resDir*0}/values/colors.xml"
|
||||||
|
line="21"
|
||||||
|
column="12"
|
||||||
|
startOffset="876"
|
||||||
|
endLine="21"
|
||||||
|
endColumn="27"
|
||||||
|
endOffset="891"/>
|
||||||
|
<location id="R.drawable.bg_search_results"
|
||||||
|
file="${:app*debug*MAIN*sourceProvider*0*resDir*0}/drawable/bg_search_results.xml"
|
||||||
|
line="2"
|
||||||
|
column="1"
|
||||||
|
startOffset="39"
|
||||||
|
endLine="6"
|
||||||
|
endColumn="9"
|
||||||
|
endOffset="248"/>
|
||||||
|
<location id="R.drawable.ic_launcher"
|
||||||
|
file="${:app*debug*MAIN*sourceProvider*0*resDir*0}/drawable/ic_launcher.xml"
|
||||||
|
line="1"
|
||||||
|
column="1"
|
||||||
|
startOffset="0"
|
||||||
|
endLine="12"
|
||||||
|
endColumn="10"
|
||||||
|
endOffset="410"/>
|
||||||
|
<location id="R.drawable.ic_launcher_round"
|
||||||
|
file="${:app*debug*MAIN*sourceProvider*0*resDir*0}/drawable/ic_launcher_round.xml"
|
||||||
|
line="1"
|
||||||
|
column="1"
|
||||||
|
startOffset="0"
|
||||||
|
endLine="12"
|
||||||
|
endColumn="10"
|
||||||
|
endOffset="441"/>
|
||||||
|
<entry
|
||||||
|
name="model"
|
||||||
|
string="attr[colorControlNormal(R),colorPrimaryVariant(R)],color[background_color(U),primary_color(U),surface_color(U),secondary_color(U),text_secondary(U),black(U),text_primary(U),error_color(U),teal_700(U),primary_light_color(D),primary_dark_color(U),secondary_dark_color(U),purple_200(D),purple_500(D),purple_700(D),teal_200(D),white(U)],drawable[ic_launcher_final(U),bg_search_results(D),btn_outline_error(U),btn_outline_primary(U),ic_launcher(D),ic_logo(U),ic_launcher_round(D),ic_logo_scaled(U),ic_placeholder(U)],id[email_edit_text(D),reset_button(D),back_to_login(D),password_edit_text(D),checkbox_remember_me(D),login_button(D),biometric_button(D),forgot_password_link(D),register_link(D),nav_host_fragment(U),nav_view(U),name_edit_text(D),age_edit_text(D),utente_edit_text(D),gender_auto_complete(D),register_button(D),login_link(D),new_password_edit_text(D),confirm_new_password_edit_text(D),save_new_password_button(D),layout_med_name(D),edit_med_name(U),recycler_search_results(U),btn_add_time(U),chip_group_times(U),radio_group_route(U),radio_oral(U),radio_topical(U),radio_inhalatory(U),edit_med_notes(U),new_password(U),button_cancel_password(U),button_save_password(U),edit_profile_image(U),button_change_photo(U),edit_name(U),edit_age(U),edit_utente(U),edit_email(U),button_change_password(U),button_cancel(U),button_save(U),recycler_appointments_future(D),recycler_appointments_past(D),image_profile_home(U),text_greeting(D),card_next_medication(U),next_med_name(D),next_med_time(D),button_book_appointment(D),text_title(U),recycler_medication(D),text_empty_medications(D),fab_add_medication(D),profile_image(U),profile_name(D),profile_email(D),profile_age(D),profile_utente(D),button_edit_profile(D),button_logout(D),datePicker(U),recycler_time_slots(U),spinner_doctor(U),edit_reason(U),btn_confirm_appointment(U),button_call_sns(D),input_symptoms(D),button_ai_triage(D),text_ai_result(D),button_find_hospital(D),text_type(U),text_status(U),text_date(U),text_time(U),text_reason(U),text_pill_name(U),text_med_name(U),text_med_dosage(U),text_med_notes(U),text_med_time(U),checkbox_taken(U),btn_time_slot(U),navigation_home(U),navigation_appointments(U),navigation_medication(U),navigation_sns24(U),navigation_profile(U),mobile_navigation(D),action_home_to_schedule_appointment(R),navigation_schedule_appointment(U),action_appointments_to_schedule(R)],layout[activity_forgot_password(U),activity_login(U),activity_main(U),activity_register(U),activity_reset_password(U),dialog_add_medication(U),dialog_change_password(U),dialog_edit_profile(U),fragment_appointments(U),fragment_home(U),fragment_medication(U),fragment_profile(U),fragment_schedule_appointment(U),fragment_sns24(U),item_appointment(U),item_comprimido_search(U),item_medication(U),item_time_slot(U)],menu[bottom_nav_menu(U)],navigation[mobile_navigation(U)],string[app_name(U),forgot_password(U),email_hint(U),login_title(U),password_hint(U),login_button(U),no_account(U),register_title(U),name_hint(U),age_hint(U),register_button(U),already_account(U),title_appointments(U),title_medication(U),title_sns24(U),title_home(U),title_profile(U)],style[Theme_Cuida(U),Widget_MaterialComponents_TextInputLayout_OutlinedBox(R),Widget_MaterialComponents_Button_TextButton(R),Widget_MaterialComponents_TextInputLayout_OutlinedBox_ExposedDropdownMenu(R),ShapeAppearanceOverlay_App_CornerSize50Percent(U),Widget_MaterialComponents_Button_OutlinedButton(R),Theme_MaterialComponents_Light_NoActionBar(R),Widget_Cuida_Button(U),Widget_Cuida_CardView(U),Widget_MaterialComponents_Button(R),Widget_MaterialComponents_CardView(R)],xml[data_extraction_rules(U),backup_rules(U),file_paths(U)];13^18^1a,1a^18,1b^0,78^2^18^8d^3^8e,79^2^8c^18^4^8f^3^9e^8e^90^91^9f^8d^5^92^6^93,7a^26^8b^8a,7b^2^8c^18^4^93^3^9e^94^95^a0^8e^90^96^97^6^8f^5,7c^2^18^3,7d^9e^7^9f,7e^9f,7f^1b^a1^9f^a2,80^98^3,81^1b^a1^3^48^4a,82^99^3^4e^6,83^2^1b^a1^4^8^6^5^9^a2,84^7^a0^9e,85^9a^3^a^9e,86^3^6,87^3,88^5^3^7,89^a2,8a^9b^98^99^9a^9c,8b^6f^9b^81^76^98^80^99^82^9a^85^9c^83^84,9d^a3^3^c^12^5^d^1^a4^a5,a4^a6,a5^a7^4;;;"/>
|
||||||
|
</map>
|
||||||
|
|
||||||
|
</incidents>
|
||||||
Binary file not shown.
@@ -16,14 +16,32 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="16dp">
|
android:padding="16dp">
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/text_type"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Tipo de Consulta"
|
android:orientation="horizontal">
|
||||||
android:textStyle="bold"
|
<TextView
|
||||||
android:textSize="18sp"
|
android:id="@+id/text_type"
|
||||||
android:textColor="@color/primary_color"/>
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="Tipo de Consulta"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:textColor="@color/primary_color"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/text_status"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Pendente"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:padding="4dp"
|
||||||
|
android:background="#FFE0B2"
|
||||||
|
android:textColor="#F57C00"
|
||||||
|
android:gravity="end"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
37
app/build/outputs/apk/release/output-metadata.json
Normal file
37
app/build/outputs/apk/release/output-metadata.json
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"artifactType": {
|
||||||
|
"type": "APK",
|
||||||
|
"kind": "Directory"
|
||||||
|
},
|
||||||
|
"applicationId": "com.example.cuida",
|
||||||
|
"variantName": "release",
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"type": "SINGLE",
|
||||||
|
"filters": [],
|
||||||
|
"attributes": [],
|
||||||
|
"versionCode": 1,
|
||||||
|
"versionName": "1.0",
|
||||||
|
"outputFile": "app-release-unsigned.apk"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"elementType": "File",
|
||||||
|
"baselineProfiles": [
|
||||||
|
{
|
||||||
|
"minApi": 28,
|
||||||
|
"maxApi": 30,
|
||||||
|
"baselineProfiles": [
|
||||||
|
"baselineProfiles/1/app-release-unsigned.dm"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"minApi": 31,
|
||||||
|
"maxApi": 2147483647,
|
||||||
|
"baselineProfiles": [
|
||||||
|
"baselineProfiles/0/app-release-unsigned.dm"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"minSdkVersionForDexing": 24
|
||||||
|
}
|
||||||
@@ -177,9 +177,9 @@ document.getElementById(id).style.display = 'none';
|
|||||||
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
|
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
|
||||||
<header class="mdl-layout__header">
|
<header class="mdl-layout__header">
|
||||||
<div class="mdl-layout__header-row">
|
<div class="mdl-layout__header-row">
|
||||||
<span class="mdl-layout-title">Lint Report: 153 warnings</span>
|
<span class="mdl-layout-title">Lint Report: 155 warnings</span>
|
||||||
<div class="mdl-layout-spacer"></div>
|
<div class="mdl-layout-spacer"></div>
|
||||||
<nav class="mdl-navigation mdl-layout--large-screen-only">Check performed at Wed Apr 22 12:20:44 WEST 2026 by AGP (9.2.0)</nav>
|
<nav class="mdl-navigation mdl-layout--large-screen-only">Check performed at Wed Apr 22 12:42:02 WEST 2026 by AGP (9.2.0)</nav>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div class="mdl-layout__drawer">
|
<div class="mdl-layout__drawer">
|
||||||
@@ -203,8 +203,8 @@ document.getElementById(id).style.display = 'none';
|
|||||||
<a class="mdl-navigation__link" href="#IconLocation"><i class="material-icons warning-icon">warning</i>Image defined in density-independent drawable folder (1)</a>
|
<a class="mdl-navigation__link" href="#IconLocation"><i class="material-icons warning-icon">warning</i>Image defined in density-independent drawable folder (1)</a>
|
||||||
<a class="mdl-navigation__link" href="#ContentDescription"><i class="material-icons warning-icon">warning</i>Image without <code>contentDescription</code> (3)</a>
|
<a class="mdl-navigation__link" href="#ContentDescription"><i class="material-icons warning-icon">warning</i>Image without <code>contentDescription</code> (3)</a>
|
||||||
<a class="mdl-navigation__link" href="#LabelFor"><i class="material-icons warning-icon">warning</i>Missing accessibility label (2)</a>
|
<a class="mdl-navigation__link" href="#LabelFor"><i class="material-icons warning-icon">warning</i>Missing accessibility label (2)</a>
|
||||||
<a class="mdl-navigation__link" href="#SetTextI18n"><i class="material-icons warning-icon">warning</i>TextView Internationalization (22)</a>
|
<a class="mdl-navigation__link" href="#SetTextI18n"><i class="material-icons warning-icon">warning</i>TextView Internationalization (23)</a>
|
||||||
<a class="mdl-navigation__link" href="#HardcodedText"><i class="material-icons warning-icon">warning</i>Hardcoded text (71)</a>
|
<a class="mdl-navigation__link" href="#HardcodedText"><i class="material-icons warning-icon">warning</i>Hardcoded text (72)</a>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<main class="mdl-layout__content">
|
<main class="mdl-layout__content">
|
||||||
@@ -279,10 +279,10 @@ document.getElementById(id).style.display = 'none';
|
|||||||
<tr><td class="countColumn"></td><td class="categoryColumn"><a href="#Internationalization">Internationalization</a>
|
<tr><td class="countColumn"></td><td class="categoryColumn"><a href="#Internationalization">Internationalization</a>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="countColumn">22</td><td class="issueColumn"><i class="material-icons warning-icon">warning</i>
|
<td class="countColumn">23</td><td class="issueColumn"><i class="material-icons warning-icon">warning</i>
|
||||||
<a href="#SetTextI18n">SetTextI18n</a>: TextView Internationalization</td></tr>
|
<a href="#SetTextI18n">SetTextI18n</a>: TextView Internationalization</td></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="countColumn">71</td><td class="issueColumn"><i class="material-icons warning-icon">warning</i>
|
<td class="countColumn">72</td><td class="issueColumn"><i class="material-icons warning-icon">warning</i>
|
||||||
<a href="#HardcodedText">HardcodedText</a>: Hardcoded text</td></tr>
|
<a href="#HardcodedText">HardcodedText</a>: Hardcoded text</td></tr>
|
||||||
<tr><td></td><td class="categoryColumn"><a href="#ExtraIssues">Included Additional Checks (31)</a>
|
<tr><td></td><td class="categoryColumn"><a href="#ExtraIssues">Included Additional Checks (31)</a>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
@@ -345,34 +345,34 @@ Dismiss</button> </div>
|
|||||||
<span class="lineno"> 83 </span> }
|
<span class="lineno"> 83 </span> }
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java">../../src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java</a>:188</span>: <span class="message">Implicitly using the default locale is a common source of bugs: Use <code>String.format(Locale, ...)</code> instead</span><br /><pre class="errorlines">
|
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java">../../src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java</a>:187</span>: <span class="message">Implicitly using the default locale is a common source of bugs: Use <code>String.format(Locale, ...)</code> instead</span><br /><pre class="errorlines">
|
||||||
<span class="lineno"> 185 </span> <span class="keyword">boolean</span> isToday = <span class="keyword">false</span>;
|
<span class="lineno"> 184 </span> <span class="keyword">boolean</span> isToday = <span class="keyword">false</span>;
|
||||||
<span class="lineno"> 186 </span>
|
<span class="lineno"> 185 </span>
|
||||||
<span class="lineno"> 187 </span> <span class="keyword">if</span> (selectedDateStr != <span class="keyword">null</span>) {
|
<span class="lineno"> 186 </span> <span class="keyword">if</span> (selectedDateStr != <span class="keyword">null</span>) {
|
||||||
<span class="caretline"><span class="lineno"> 188 </span> String todayStr = <span class="warning">String.format(<span class="string">"%02d/%02d/%04d"</span>,</span> </span>
|
<span class="caretline"><span class="lineno"> 187 </span> String todayStr = <span class="warning">String.format(<span class="string">"%02d/%02d/%04d"</span>,</span> </span>
|
||||||
<span class="lineno"> 189 </span> now.get(Calendar.DAY_OF_MONTH),
|
<span class="lineno"> 188 </span> now.get(Calendar.DAY_OF_MONTH),
|
||||||
<span class="lineno"> 190 </span> now.get(Calendar.MONTH) + <span class="number">1</span>,
|
<span class="lineno"> 189 </span> now.get(Calendar.MONTH) + <span class="number">1</span>,
|
||||||
<span class="lineno"> 191 </span> now.get(Calendar.YEAR));
|
<span class="lineno"> 190 </span> now.get(Calendar.YEAR));
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java">../../src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java</a>:202</span>: <span class="message">Implicitly using the default locale is a common source of bugs: Use <code>String.format(Locale, ...)</code> instead</span><br /><pre class="errorlines">
|
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java">../../src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java</a>:201</span>: <span class="message">Implicitly using the default locale is a common source of bugs: Use <code>String.format(Locale, ...)</code> instead</span><br /><pre class="errorlines">
|
||||||
<span class="lineno"> 199 </span>
|
<span class="lineno"> 198 </span>
|
||||||
<span class="lineno"> 200 </span> <span class="keyword">for</span> (<span class="keyword">int</span> hour = startHour; hour <= endHour; hour++) {
|
<span class="lineno"> 199 </span> <span class="keyword">for</span> (<span class="keyword">int</span> hour = startHour; hour <= endHour; hour++) {
|
||||||
<span class="lineno"> 201 </span> <span class="keyword">if</span> (!isToday || hour > currentHour || (hour == currentHour && <span class="number">0</span> > currentMinute)) {
|
<span class="lineno"> 200 </span> <span class="keyword">if</span> (!isToday || hour > currentHour || (hour == currentHour && <span class="number">0</span> > currentMinute)) {
|
||||||
<span class="caretline"><span class="lineno"> 202 </span> addSlot(slots, <span class="warning">String.format(<span class="string">"%02d:00"</span>, hour)</span>, bookedTimes); </span>
|
<span class="caretline"><span class="lineno"> 201 </span> addSlot(slots, <span class="warning">String.format(<span class="string">"%02d:00"</span>, hour)</span>, bookedTimes); </span>
|
||||||
<span class="lineno"> 203 </span> }
|
<span class="lineno"> 202 </span> }
|
||||||
<span class="lineno"> 204 </span> <span class="keyword">if</span> (hour != endHour) {
|
<span class="lineno"> 203 </span> <span class="keyword">if</span> (hour != endHour) {
|
||||||
<span class="lineno"> 205 </span> <span class="keyword">if</span> (!isToday || hour > currentHour || (hour == currentHour && <span class="number">30</span> > currentMinute)) {
|
<span class="lineno"> 204 </span> <span class="keyword">if</span> (!isToday || hour > currentHour || (hour == currentHour && <span class="number">30</span> > currentMinute)) {
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java">../../src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java</a>:206</span>: <span class="message">Implicitly using the default locale is a common source of bugs: Use <code>String.format(Locale, ...)</code> instead</span><br /><pre class="errorlines">
|
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java">../../src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java</a>:205</span>: <span class="message">Implicitly using the default locale is a common source of bugs: Use <code>String.format(Locale, ...)</code> instead</span><br /><pre class="errorlines">
|
||||||
<span class="lineno"> 203 </span> }
|
<span class="lineno"> 202 </span> }
|
||||||
<span class="lineno"> 204 </span> <span class="keyword">if</span> (hour != endHour) {
|
<span class="lineno"> 203 </span> <span class="keyword">if</span> (hour != endHour) {
|
||||||
<span class="lineno"> 205 </span> <span class="keyword">if</span> (!isToday || hour > currentHour || (hour == currentHour && <span class="number">30</span> > currentMinute)) {
|
<span class="lineno"> 204 </span> <span class="keyword">if</span> (!isToday || hour > currentHour || (hour == currentHour && <span class="number">30</span> > currentMinute)) {
|
||||||
<span class="caretline"><span class="lineno"> 206 </span> addSlot(slots, <span class="warning">String.format(<span class="string">"%02d:30"</span>, hour)</span>, bookedTimes); </span>
|
<span class="caretline"><span class="lineno"> 205 </span> addSlot(slots, <span class="warning">String.format(<span class="string">"%02d:30"</span>, hour)</span>, bookedTimes); </span>
|
||||||
<span class="lineno"> 207 </span> }
|
<span class="lineno"> 206 </span> }
|
||||||
<span class="lineno"> 208 </span> }
|
<span class="lineno"> 207 </span> }
|
||||||
<span class="lineno"> 209 </span> }
|
<span class="lineno"> 208 </span> }
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -1548,22 +1548,33 @@ Dismiss</button> </div>
|
|||||||
<div class="issue">
|
<div class="issue">
|
||||||
<div class="warningslist">
|
<div class="warningslist">
|
||||||
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java">../../src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java</a>:36</span>: <span class="message">Do not concatenate text displayed with <code>setText</code>. Use resource string with placeholders.</span><br /><pre class="errorlines">
|
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java">../../src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java</a>:36</span>: <span class="message">Do not concatenate text displayed with <code>setText</code>. Use resource string with placeholders.</span><br /><pre class="errorlines">
|
||||||
<span class="lineno"> 33 </span> holder.textType.setText(appointment.type);
|
<span class="lineno"> 33 </span> holder.textType.setText(appointment.type);
|
||||||
<span class="lineno"> 34 </span> holder.textDate.setText(appointment.date);
|
<span class="lineno"> 34 </span> holder.textDate.setText(appointment.date);
|
||||||
<span class="lineno"> 35 </span> holder.textTime.setText(appointment.time);
|
<span class="lineno"> 35 </span> holder.textTime.setText(appointment.time);
|
||||||
<span class="caretline"><span class="lineno"> 36 </span> holder.textReason.setText(<span class="warning"><span class="string">"Motivo: "</span> + (appointment.reason != <span class="keyword">null</span> ? appointment.reason : <span class="string">"--"</span>)</span>);</span>
|
<span class="caretline"><span class="lineno"> 36 </span> holder.textReason.setText(<span class="warning"><span class="string">"Motivo: "</span> + (appointment.reason != <span class="keyword">null</span> ? appointment.reason : <span class="string">"--"</span>)</span>);</span>
|
||||||
<span class="lineno"> 37 </span> }
|
<span class="lineno"> 37 </span>
|
||||||
<span class="lineno"> 38 </span>
|
<span class="lineno"> 38 </span> String status = appointment.status != <span class="keyword">null</span> ? appointment.status : <span class="string">"Pendente"</span>;
|
||||||
<span class="lineno"> 39 </span> <span class="annotation">@Override</span></pre>
|
<span class="lineno"> 39 </span> holder.textStatus.setText(status);
|
||||||
|
</pre>
|
||||||
|
|
||||||
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java">../../src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java</a>:36</span>: <span class="message">String literal in <code>setText</code> can not be translated. Use Android resources instead.</span><br /><pre class="errorlines">
|
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java">../../src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java</a>:36</span>: <span class="message">String literal in <code>setText</code> can not be translated. Use Android resources instead.</span><br /><pre class="errorlines">
|
||||||
<span class="lineno"> 33 </span> holder.textType.setText(appointment.type);
|
<span class="lineno"> 33 </span> holder.textType.setText(appointment.type);
|
||||||
<span class="lineno"> 34 </span> holder.textDate.setText(appointment.date);
|
<span class="lineno"> 34 </span> holder.textDate.setText(appointment.date);
|
||||||
<span class="lineno"> 35 </span> holder.textTime.setText(appointment.time);
|
<span class="lineno"> 35 </span> holder.textTime.setText(appointment.time);
|
||||||
<span class="caretline"><span class="lineno"> 36 </span> holder.textReason.setText(<span class="warning"><span class="string">"Motivo: "</span></span> + (appointment.reason != <span class="keyword">null</span> ? appointment.reason : <span class="string">"--"</span>));</span>
|
<span class="caretline"><span class="lineno"> 36 </span> holder.textReason.setText(<span class="warning"><span class="string">"Motivo: "</span></span> + (appointment.reason != <span class="keyword">null</span> ? appointment.reason : <span class="string">"--"</span>));</span>
|
||||||
<span class="lineno"> 37 </span> }
|
<span class="lineno"> 37 </span>
|
||||||
<span class="lineno"> 38 </span>
|
<span class="lineno"> 38 </span> String status = appointment.status != <span class="keyword">null</span> ? appointment.status : <span class="string">"Pendente"</span>;
|
||||||
<span class="lineno"> 39 </span> <span class="annotation">@Override</span></pre>
|
<span class="lineno"> 39 </span> holder.textStatus.setText(status);
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java">../../src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java</a>:50</span>: <span class="message">String literal in <code>setText</code> can not be translated. Use Android resources instead.</span><br /><pre class="errorlines">
|
||||||
|
<span class="lineno"> 47 </span> } <span class="keyword">else</span> {
|
||||||
|
<span class="lineno"> 48 </span> holder.textStatus.setTextColor(android.graphics.Color.parseColor(<span class="string">"#F57C00"</span>)); <span class="comment">// Orange</span>
|
||||||
|
<span class="lineno"> 49 </span> holder.textStatus.setBackgroundColor(android.graphics.Color.parseColor(<span class="string">"#FFE0B2"</span>));
|
||||||
|
<span class="caretline"><span class="lineno"> 50 </span> holder.textStatus.setText(<span class="warning"><span class="string">"Pendente"</span></span>); </span>
|
||||||
|
<span class="lineno"> 51 </span> }
|
||||||
|
<span class="lineno"> 52 </span> }
|
||||||
|
</pre>
|
||||||
|
|
||||||
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/home/HomeFragment.java">../../src/main/java/com/example/cuida/ui/home/HomeFragment.java</a>:44</span>: <span class="message">Do not concatenate text displayed with <code>setText</code>. Use resource string with placeholders.</span><br /><pre class="errorlines">
|
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/home/HomeFragment.java">../../src/main/java/com/example/cuida/ui/home/HomeFragment.java</a>:44</span>: <span class="message">Do not concatenate text displayed with <code>setText</code>. Use resource string with placeholders.</span><br /><pre class="errorlines">
|
||||||
<span class="lineno"> 41 </span> <span class="keyword">if</span> (name != <span class="keyword">null</span> && !name.isEmpty()) {
|
<span class="lineno"> 41 </span> <span class="keyword">if</span> (name != <span class="keyword">null</span> && !name.isEmpty()) {
|
||||||
@@ -1585,6 +1596,8 @@ Dismiss</button> </div>
|
|||||||
<span class="lineno"> 47 </span> }
|
<span class="lineno"> 47 </span> }
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
<button class="mdl-button mdl-js-button mdl-button--primary" id="SetTextI18nDivLink" onclick="reveal('SetTextI18nDiv');" />+ 18 More Occurrences...</button>
|
||||||
|
<div id="SetTextI18nDiv" style="display: none">
|
||||||
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/home/HomeFragment.java">../../src/main/java/com/example/cuida/ui/home/HomeFragment.java</a>:46</span>: <span class="message">String literal in <code>setText</code> can not be translated. Use Android resources instead.</span><br /><pre class="errorlines">
|
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/home/HomeFragment.java">../../src/main/java/com/example/cuida/ui/home/HomeFragment.java</a>:46</span>: <span class="message">String literal in <code>setText</code> can not be translated. Use Android resources instead.</span><br /><pre class="errorlines">
|
||||||
<span class="lineno"> 43 </span> String firstName = name.split(<span class="string">" "</span>)[<span class="number">0</span>];
|
<span class="lineno"> 43 </span> String firstName = name.split(<span class="string">" "</span>)[<span class="number">0</span>];
|
||||||
<span class="lineno"> 44 </span> binding.textGreeting.setText(<span class="string">"Olá, "</span> + firstName + <span class="string">"!"</span>);
|
<span class="lineno"> 44 </span> binding.textGreeting.setText(<span class="string">"Olá, "</span> + firstName + <span class="string">"!"</span>);
|
||||||
@@ -1594,8 +1607,6 @@ Dismiss</button> </div>
|
|||||||
<span class="lineno"> 48 </span>
|
<span class="lineno"> 48 </span>
|
||||||
<span class="lineno"> 49 </span> <span class="comment">// Load Profile Picture</span></pre>
|
<span class="lineno"> 49 </span> <span class="comment">// Load Profile Picture</span></pre>
|
||||||
|
|
||||||
<button class="mdl-button mdl-js-button mdl-button--primary" id="SetTextI18nDivLink" onclick="reveal('SetTextI18nDiv');" />+ 17 More Occurrences...</button>
|
|
||||||
<div id="SetTextI18nDiv" style="display: none">
|
|
||||||
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/home/HomeFragment.java">../../src/main/java/com/example/cuida/ui/home/HomeFragment.java</a>:62</span>: <span class="message">String literal in <code>setText</code> can not be translated. Use Android resources instead.</span><br /><pre class="errorlines">
|
<span class="location"><a href="../../src/main/java/com/example/cuida/ui/home/HomeFragment.java">../../src/main/java/com/example/cuida/ui/home/HomeFragment.java</a>:62</span>: <span class="message">String literal in <code>setText</code> can not be translated. Use Android resources instead.</span><br /><pre class="errorlines">
|
||||||
<span class="lineno"> 59 </span> })
|
<span class="lineno"> 59 </span> })
|
||||||
<span class="lineno"> 60 </span> .addOnFailureListener(e -> {
|
<span class="lineno"> 60 </span> .addOnFailureListener(e -> {
|
||||||
@@ -1852,7 +1863,7 @@ Dismiss</button> </div>
|
|||||||
<span class="lineno"> 99 </span> <span class="prefix">android:</span><span class="attribute">visibility</span>=<span class="value">"gone"</span>/>
|
<span class="lineno"> 99 </span> <span class="prefix">android:</span><span class="attribute">visibility</span>=<span class="value">"gone"</span>/>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<button class="mdl-button mdl-js-button mdl-button--primary" id="HardcodedTextDivLink" onclick="reveal('HardcodedTextDiv');" />+ 66 More Occurrences...</button>
|
<button class="mdl-button mdl-js-button mdl-button--primary" id="HardcodedTextDivLink" onclick="reveal('HardcodedTextDiv');" />+ 67 More Occurrences...</button>
|
||||||
<div id="HardcodedTextDiv" style="display: none">
|
<div id="HardcodedTextDiv" style="display: none">
|
||||||
<span class="location"><a href="../../src/main/res/layout/activity_register.xml">../../src/main/res/layout/activity_register.xml</a>:92</span>: <span class="message">Hardcoded string "Nº Utente", should use <code>@string</code> resource</span><br /><pre class="errorlines">
|
<span class="location"><a href="../../src/main/res/layout/activity_register.xml">../../src/main/res/layout/activity_register.xml</a>:92</span>: <span class="message">Hardcoded string "Nº Utente", should use <code>@string</code> resource</span><br /><pre class="errorlines">
|
||||||
<span class="lineno"> 89 </span><span class="attribute"> </span><span class="prefix">android:</span><span class="attribute">id</span>=<span class="value">"@+id/utente_edit_text"</span>
|
<span class="lineno"> 89 </span><span class="attribute"> </span><span class="prefix">android:</span><span class="attribute">id</span>=<span class="value">"@+id/utente_edit_text"</span>
|
||||||
@@ -2266,7 +2277,7 @@ Dismiss</button> </div>
|
|||||||
<span class="lineno"> 127 </span> <span class="prefix">android:</span><span class="attribute">textColor</span>=<span class="value">"@color/error_color"</span>/>
|
<span class="lineno"> 127 </span> <span class="prefix">android:</span><span class="attribute">textColor</span>=<span class="value">"@color/error_color"</span>/>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<br/><b>NOTE: 21 results omitted.</b><br/><br/></div>
|
<br/><b>NOTE: 22 results omitted.</b><br/><br/></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="metadata"><div class="explanation" id="explanationHardcodedText" style="display: none;">
|
<div class="metadata"><div class="explanation" id="explanationHardcodedText" style="display: none;">
|
||||||
Hardcoding text attributes directly in layout files is bad for several reasons:<br/>
|
Hardcoding text attributes directly in layout files is bad for several reasons:<br/>
|
||||||
|
|||||||
@@ -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]
|
/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);
|
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",
|
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);
|
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);
|
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]
|
/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 : "--"));
|
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]
|
/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 + "!");
|
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]
|
/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"
|
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]
|
/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"
|
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: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"
|
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"
|
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: --"
|
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]
|
/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
|
There are quickfixes to automatically extract this hardcoded string into a
|
||||||
resource lookup.
|
resource lookup.
|
||||||
|
|
||||||
0 errors, 153 warnings
|
0 errors, 155 warnings
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
errorLine2=" ^">
|
errorLine2=" ^">
|
||||||
<location
|
<location
|
||||||
file="/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java"
|
file="/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java"
|
||||||
line="188"
|
line="187"
|
||||||
column="31"/>
|
column="31"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||||
<location
|
<location
|
||||||
file="/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java"
|
file="/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java"
|
||||||
line="202"
|
line="201"
|
||||||
column="32"/>
|
column="32"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
|
||||||
@@ -123,7 +123,7 @@
|
|||||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||||
<location
|
<location
|
||||||
file="/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java"
|
file="/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/schedule/ScheduleViewModel.java"
|
||||||
line="206"
|
line="205"
|
||||||
column="36"/>
|
column="36"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
|
||||||
@@ -1023,6 +1023,24 @@
|
|||||||
column="35"/>
|
column="35"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
|
||||||
|
<issue
|
||||||
|
id="SetTextI18n"
|
||||||
|
severity="Warning"
|
||||||
|
message="String literal in `setText` can not be translated. Use Android resources instead."
|
||||||
|
category="Internationalization"
|
||||||
|
priority="6"
|
||||||
|
summary="TextView Internationalization"
|
||||||
|
explanation="When calling `TextView#setText`
* Never call `Number#toString()` to format numbers; it will not handle fraction separators and locale-specific digits properly. Consider using `String#format` with proper format specifications (`%d` or `%f`) instead.
* Do not pass a string literal (e.g. "Hello") to display text. Hardcoded text can not be properly translated to other languages. Consider using Android resource strings instead.
* Do not build messages by concatenating text chunks. Such messages can not be properly translated."
|
||||||
|
url="https://developer.android.com/guide/topics/resources/localization.html"
|
||||||
|
urls="https://developer.android.com/guide/topics/resources/localization.html"
|
||||||
|
errorLine1=" holder.textStatus.setText("Pendente");"
|
||||||
|
errorLine2=" ~~~~~~~~~~">
|
||||||
|
<location
|
||||||
|
file="/Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/appointments/AppointmentAdapter.java"
|
||||||
|
line="50"
|
||||||
|
column="39"/>
|
||||||
|
</issue>
|
||||||
|
|
||||||
<issue
|
<issue
|
||||||
id="SetTextI18n"
|
id="SetTextI18n"
|
||||||
severity="Warning"
|
severity="Warning"
|
||||||
@@ -2383,12 +2401,28 @@
|
|||||||
priority="5"
|
priority="5"
|
||||||
summary="Hardcoded text"
|
summary="Hardcoded text"
|
||||||
explanation="Hardcoding text attributes directly in layout files is bad for several reasons:

* When creating configuration variations (for example for landscape or portrait) you have to repeat the actual text (and keep it up to date when making changes)

* The application cannot be translated to other languages by just adding new translations for existing string resources.

There are quickfixes to automatically extract this hardcoded string into a resource lookup."
|
explanation="Hardcoding text attributes directly in layout files is bad for several reasons:

* When creating configuration variations (for example for landscape or portrait) you have to repeat the actual text (and keep it up to date when making changes)

* The application cannot be translated to other languages by just adding new translations for existing string resources.

There are quickfixes to automatically extract this hardcoded string into a resource lookup."
|
||||||
errorLine1=" android:text="Tipo de Consulta""
|
errorLine1=" android:text="Tipo de Consulta""
|
||||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||||
<location
|
<location
|
||||||
file="/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml"
|
file="/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml"
|
||||||
line="23"
|
line="28"
|
||||||
column="13"/>
|
column="17"/>
|
||||||
|
</issue>
|
||||||
|
|
||||||
|
<issue
|
||||||
|
id="HardcodedText"
|
||||||
|
severity="Warning"
|
||||||
|
message="Hardcoded string "Pendente", should use `@string` resource"
|
||||||
|
category="Internationalization"
|
||||||
|
priority="5"
|
||||||
|
summary="Hardcoded text"
|
||||||
|
explanation="Hardcoding text attributes directly in layout files is bad for several reasons:

* When creating configuration variations (for example for landscape or portrait) you have to repeat the actual text (and keep it up to date when making changes)

* The application cannot be translated to other languages by just adding new translations for existing string resources.

There are quickfixes to automatically extract this hardcoded string into a resource lookup."
|
||||||
|
errorLine1=" android:text="Pendente""
|
||||||
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
|
||||||
|
<location
|
||||||
|
file="/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml"
|
||||||
|
line="37"
|
||||||
|
column="17"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
|
||||||
<issue
|
<issue
|
||||||
@@ -2403,7 +2437,7 @@
|
|||||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||||
<location
|
<location
|
||||||
file="/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml"
|
file="/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml"
|
||||||
line="38"
|
line="56"
|
||||||
column="17"/>
|
column="17"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
|
||||||
@@ -2419,7 +2453,7 @@
|
|||||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
|
||||||
<location
|
<location
|
||||||
file="/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml"
|
file="/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml"
|
||||||
line="45"
|
line="63"
|
||||||
column="17"/>
|
column="17"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
|
||||||
@@ -2435,7 +2469,7 @@
|
|||||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
|
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||||
<location
|
<location
|
||||||
file="/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml"
|
file="/Users/230405/Desktop/papcuida/app/src/main/res/layout/item_appointment.xml"
|
||||||
line="53"
|
line="71"
|
||||||
column="13"/>
|
column="13"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user