Commit 15e0264a authored by Varun Patil's avatar Varun Patil

Fix disappearing search box on drawer open

parent 0445d2fb
...@@ -253,7 +253,6 @@ public class MapFragment extends Fragment implements TextWatcher, ...@@ -253,7 +253,6 @@ public class MapFragment extends Fragment implements TextWatcher,
Locations mLocations = new Locations(venues); Locations mLocations = new Locations(venues);
data = mLocations.data; data = mLocations.data;
markerlist = new ArrayList<com.mrane.data.Marker>(data.values()); markerlist = new ArrayList<com.mrane.data.Marker>(data.values());
setUpDrawer();
setupMap(); setupMap();
// Setup locate button // Setup locate button
...@@ -338,35 +337,6 @@ public class MapFragment extends Fragment implements TextWatcher, ...@@ -338,35 +337,6 @@ public class MapFragment extends Fragment implements TextWatcher,
getActivity().findViewById(R.id.loadingPanel).setVisibility(View.GONE); getActivity().findViewById(R.id.loadingPanel).setVisibility(View.GONE);
} }
private void setUpDrawer() {
Toolbar mToolbar = (Toolbar) getActivity().findViewById(R.id.toolbar);
actionBarView = getActivity().findViewById(R.id.toolbar);
mDrawerLayout = (DrawerLayout) getActivity().findViewById(R.id.drawer_layout);
mDrawerToggle = new ActionBarDrawerToggle(getActivity(),
mDrawerLayout,
mToolbar,
R.string.drawer_open,
R.string.drawer_close) {
/** Called when a drawer has settled in a completely closed state. */
public void onDrawerClosed(View view) {
super.onDrawerClosed(view);
editText.setVisibility(View.VISIBLE);
setCorrectIcons();
}
/** Called when a drawer has settled in a completely open state. */
public void onDrawerOpened(View drawerView) {
super.onDrawerOpened(drawerView);
editText.setVisibility(View.GONE);
}
};
mDrawerLayout.setDrawerListener(mDrawerToggle);
}
@Override @Override
public void onConfigurationChanged(Configuration newConfig) { public void onConfigurationChanged(Configuration newConfig) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
......
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