Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.

Commit 2f18e7a

Browse files
committed
Fixed a few more things
1 parent d2b96e3 commit 2f18e7a

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

apk/src/main/AndroidManifest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@
4848
</service>
4949

5050
<meta-data android:name="com.google.firebase.messaging.default_notification_icon"
51-
android:resource="@mipmap/ic_launcher" />
51+
android:resource="@mipmap/ic_launcher_round" />
52+
<meta-data
53+
android:name="com.google.firebase.messaging.default_notification_color"
54+
android:resource="@color/colorAccent" />
5255
<meta-data
5356
android:name="com.google.firebase.messaging.default_notification_channel_id"
5457
android:value="MHacks Group" />

base/src/main/AndroidManifest.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,13 @@
100100
</intent-filter>
101101
</service>
102102
<meta-data android:name="com.google.firebase.messaging.default_notification_icon"
103-
android:resource="@mipmap/ic_launcher" />
103+
android:resource="@mipmap/ic_launcher_round" />
104+
<meta-data
105+
android:name="com.google.firebase.messaging.default_notification_color"
106+
android:resource="@color/colorAccent" />
107+
<meta-data
108+
android:name="com.google.firebase.messaging.default_notification_channel_id"
109+
android:value="MHacks Group" />
104110
<meta-data
105111
android:name="com.google.android.geo.API_KEY"
106112
android:value="@string/google_maps_api_key" />

base/src/main/java/com/mhacks/app/data/network/fcm/FCMMessageHandler.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import androidx.core.app.NotificationCompat
77
import androidx.core.app.NotificationManagerCompat
88
import com.google.firebase.messaging.FirebaseMessagingService
99
import com.google.firebase.messaging.RemoteMessage
10-
import android.R
1110
import timber.log.Timber
1211

1312
/**
@@ -25,7 +24,6 @@ class FCMMessageHandler : FirebaseMessagingService() {
2524

2625
private fun createNotification(notification: RemoteMessage.Notification) {
2726
val builder = NotificationCompat.Builder(baseContext, mhacksGroup)
28-
.setSmallIcon(R.mipmap.sym_def_app_icon)
2927
.setDefaults(Notification.DEFAULT_ALL)
3028
.setContentTitle(notification.title)
3129
.setContentText(notification.body)

base/src/main/res/values/colors.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
<color name="blueGrey">#37474F</color>
55

66
<!--Global color themes-->
7-
<color name="colorPrimary">#5D3E6E</color>
8-
<color name="colorPrimaryDark">#43374E</color>
9-
<color name="colorAccent">#F4A4A8</color>
7+
<color name="colorPrimary">#CB1458</color>
8+
<color name="colorPrimaryDark">#13162B</color>
9+
<color name="colorPrimaryDisabled">#A5154B</color>
10+
<color name="colorAccent">#F09DBC</color>
1011
<color name="black">#000</color>
1112

1213
<!--Map Fragment-->

0 commit comments

Comments
 (0)