/**
 * Copyright (c) 2015 FeedHenry Ltd, All Rights Reserved.
 *
 * Please refer to your contract with FeedHenry for the software license agreement.
 * If you do not have a contract, you do not have a license to use this software.
 */
package com.feedhenry.helloworld;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.widget.TextView;
import android.widget.Toast;

import com.feedhenry.helloworld_android.R;
import com.feedhenry.sdk.FH;
import com.feedhenry.sdk.FHActCallback;
import com.feedhenry.sdk.FHResponse;

public class MainActivity extends ActionBarActivity {

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

        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);
    }

    @Override
    protected void onStart() {
        super.onStart();
        showInitFragment();
    }

    @Override
    protected void onStop() {
        super.onStop();
        FH.stop();
    }

    private void showFragment(Fragment fragment) {
        getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.content, fragment)
                .commit();
    }

    private void showInitFragment() {
        showFragment(new InitFragment());
    }

    public void showHelloScreen() {
        showFragment(new HelloFragment());
    }

}

@@ -424,242 +424,79 @@
 ar;%0A
-import android.util.Log;%0Aimport android.widget.TextView;%0Aimport android.widget.Toast;%0A%0Aimport com.feedhenry.helloworld_android.R;%0Aimport com.feedhenry.sdk.FH;%0Aimport com.feedhenry.sdk.FHActCallback;%0Aimport com.feedhenry.sdk.FHResponse
+%0Aimport com.feedhenry.helloworld_android.R;%0Aimport com.feedhenry.sdk.FH
 ;%0A%0Ap

Remove unused import