Buggy code:
public class EternalMediaBar extends Activity { private PackageManager manager ; private List < AppDetail > oldApps = new ArrayList < > ( ) ; private List < AppDetail > hli = new ArrayList < > ( ) ; private settingsClass saveddata = new settingsClass ( ) ; public int hitem = 0 ; private boolean init = false ; private boolean optionsmenu = false ; public int vitem = 0 ; public int optionVitem = 1 ; public boolean [ ] warningtoggle ; private boolean foundApp = false ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onResume ( ) { } public void savefiles ( ) { } @ Override public boolean onKeyDown ( int keyCode , KeyEvent event ) { } void listmove ( int move , boolean isCategory ) { } private void loadApps ( ) { } Drawable svgLoad ( int imagetoload ) { } public void loadListView ( ) { manager = getPackageManager ( ) ; hli . clear ( ) ; <START_BUG> hli . add ( createAppDetail ( 1 , "Social" , svgLoad ( photo_144px ) ) ) ; <END_BUG> hli . add ( createAppDetail ( 1 , "Media" , svgLoad ( media_144px ) ) ) ; hli . add ( createAppDetail ( 1 , "Games" , svgLoad ( games_144px ) ) ) ; hli . add ( createAppDetail ( 1 , "Web" , svgLoad ( web_144px ) ) ) ; hli . add ( createAppDetail ( 1 , "Utility" , svgLoad ( extras_144px ) ) ) ; hli . add ( createAppDetail ( 1 , "Settings" , svgLoad ( settings_144px ) ) ) ; if ( ( saveddata . vLists . get ( ( ( saveddata . vLists . size ( ) ) - 1 ) ) . size ( ) ) > 0 ) { hli . add ( createAppDetail ( 1 , "New<seq2seq4repair_space>Apps" , svgLoad ( new_install_144px ) ) ) ; } LinearLayout layout = ( ( LinearLayout ) ( findViewById ( categories ) ) ) ; layout . removeAllViews ( ) ; layout . addView ( createMenuEntry ( category_item , "" , svgLoad ( blank ) , ( - 1 ) , 0 , false , "" , "" ) ) ; for ( int ii = 0 ; ii < ( hli . size ( ) ) ; ) { layout . addView ( createMenuEntry ( category_item , hli . get ( ii ) . label , hli . get ( ii ) . icon , ii , 0 , false , "" , "" ) ) ; ii ++ ; } layout . addView ( createMenuEntry ( category_item , "" , svgLoad ( blank ) , ( - 1 ) , 0 , false , "" , "" ) ) ; LinearLayout Vlayout = ( ( LinearLayout ) ( findViewById ( apps_display ) ) ) ; Vlayout . removeAllViews ( ) ; for ( int ii = 0 ; ii < ( saveddata . vLists . get ( hitem ) . size ( ) ) ; ) { Vlayout . addView ( createMenuEntry ( list_item , saveddata . vLists . get ( hitem ) . get ( ii ) . label , null , ii , 0 , true , saveddata . vLists . get ( hitem ) . get ( ii ) . name , ( ( String ) ( saveddata . vLists . get ( hitem ) . get ( ii ) . label ) ) ) ) ; ii ++ ; } } private void onEnter ( final int index , final int secondaryIndex , final boolean islaunchable , final String launchIntent , final String appname ) { } private void onOptions ( final int index , final boolean islaunchable , final String launchIntent , final String appname ) { } public AppDetail createAppDetail ( int ismenu , String name , @ Nullable Drawable icon ) { } public View createMenuEntry ( int inflater , CharSequence text , @ Nullable Drawable icon , final int index , final int secondaryIndex , final Boolean isLaunchable , final String launchIntent , final String appname ) { } }

Fix:
hli . add ( createAppDetail ( 1 , "Social" , svgLoad ( social_144px ) ) ) ;