Android/main/src/main/java/com/ubspy/optic/main/MainActivity.java
//You need a context, because openFileOutput can't be referenced statically, and it's really really stupid
You need a context, because openFileOutput can't be referenced statically, and it's really really stupid
You need a context because openFileOutput can ' t be referenced statically and it ' s really really stupid
public static void addDisplay(Display display, Context context)
    {
        displays.add(display);
        writeFile(context);
        adapter.notifyDataSetChanged();
    }
public static void addDisplay ( Display display , Context context ) { displays . add ( display ) ; writeFile ( context ) ; adapter . notifyDataSetChanged ( ) ; }
You need a context, because openFileOutput can't be referenced statically, and it's really really stupid
You need a context because openFileOutput can ' t be referenced statically and it ' s really really stupid
//Adds display to array list //Writes file //Updates recycler view