Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudElshahatt committed Jan 15, 2023
1 parent f61cfce commit 24e4755
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@
android:name="android.app.lib_name"
android:value="" />
</activity>

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.example.qrattendance.fileprovider"
android:exported="false"
android:grantUriPermissions="true"
android:authorities="com.example.qrattendance.fileprovider">
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import java.util.*
fun String.serialize(): Attendee {
trim()
val attendeeArguments = split("/").toTypedArray()
var attendee = Attendee()
if (attendeeArguments.size == 3) {
var attendee:Attendee = Attendee()
if (attendeeArguments.isNotEmpty()) {
attendee = Attendee(
name = attendeeArguments[0],
notes = attendeeArguments[1],
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/attendee_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:ellipsize="end"
android:maxLines="1"
android:maxLines="2"
android:textColor="@color/attendee_name_color"
android:textSize="16sp"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintEnd_toStartOf="@+id/txt_attendance_time"
app:layout_constraintHorizontal_bias="0.5"
Expand Down

0 comments on commit 24e4755

Please sign in to comment.