diff --git a/res/layout/layout_wizard_permissions.xml b/res/layout/layout_wizard_permissions.xml
index f7ecab80..168968b7 100644
--- a/res/layout/layout_wizard_permissions.xml
+++ b/res/layout/layout_wizard_permissions.xml
@@ -39,6 +39,7 @@
+
diff --git a/res/layout/layout_wizard_root.xml b/res/layout/layout_wizard_root.xml
index 62afa38a..afe60052 100644
--- a/res/layout/layout_wizard_root.xml
+++ b/res/layout/layout_wizard_root.xml
@@ -41,12 +41,17 @@
android:layout_height="fill_parent"
android:padding="3px">
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/res/values/strings.xml b/res/values/strings.xml
index daf8f3c2..af22a499 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -88,7 +88,6 @@
While it is not required, Orbot can become a more powerful tool if your device has root access. Use the button below to grant Orbot superpowers! If you don\'t have root access or have no idea what we\'re talking about, just be sure to use apps made to work with Orbot.
- I understand and would like to continue without rootGrant Root for OrbotConfigure Torification
@@ -137,6 +136,7 @@
Orbot has detected that you have root permissions enabled. To enable \'Transparent Proxying\', please grant superuser privileges to OrbotIf you choose to continue without providing superuser privileges, make sure to use apps made to work with orbotOrbot has detected that you do not have root permissions.\nTransparent Proxying is not possible without superuser privileges.\nMake sure to use apps that have been configured to work with Orbot
+ I understand and would like to continue without rootOrbot configured AppsGibberbot - Secure instant messaging client for Android
diff --git a/src/org/torproject/android/ConfigureTransProxy.java b/src/org/torproject/android/ConfigureTransProxy.java
index 3969dbbc..3f0f31cf 100644
--- a/src/org/torproject/android/ConfigureTransProxy.java
+++ b/src/org/torproject/android/ConfigureTransProxy.java
@@ -24,7 +24,8 @@ import android.widget.Toast;
public class ConfigureTransProxy extends Activity implements TorConstants {
private Context context;
- private int flag =0;
+ private int flag = 0;
+
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
@@ -63,8 +64,15 @@ public class ConfigureTransProxy extends Activity implements TorConstants {
@Override
public void onCheckedChanged(RadioGroup group, int checkedId){
-
- flag = 0;
+ Button next = ((Button)findViewById(R.id.btnWizard2));
+ next.setOnClickListener(new View.OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+
+ showWizardFinal();
+ }
+ });
RadioButton rb0 = (RadioButton)findViewById(R.id.radio0);
RadioButton rb1 = (RadioButton)findViewById(R.id.radio1);
@@ -90,6 +98,16 @@ public class ConfigureTransProxy extends Activity implements TorConstants {
pEdit1.putBoolean(PREF_TRANSPARENT_ALL, false);
pEdit1.commit();
+ next.setOnClickListener(new View.OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+
+ context.startActivity(new Intent(context, AppManager.class));
+
+
+ }
+ });
}
diff --git a/src/org/torproject/android/Permissions.java b/src/org/torproject/android/Permissions.java
index a37d3c39..a29b04af 100644
--- a/src/org/torproject/android/Permissions.java
+++ b/src/org/torproject/android/Permissions.java
@@ -14,6 +14,9 @@ import android.preference.PreferenceManager;
import android.util.Log;
import android.view.View;
import android.widget.Button;
+import android.widget.CheckBox;
+import android.widget.CompoundButton;
+import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.TextView;
import android.widget.Toast;
@@ -110,6 +113,38 @@ public class Permissions extends Activity implements TorConstants {
Button back = ((Button)findViewById(R.id.btnWizard1));
Button next = ((Button)findViewById(R.id.btnWizard2));
+ next.setClickable(false);
+
+ CheckBox consent = (CheckBox)findViewById(R.id.checkBox);
+ consent.setVisibility(CheckBox.VISIBLE);
+
+ consent.setOnCheckedChangeListener(new OnCheckedChangeListener (){
+
+ @Override
+ public void onCheckedChanged(CompoundButton buttonView,
+ boolean isChecked) {
+
+
+ SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
+
+ Editor pEdit = prefs.edit();
+
+ pEdit.putBoolean(PREF_TRANSPARENT, isChecked);
+ pEdit.putBoolean(PREF_TRANSPARENT_ALL, isChecked);
+
+ pEdit.commit();
+
+ Button next = ((Button)findViewById(R.id.btnWizard2));
+ if(isChecked)
+ next.setClickable(true);
+ else
+ next.setClickable(false);
+
+
+ }
+
+ });
+
grantPermissions.setOnClickListener(new View.OnClickListener() {