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
f928ede8
Commit
f928ede8
authored
Jul 20, 2019
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add basic achievements webview
parent
352dcd08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
app/src/main/java/app/insti/activity/MainActivity.java
app/src/main/java/app/insti/activity/MainActivity.java
+8
-0
app/src/main/java/app/insti/fragment/WebViewFragment.java
app/src/main/java/app/insti/fragment/WebViewFragment.java
+5
-0
No files found.
app/src/main/java/app/insti/activity/MainActivity.java
View file @
f928ede8
...
...
@@ -75,6 +75,7 @@ import app.insti.fragment.QuickLinksFragment;
import
app.insti.fragment.SettingsFragment
;
import
app.insti.fragment.TrainingBlogFragment
;
import
app.insti.fragment.UserFragment
;
import
app.insti.fragment.WebViewFragment
;
import
app.insti.notifications.NotificationId
;
import
me.leolin.shortcutbadger.ShortcutBadger
;
import
retrofit2.Call
;
...
...
@@ -571,6 +572,13 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
MapFragment
mapFragment
=
new
MapFragment
();
updateFragment
(
mapFragment
);
break
;
case
R
.
id
.
nav_achievements
:
WebViewFragment
webViewFragment
=
new
WebViewFragment
();
Bundle
bundle
=
new
Bundle
();
bundle
.
putString
(
Constants
.
WV_TYPE
,
Constants
.
WV_TYPE_ACHIEVEMENTS
);
webViewFragment
.
setArguments
(
bundle
);
updateFragment
(
webViewFragment
);
break
;
case
R
.
id
.
nav_complaint
:
if
(
session
.
isLoggedIn
())
{
...
...
app/src/main/java/app/insti/fragment/WebViewFragment.java
View file @
f928ede8
...
...
@@ -91,6 +91,11 @@ public class WebViewFragment extends BaseFragment {
setTitle
(
"Update Organization"
);
break
;
case
Constants
.
WV_TYPE_ACHIEVEMENTS
:
url
+=
"/achievements"
;
setTitle
(
"Achievements"
);
break
;
case
Constants
.
WV_TYPE_URL
:
return
args
.
getString
(
Constants
.
WV_URL
);
}
...
...
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