package com.yeokm1.nussocprintandroid.core;

import android.app.Activity;

import com.flurry.android.FlurryAgent;

/**
 * Created by yeokm1 on 21/12/2014.
 */
public abstract class FlurryActivity extends Activity{
    @Override
    protected void onStart(){
        super.onStart();
        if(HelperFunctions.isOS10AndAbove()) {
            FlurryAgent.onStartSession(this, FlurryFunctions.FLURRY_APIKEY);
        }
    }

    @Override
    protected void onStop(){
        super.onStop();
        if(HelperFunctions.isOS10AndAbove()) {
            FlurryAgent.onEndSession(this);
        }
    }
}

@@ -72,48 +72,8 @@
 y;%0A%0A
-import com.flurry.android.FlurryAgent;%0A%0A
 /**%0A
@@ -240,33 +240,30 @@
 ();%0A        
-if(Helper
+Flurry
 Functions.is
@@ -264,114 +264,30 @@
 ons.
-isOS10AndAbove()) %7B%0A            FlurryAgent.onStartSession(this, FlurryFunctions.FLURRY_APIKEY);%0A        %7D
+activityOnStart(this);
 %0A   
@@ -369,17 +369,14 @@
     
-if(Helper
+Flurry
 Func
@@ -385,81 +385,29 @@
 ons.
-isOS10AndAbove()) %7B%0A            FlurryAgent.onEndSession(this);%0A        %7D
+activityOnStop(this);
 %0A   

use refactored methods