|
@@ -1,7 +1,11 @@
|
|
|
package de.tudarmstadt.informatik.hostage.ui.fragment;
|
|
|
|
|
|
+import android.app.AlertDialog;
|
|
|
import android.app.FragmentManager;
|
|
|
+import android.content.DialogInterface;
|
|
|
+import android.content.SharedPreferences;
|
|
|
import android.os.Bundle;
|
|
|
+import android.text.Html;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
@@ -10,6 +14,7 @@ import android.widget.TextView;
|
|
|
import de.tudarmstadt.informatik.hostage.R;
|
|
|
import de.tudarmstadt.informatik.hostage.commons.HelperUtils;
|
|
|
import de.tudarmstadt.informatik.hostage.system.Device;
|
|
|
+import de.tudarmstadt.informatik.hostage.ui.activity.MainActivity;
|
|
|
|
|
|
/**
|
|
|
* @author Alexander Brakowski
|
|
@@ -64,6 +69,16 @@ public class SettingsFragment extends UpNavigatibleFragment {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ v.findViewById(R.id.porthack_info_button).setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+ AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.getInstance());
|
|
|
+ builder.setMessage(Html.fromHtml(getString(R.string.porthack_explanation)));
|
|
|
+ AlertDialog alert = builder.create();
|
|
|
+ alert.show();
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
return v;
|
|
|
}
|
|
|
|