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
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;
......
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