diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/InsulinOrefCurves/InsulinOrefBaseFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/InsulinOrefCurves/InsulinOrefBaseFragment.java deleted file mode 100644 index d9cd795792..0000000000 --- a/app/src/main/java/info/nightscout/androidaps/plugins/InsulinOrefCurves/InsulinOrefBaseFragment.java +++ /dev/null @@ -1,54 +0,0 @@ -package info.nightscout.androidaps.plugins.InsulinOrefCurves; - -import android.os.Bundle; -import android.support.v4.app.Fragment; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.TextView; - -import info.nightscout.androidaps.MainApp; -import info.nightscout.androidaps.R; -import info.nightscout.androidaps.plugins.InsulinFastacting.ActivityGraph; - -/** - * Created by mike on 17.04.2017. - */ - -public abstract class InsulinOrefBaseFragment extends Fragment { - - static InsulinOrefBasePlugin insulinPlugin = null; - - TextView insulinName; - TextView insulinComment; - TextView insulinDia; - ActivityGraph insulinGraph; - - public View onCreateView(LayoutInflater inflater, ViewGroup container, - Bundle savedInstanceState) { - View view = inflater.inflate(R.layout.insulin_fragment, container, false); - - insulinName = (TextView) view.findViewById(R.id.insulin_name); - insulinComment = (TextView) view.findViewById(R.id.insulin_comment); - insulinDia = (TextView) view.findViewById(R.id.insulin_dia); - insulinGraph = (ActivityGraph) view.findViewById(R.id.insuling_graph); - - updateGUI(); - - return view; - } - - @Override - public void onResume() { - super.onResume(); - updateGUI(); - } - - private void updateGUI() { - insulinName.setText(insulinPlugin.getFriendlyName()); - insulinComment.setText(insulinPlugin.getComment()); - insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + new Double(insulinPlugin.getDia()).toString() + "h"); - insulinGraph.show(insulinPlugin); - } - -}