Commit 9c1764ce authored by Varun Patil's avatar Varun Patil

Cleanup leftover code to set nav selection

parent ba636ec6
...@@ -98,11 +98,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On ...@@ -98,11 +98,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
private RetrofitInterface retrofitInterface; private RetrofitInterface retrofitInterface;
private List<Notification> notifications = null; 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) { public static void hideKeyboard(Activity activity) {
InputMethodManager imm = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE); InputMethodManager imm = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE);
//Find the currently focused view, so we can grab the correct window token from it. //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 ...@@ -343,7 +338,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
openEventFragment(id); openEventFragment(id);
return; return;
case DATA_TYPE_NEWS: case DATA_TYPE_NEWS:
initMenuChecked = R.id.nav_news;
updateFragment(new NewsFragment()); updateFragment(new NewsFragment());
return; return;
} }
...@@ -360,10 +354,8 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On ...@@ -360,10 +354,8 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
switch (type) { switch (type) {
case DATA_TYPE_PT: case DATA_TYPE_PT:
if (extra.contains("/trainingblog")) { if (extra.contains("/trainingblog")) {
initMenuChecked = R.id.nav_training_blog;
openTrainingBlog(); openTrainingBlog();
} else { } else {
initMenuChecked = R.id.nav_placement_blog;
openPlacementBlog(); openPlacementBlog();
} }
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment