mirror of
https://github.com/afollestad/nock-nock.git
synced 2025-04-20 03:25:14 +00:00
Use big text notification style for error notifications
This commit is contained in:
parent
deae0f0dc2
commit
2221c45789
2 changed files with 6 additions and 1 deletions
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
|
@ -40,7 +40,7 @@
|
|||
</value>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
|
|
@ -20,6 +20,7 @@ import android.app.PendingIntent
|
|||
import android.content.Context
|
||||
import android.graphics.Bitmap
|
||||
import androidx.core.app.NotificationCompat
|
||||
import androidx.core.app.NotificationCompat.BigTextStyle
|
||||
import androidx.core.app.NotificationCompat.DEFAULT_VIBRATE
|
||||
|
||||
/** @author Aidan Follestad (@afollestad) */
|
||||
|
@ -56,6 +57,10 @@ class RealNotificationProvider(
|
|||
.setLargeIcon(largeIcon)
|
||||
.setAutoCancel(true)
|
||||
.setDefaults(DEFAULT_VIBRATE)
|
||||
.setStyle(
|
||||
BigTextStyle()
|
||||
.bigText(content)
|
||||
)
|
||||
.build()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue