Skip to content

Commit

Permalink
fix nullability issues and crash in sample app, added title to main s…
Browse files Browse the repository at this point in the history
…creen
  • Loading branch information
luca committed Oct 21, 2019
1 parent 05e4e92 commit 060eb21
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ data class OnlineNotification(
val objId: Int,

@Json(name = "object")
val objectType: String,
val objectType: String?,

@Json(name = "type")
val type: NotificationType,
val type: NotificationType?,

@Json(name = "seen")
val seen: Boolean,
Expand Down
7 changes: 4 additions & 3 deletions sampleapp/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context=".MainActivity">

<com.google.android.material.appbar.AppBarLayout
Expand All @@ -14,7 +14,8 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" />
android:layout_height="?attr/actionBarSize"
app:title="@string/app_name" />

</com.google.android.material.appbar.AppBarLayout>

Expand Down
7 changes: 4 additions & 3 deletions sampleapp/src/main/res/layout/item_overview.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:id="@+id/container"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<TextView
android:id="@+id/overview_name"
Expand Down

0 comments on commit 060eb21

Please sign in to comment.