Skip to content

Commit f282a21

Browse files
committed
Using Utils.categoryMap instead of creating new array
Signed-off-by: Umair Khan <[email protected]>
1 parent 4eb87dd commit f282a21

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

App/src/main/java/in/ac/dtu/subtlenews/NavigationDrawerFragment.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,7 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
101101
getActionBar().getThemedContext(),
102102
android.R.layout.simple_list_item_1,
103103
android.R.id.text1,
104-
new String[]{
105-
"India",
106-
"World",
107-
"Entertainment",
108-
"Technology",
109-
"Business",
110-
"Science",
111-
"Sports",
112-
"Health"
113-
}));
104+
Utils.categoryMap));
114105
mDrawerListView.setItemChecked(mCurrentSelectedPosition, true);
115106
return mDrawerListView;
116107
}

0 commit comments

Comments
 (0)