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
ccce4b65
Commit
ccce4b65
authored
Jul 31, 2018
by
Sajal Narang
Committed by
GitHub
Jul 31, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #163 from pulsejet/patch-4
Patch 4
parents
1c32c302
cd8607d6
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
33 deletions
+21
-33
app/src/main/AndroidManifest.xml
app/src/main/AndroidManifest.xml
+5
-1
app/src/main/java/app/insti/MainActivity.java
app/src/main/java/app/insti/MainActivity.java
+1
-1
app/src/main/java/app/insti/notifications/NotificationIntentService.java
...va/app/insti/notifications/NotificationIntentService.java
+1
-1
app/src/main/res/drawable/ic_lotus_blue.xml
app/src/main/res/drawable/ic_lotus_blue.xml
+0
-17
app/src/main/res/drawable/ic_lotusgray.xml
app/src/main/res/drawable/ic_lotusgray.xml
+13
-13
app/src/main/res/values/strings.xml
app/src/main/res/values/strings.xml
+1
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
ccce4b65
...
...
@@ -23,7 +23,7 @@
<!-- FCM styling -->
<meta-data
android:name=
"com.google.firebase.messaging.default_notification_icon"
android:resource=
"@drawable/ic_lotus
_blue
"
/>
android:resource=
"@drawable/ic_lotus
gray
"
/>
<meta-data
android:name=
"com.google.firebase.messaging.default_notification_color"
android:resource=
"@color/colorPrimary"
/>
...
...
@@ -116,6 +116,10 @@
</intent-filter>
</service>
<meta-data
android:name=
"com.google.firebase.messaging.default_notification_channel_id"
android:value=
"@string/default_notification_channel_id"
/>
</application>
</manifest>
\ No newline at end of file
app/src/main/java/app/insti/MainActivity.java
View file @
ccce4b65
...
...
@@ -128,7 +128,7 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
NotificationManager
mNotificationManager
=
(
NotificationManager
)
getSystemService
(
Context
.
NOTIFICATION_SERVICE
);
// The id of the channel.
String
id
=
"INSTIAPP_CHANNEL"
;
String
id
=
getResources
().
getString
(
R
.
string
.
default_notification_channel_id
)
;
// The user-visible name of the channel.
CharSequence
name
=
"InstiApp"
;
...
...
app/src/main/java/app/insti/notifications/NotificationIntentService.java
View file @
ccce4b65
...
...
@@ -122,7 +122,7 @@ public class NotificationIntentService extends JobIntentService {
if
(
timediff
<=
30
&&
timediff
>
0
)
{
// Change this to 30*10000 for testing
NOTIFICATION_ID
=
event
.
getEventID
().
hashCode
();
final
NotificationCompat
.
Builder
builder
=
new
NotificationCompat
.
Builder
(
getApplicationContext
(),
"INSTIAPP_CHANNEL"
);
final
NotificationCompat
.
Builder
builder
=
new
NotificationCompat
.
Builder
(
getApplicationContext
(),
getResources
().
getString
(
R
.
string
.
default_notification_channel_id
)
);
builder
.
setContentTitle
(
event
.
getEventName
())
.
setAutoCancel
(
true
)
.
setColor
(
getResources
().
getColor
(
R
.
color
.
colorAccent
))
...
...
app/src/main/res/drawable/ic_lotus_blue.xml
deleted
100644 → 0
View file @
1c32c302
<vector
android:height=
"24dp"
android:viewportHeight=
"792"
android:viewportWidth=
"792"
android:width=
"24dp"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#448aff"
android:pathData=
"m396.004,170.224l0,0a303.09,303.09 90,0 1,-0.007 428.627l0,0 0,0A303.09,303.09 90,0 1,396.004 170.224Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#448aff"
android:pathData=
"m699.09,295.76l-0,0a303.09,303.09 0,0 1,-303.09 303.09l-0,0 -0,0A303.09,303.09 0,0 1,699.09 295.76Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#448aff"
android:pathData=
"m92.91,295.76v0A303.09,303.09 0,0 1,396 598.85v0,0A303.09,303.09 0,0 1,92.91 295.76Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#448aff"
android:pathData=
"m231.969,202.853l0,0a303.09,303.09 67.5,0 1,164.035 395.997l0,0 0,0A303.09,303.09 67.5,0 1,231.969 202.853Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#448aff"
android:pathData=
"m791.997,434.851a302.83,302.83 0,0 1,-396 164,302.83 302.83,0 0,1 396,-164z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#448aff"
android:pathData=
"m560.025,202.845l0,0a303.09,303.09 112.5,0 1,-164.022 396.002l0,0 0,0A303.09,303.09 112.5,0 1,560.025 202.845Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#448aff"
android:pathData=
"M396,598.82C321.742,629.652 241.162,630.1 166.879,599.33 92.595,568.561 30.706,509.1 0,434.79 154.64,370.577 332.04,444.046 396,598.79Z"
android:strokeAlpha=
"0.4"
/>
</vector>
app/src/main/res/drawable/ic_lotusgray.xml
View file @
ccce4b65
<vector
android:height=
"24dp"
android:viewportHeight=
"792"
android:viewportWidth=
"792"
android:width=
"24dp"
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"m396.004,170.224l0,0a303.09,303.09 90,0 1,-0.007 428.627l0,0 0,0A303.09,303.09 90,0 1,396.004 170.224Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"M726.43,533.13A302.83,302.83 0,0 1,396 598.85,303.38 303.38,0 0,1 726.43,533.13Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"M297.36,532.94A302,302 0,0 1,396 598.85,303.48 303.48,0 0,1 65.57,533.13 304,304 0,0 1,297.36 532.94Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"m699.09,295.76l-0,0a303.09,303.09 0,0 1,-303.09 303.09l-0,0 -0,0A303.09,303.09 0,0 1,699.09 295.76Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"M512.38,622A302.31,302.31 0,0 1,396 598.85,302.22 302.22,0 0,1 512.38,622Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"M279.62,622A302.22,302.22 0,0 1,396 598.85,302.31 302.31,0 0,1 279.62,622Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"m92.91,295.76v0A303.09,303.09 0,0 1,396 598.85v0,0A303.09,303.09 0,0 1,92.91 295.76Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"m231.969,202.853l0,0a303.09,303.09 67.5,0 1,164.035 395.997l0,0 0,0A303.09,303.09 67.5,0 1,231.969 202.853Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"m792,434.82a302.83,302.83 0,0 1,-396 164,302.83 302.83,0 0,1 396,-164z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"m279.62,575.7a301.94,301.94 0,0 1,116.38 23.15,302.06 302.06,0 0,1 -232,0 303.77,303.77 0,0 1,115.62 -23.15z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"m560.025,202.845l0,0a303.09,303.09 112.5,0 1,-164.022 396.002l0,0 0,0A303.09,303.09 112.5,0 1,560.025 202.845Z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"m628,598.84a302.06,302.06 0,0 1,-232 0,302.18 302.18,0 0,1 232,0z"
android:strokeAlpha=
"0.4"
/>
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
448a
ff"
<path
android:fillAlpha=
"0.4"
android:fillColor=
"#
ffff
ff"
android:pathData=
"M396,598.85A302.83,302.83 0,0 1,0 434.82a302.83,302.83 0,0 1,396 164z"
android:strokeAlpha=
"0.4"
/>
</vector>
app/src/main/res/values/strings.xml
View file @
ccce4b65
...
...
@@ -39,4 +39,5 @@
<string
name=
"drawer_open"
>
Open the drawer
</string>
<string
name=
"drawer_close"
>
Close the drawer
</string>
<string
name=
"default_notification_channel_id"
>
INSTIAPP_NOTIFS
</string>
</resources>
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