Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
95a5ead9
Commit
95a5ead9
authored
Jul 25, 2018
by
Sajal Narang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix app crash on NotificationEventReceiver (possibly) (1)
parent
dbd81883
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
app/src/main/java/app/insti/notifications/NotificationIntentService.java
...va/app/insti/notifications/NotificationIntentService.java
+6
-0
No files found.
app/src/main/java/app/insti/notifications/NotificationIntentService.java
View file @
95a5ead9
...
@@ -41,6 +41,12 @@ public class NotificationIntentService extends IntentService {
...
@@ -41,6 +41,12 @@ public class NotificationIntentService extends IntentService {
super
(
NotificationIntentService
.
class
.
getSimpleName
());
super
(
NotificationIntentService
.
class
.
getSimpleName
());
}
}
@Override
public
void
onCreate
()
{
super
.
onCreate
();
startForeground
(
1
,
new
Notification
());
}
public
static
Intent
createIntentStartNotificationService
(
Context
context
)
{
public
static
Intent
createIntentStartNotificationService
(
Context
context
)
{
Intent
intent
=
new
Intent
(
context
,
NotificationIntentService
.
class
);
Intent
intent
=
new
Intent
(
context
,
NotificationIntentService
.
class
);
intent
.
setAction
(
ACTION_START
);
intent
.
setAction
(
ACTION_START
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment