package uk.co.czcz.speedreader;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        if (getSupportFragmentManager().findFragmentById(R.id.fragment_container) == null)
        {
            // Initial run of this activity, so lets display a fragment
            getSupportFragmentManager().beginTransaction().add(new SpeedReadingFragment(), SpeedReadingFragment.TAG).commit();
        }
    }
}

@@ -438,72 +438,119 @@
     
-// Initial run of this activity, so lets display a f
+displayInitialSpeedReadingFragment();%0A        %7D%0A    %7D%0A%0A    private void displayInitialSpeedReadingF
 ragment
-%0A    
+() %7B%0A
     
@@ -664,30 +664,20 @@
 ).commit();%0A
-        %7D%0A
     %7D%0A%7D%0A

Refactor to make it obvious what's going on.