From f5985c76b758ec1d8dfdb4d613f2e3f6df62019d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Wed, 19 Mar 2014 13:51:35 +0100 Subject: Compiles with r9d. Tested in emulators with APIs 14, 15, 16 and 18. --- jni/Application.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jni/Application.mk b/jni/Application.mk index 5670b6e3..0795b5b8 100644 --- a/jni/Application.mk +++ b/jni/Application.mk @@ -1,6 +1,6 @@ APP_ABI := all -NDK_TOOLCHAIN_VERSION=4.4.3 -#APP_PLATFORM := android-14 +NDK_TOOLCHAIN_VERSION=4.8 +APP_PLATFORM := android-14 APP_STL:=stlport_static #APP_OPTIM := release -- cgit v1.2.3 From f07435a05377710c6bb8572ea8c551e3ad858db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Mon, 17 Mar 2014 21:06:43 +0100 Subject: Eip starting => don't turn off the switch on EXIT. This fixes #3161. --- src/se/leap/bitmaskclient/EipServiceFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/se/leap/bitmaskclient/EipServiceFragment.java b/src/se/leap/bitmaskclient/EipServiceFragment.java index 74755a5c..0534838d 100644 --- a/src/se/leap/bitmaskclient/EipServiceFragment.java +++ b/src/se/leap/bitmaskclient/EipServiceFragment.java @@ -179,7 +179,7 @@ public class EipServiceFragment extends Fragment implements StateListener, OnChe statusMessage = getString(R.string.eip_state_connected); getActivity().findViewById(R.id.eipProgress).setVisibility(View.GONE); mEipStartPending = false; - } else if ( (state.equals("NOPROCESS") && !mEipStartPending ) || state.equals("EXITING") || state.equals("FATAL")) { + } else if ( (state.equals("NOPROCESS") && !mEipStartPending ) || state.equals("EXITING") && !mEipStartPending || state.equals("FATAL")) { statusMessage = getString(R.string.eip_state_not_connected); getActivity().findViewById(R.id.eipProgress).setVisibility(View.GONE); mEipStartPending = false; -- cgit v1.2.3 From 5736f636edf5e7e0e2417e7f19608a8bac931f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Mon, 17 Mar 2014 20:20:36 +0100 Subject: Left margin in the about text = 8sp --- res/layout/about.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/res/layout/about.xml b/res/layout/about.xml index ce57564d..4b3f16e0 100644 --- a/res/layout/about.xml +++ b/res/layout/about.xml @@ -4,6 +4,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" + android:layout_marginLeft="8sp" tools:context=".Dashboard" > Date: Mon, 17 Mar 2014 18:21:07 +0100 Subject: Dashboard for 10' screens. --- res/layout-xlarge/about.xml | 121 +++++++++++++++++++++ res/layout-xlarge/client_dashboard.xml | 69 ++++++++++++ .../configuration_wizard_activity.xml | 26 +++++ res/layout-xlarge/eip_service_fragment.xml | 75 +++++++++++++ res/layout-xlarge/log_in_dialog.xml | 39 +++++++ res/layout-xlarge/logwindow.xml | 17 +++ res/layout-xlarge/new_provider_dialog.xml | 24 ++++ res/layout-xlarge/provider_detail_fragment.xml | 40 +++++++ res/layout-xlarge/provider_list_fragment.xml | 15 +++ 9 files changed, 426 insertions(+) create mode 100644 res/layout-xlarge/about.xml create mode 100644 res/layout-xlarge/client_dashboard.xml create mode 100644 res/layout-xlarge/configuration_wizard_activity.xml create mode 100644 res/layout-xlarge/eip_service_fragment.xml create mode 100644 res/layout-xlarge/log_in_dialog.xml create mode 100644 res/layout-xlarge/logwindow.xml create mode 100644 res/layout-xlarge/new_provider_dialog.xml create mode 100644 res/layout-xlarge/provider_detail_fragment.xml create mode 100644 res/layout-xlarge/provider_list_fragment.xml diff --git a/res/layout-xlarge/about.xml b/res/layout-xlarge/about.xml new file mode 100644 index 00000000..ce57564d --- /dev/null +++ b/res/layout-xlarge/about.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout-xlarge/client_dashboard.xml b/res/layout-xlarge/client_dashboard.xml new file mode 100644 index 00000000..bd644e1e --- /dev/null +++ b/res/layout-xlarge/client_dashboard.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout-xlarge/configuration_wizard_activity.xml b/res/layout-xlarge/configuration_wizard_activity.xml new file mode 100644 index 00000000..f3d0e48b --- /dev/null +++ b/res/layout-xlarge/configuration_wizard_activity.xml @@ -0,0 +1,26 @@ + + + + + + + \ No newline at end of file diff --git a/res/layout-xlarge/eip_service_fragment.xml b/res/layout-xlarge/eip_service_fragment.xml new file mode 100644 index 00000000..e5c7f23d --- /dev/null +++ b/res/layout-xlarge/eip_service_fragment.xml @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + diff --git a/res/layout-xlarge/log_in_dialog.xml b/res/layout-xlarge/log_in_dialog.xml new file mode 100644 index 00000000..3a9eebb8 --- /dev/null +++ b/res/layout-xlarge/log_in_dialog.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout-xlarge/logwindow.xml b/res/layout-xlarge/logwindow.xml new file mode 100644 index 00000000..4051c92c --- /dev/null +++ b/res/layout-xlarge/logwindow.xml @@ -0,0 +1,17 @@ + + + + + + + \ No newline at end of file diff --git a/res/layout-xlarge/new_provider_dialog.xml b/res/layout-xlarge/new_provider_dialog.xml new file mode 100644 index 00000000..19b8f442 --- /dev/null +++ b/res/layout-xlarge/new_provider_dialog.xml @@ -0,0 +1,24 @@ + + + + + + + + \ No newline at end of file diff --git a/res/layout-xlarge/provider_detail_fragment.xml b/res/layout-xlarge/provider_detail_fragment.xml new file mode 100644 index 00000000..eb90fad9 --- /dev/null +++ b/res/layout-xlarge/provider_detail_fragment.xml @@ -0,0 +1,40 @@ + + + + + + + + + + \ No newline at end of file diff --git a/res/layout-xlarge/provider_list_fragment.xml b/res/layout-xlarge/provider_list_fragment.xml new file mode 100644 index 00000000..70dbae0d --- /dev/null +++ b/res/layout-xlarge/provider_list_fragment.xml @@ -0,0 +1,15 @@ + + + + + -- cgit v1.2.3 From b517bdfa4849e68516aa9653de03568b43a6d6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Mon, 17 Mar 2014 19:09:40 +0100 Subject: Configuration Wizard sized for tablets. Including provider details. --- .../configuration_wizard_activity.xml | 1 + res/layout-xlarge/provider_detail_fragment.xml | 3 ++ res/layout-xlarge/provider_list_fragment.xml | 5 ++- res/layout-xlarge/provider_list_item.xml | 44 ++++++++++++++++++++++ res/layout/provider_list_item.xml | 43 +++++++++++++++++++++ src/se/leap/bitmaskclient/ProviderListAdapter.java | 2 +- .../leap/bitmaskclient/ProviderListFragment.java | 4 +- 7 files changed, 97 insertions(+), 5 deletions(-) create mode 100644 res/layout-xlarge/provider_list_item.xml create mode 100644 res/layout/provider_list_item.xml diff --git a/res/layout-xlarge/configuration_wizard_activity.xml b/res/layout-xlarge/configuration_wizard_activity.xml index f3d0e48b..bb169e00 100644 --- a/res/layout-xlarge/configuration_wizard_activity.xml +++ b/res/layout-xlarge/configuration_wizard_activity.xml @@ -19,6 +19,7 @@ android:fadingEdge="horizontal" android:singleLine="true" android:text="@string/configuring_provider" + android:textSize="24sp" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_centerHorizontal="true" android:textColor="@android:color/holo_blue_bright" /> diff --git a/res/layout-xlarge/provider_detail_fragment.xml b/res/layout-xlarge/provider_detail_fragment.xml index eb90fad9..4abbaa17 100644 --- a/res/layout-xlarge/provider_detail_fragment.xml +++ b/res/layout-xlarge/provider_detail_fragment.xml @@ -12,6 +12,7 @@ android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:layout_marginTop="16dp" + android:textSize="32sp" android:textAppearance="?android:attr/textAppearanceLarge" android:textStyle="bold" /> @@ -23,6 +24,7 @@ android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:layout_marginBottom="4dp" + android:textSize="24sp" android:textStyle="italic" android:textAppearance="?android:attr/textAppearanceMedium" /> @@ -34,6 +36,7 @@ android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:layout_marginBottom="4dp" + android:textSize="18sp" android:textStyle="normal" android:textAppearance="?android:attr/textAppearanceSmall" /> diff --git a/res/layout-xlarge/provider_list_fragment.xml b/res/layout-xlarge/provider_list_fragment.xml index 70dbae0d..59dd37d1 100644 --- a/res/layout-xlarge/provider_list_fragment.xml +++ b/res/layout-xlarge/provider_list_fragment.xml @@ -2,8 +2,9 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - android:paddingLeft="8dp" - android:paddingRight="8dp" > + android:paddingLeft="12dp" + android:paddingRight="12dp" + android:paddingTop="12dp" > + + + + + + + + + diff --git a/res/layout/provider_list_item.xml b/res/layout/provider_list_item.xml new file mode 100644 index 00000000..8746f6f8 --- /dev/null +++ b/res/layout/provider_list_item.xml @@ -0,0 +1,43 @@ + + + + + + + + + + diff --git a/src/se/leap/bitmaskclient/ProviderListAdapter.java b/src/se/leap/bitmaskclient/ProviderListAdapter.java index c5e8b64d..43bba085 100644 --- a/src/se/leap/bitmaskclient/ProviderListAdapter.java +++ b/src/se/leap/bitmaskclient/ProviderListAdapter.java @@ -101,7 +101,7 @@ public class ProviderListAdapter extends ArrayAdapter { int position = getRealPosition(index); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); - row = (TwoLineListItem)inflater.inflate(android.R.layout.simple_list_item_2, null); + row = (TwoLineListItem)inflater.inflate(R.layout.provider_list_item, null); } else { row = (TwoLineListItem)convertView; } diff --git a/src/se/leap/bitmaskclient/ProviderListFragment.java b/src/se/leap/bitmaskclient/ProviderListFragment.java index f35cf739..db414d87 100644 --- a/src/se/leap/bitmaskclient/ProviderListFragment.java +++ b/src/se/leap/bitmaskclient/ProviderListFragment.java @@ -94,12 +94,12 @@ public class ProviderListFragment extends ListFragment { if(getArguments().containsKey(SHOW_ALL_PROVIDERS)) content_adapter = new ProviderListAdapter( getActivity(), - android.R.layout.simple_list_item_activated_2, + R.layout.provider_list_item, ProviderListContent.ITEMS, getArguments().getBoolean(SHOW_ALL_PROVIDERS)); else content_adapter = new ProviderListAdapter( getActivity(), - android.R.layout.simple_list_item_activated_2, + R.layout.provider_list_item, ProviderListContent.ITEMS); -- cgit v1.2.3 From 8c744c9299417e1417f6ffc73da6af10cde57897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Mon, 17 Mar 2014 19:26:11 +0100 Subject: About fragment text scaled up. Just that. --- res/layout-xlarge/about.xml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/res/layout-xlarge/about.xml b/res/layout-xlarge/about.xml index ce57564d..6ab88737 100644 --- a/res/layout-xlarge/about.xml +++ b/res/layout-xlarge/about.xml @@ -4,6 +4,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" + android:layout_marginLeft="12sp" tools:context=".Dashboard" > + android:layout_height="wrap_content" + android:textSize="18sp" /> + android:layout_height="12sp" /> + android:layout_height="12sp" /> + android:layout_height="12sp" /> + android:layout_height="12sp" /> + android:layout_height="18sp" /> + android:layout_height="12sp" />