diff options
author | Parménides GV <parmegv@sdf.org> | 2014-04-09 11:42:06 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-04-09 11:45:15 +0200 |
commit | 3ef75e60fef1f16d6a97c3b4ad80c45e362b82ef (patch) | |
tree | d34c0998afe507ffb708099f5e00d9531c45e8ac /bitmask_android | |
parent | c12319eb8ff27f41ae577aee19fd341d6191c3d7 (diff) |
Danger on resources split into debug and release.
New provider dialog resources use danger_on checkbox in debug, but not in release.
This kind of solutions forces us to maintain 2 different codebases for the same class, so beware for next updates.
Next step: split java code.
Diffstat (limited to 'bitmask_android')
-rw-r--r-- | bitmask_android/src/debug/res/layout-xlarge/new_provider_dialog.xml (renamed from bitmask_android/src/main/res/layout-xlarge/new_provider_dialog.xml) | 0 | ||||
-rw-r--r-- | bitmask_android/src/debug/res/layout/new_provider_dialog.xml (renamed from bitmask_android/src/main/res/layout/new_provider_dialog.xml) | 0 | ||||
-rw-r--r-- | bitmask_android/src/debug/res/values/strings.xml | 4 | ||||
-rw-r--r-- | bitmask_android/src/release/res/layout-xlarge/new_provider_dialog.xml | 19 | ||||
-rw-r--r-- | bitmask_android/src/release/res/layout/new_provider_dialog.xml | 18 |
5 files changed, 41 insertions, 0 deletions
diff --git a/bitmask_android/src/main/res/layout-xlarge/new_provider_dialog.xml b/bitmask_android/src/debug/res/layout-xlarge/new_provider_dialog.xml index fc7d84ab..fc7d84ab 100644 --- a/bitmask_android/src/main/res/layout-xlarge/new_provider_dialog.xml +++ b/bitmask_android/src/debug/res/layout-xlarge/new_provider_dialog.xml diff --git a/bitmask_android/src/main/res/layout/new_provider_dialog.xml b/bitmask_android/src/debug/res/layout/new_provider_dialog.xml index 19b8f442..19b8f442 100644 --- a/bitmask_android/src/main/res/layout/new_provider_dialog.xml +++ b/bitmask_android/src/debug/res/layout/new_provider_dialog.xml diff --git a/bitmask_android/src/debug/res/values/strings.xml b/bitmask_android/src/debug/res/values/strings.xml new file mode 100644 index 00000000..3e568115 --- /dev/null +++ b/bitmask_android/src/debug/res/values/strings.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="danger_checkbox">Skip security check</string> +</resources> diff --git a/bitmask_android/src/release/res/layout-xlarge/new_provider_dialog.xml b/bitmask_android/src/release/res/layout-xlarge/new_provider_dialog.xml new file mode 100644 index 00000000..12616625 --- /dev/null +++ b/bitmask_android/src/release/res/layout-xlarge/new_provider_dialog.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + android:textSize="24sp" > + + <EditText + android:id="@+id/new_provider_url" + android:inputType="textUri" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:layout_marginLeft="4dp" + android:layout_marginRight="4dp" + android:textSize="24sp" + android:hint="@string/new_provider_uri" /> + +</LinearLayout> diff --git a/bitmask_android/src/release/res/layout/new_provider_dialog.xml b/bitmask_android/src/release/res/layout/new_provider_dialog.xml new file mode 100644 index 00000000..36eb0d6a --- /dev/null +++ b/bitmask_android/src/release/res/layout/new_provider_dialog.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <EditText + android:id="@+id/new_provider_url" + android:inputType="textUri" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:layout_marginLeft="4dp" + android:layout_marginRight="4dp" + android:layout_marginBottom="4dp" + android:hint="@string/new_provider_uri" /> + +</LinearLayout> |