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
9c1764ce
Commit
9c1764ce
authored
Nov 29, 2018
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup leftover code to set nav selection
parent
ba636ec6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
app/src/main/java/app/insti/activity/MainActivity.java
app/src/main/java/app/insti/activity/MainActivity.java
+0
-8
No files found.
app/src/main/java/app/insti/activity/MainActivity.java
View file @
9c1764ce
...
...
@@ -98,11 +98,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
private
RetrofitInterface
retrofitInterface
;
private
List
<
Notification
>
notifications
=
null
;
/**
* which menu item should be checked on activity start
*/
private
int
initMenuChecked
=
R
.
id
.
nav_feed
;
public
static
void
hideKeyboard
(
Activity
activity
)
{
InputMethodManager
imm
=
(
InputMethodManager
)
activity
.
getSystemService
(
Activity
.
INPUT_METHOD_SERVICE
);
//Find the currently focused view, so we can grab the correct window token from it.
...
...
@@ -343,7 +338,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
openEventFragment
(
id
);
return
;
case
DATA_TYPE_NEWS:
initMenuChecked
=
R
.
id
.
nav_news
;
updateFragment
(
new
NewsFragment
());
return
;
}
...
...
@@ -360,10 +354,8 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
switch
(
type
)
{
case
DATA_TYPE_PT:
if
(
extra
.
contains
(
"/trainingblog"
))
{
initMenuChecked
=
R
.
id
.
nav_training_blog
;
openTrainingBlog
();
}
else
{
initMenuChecked
=
R
.
id
.
nav_placement_blog
;
openPlacementBlog
();
}
return
;
...
...
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