From 53bed0f2e12187db73304d249b1e75e729ad170f Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Fri, 17 Mar 2017 08:59:52 +1100 Subject: [PATCH 01/11] Change language to clarify auto download preference The previous language hinted at the fact we auto download and install updates like Google Play. This is not the case (unless you have priv-ext). To clarify, now we "Automatically _fetch_ updates", ready to install when the user initiates the install. Fixes #839. --- app/src/main/res/values/strings.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8867b0f75..2cc866a90 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -22,8 +22,8 @@ No automatic app list updates Only on Wi-Fi Only update automatically on unmetered networks like Wi-Fi - Automatically download updates - Download the update files in the background + Automatically fetch updates + Updates are downloaded automatically and you are notified to install them Automatically install updates Download and install update apps in the background Update notifications From b177dc2cda20dfb342421d29f8f95fdb579e4c89 Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Mon, 20 Mar 2017 19:42:14 +1100 Subject: [PATCH 02/11] Update "Nearby" splash screen to new UI. Be sure to not hardcode "F-Droid" to ensure it is easier to rebadge F-Droid if creating a whitelabel version. Fixes #894. --- .../fdroid/views/main/MainViewController.java | 6 ++ app/src/main/res/drawable/nearby_splash.xml | 6 ++ app/src/main/res/layout/main_tab_swap.xml | 84 ++++++++++--------- app/src/main/res/values/strings.xml | 4 + 4 files changed, 61 insertions(+), 39 deletions(-) create mode 100644 app/src/main/res/drawable/nearby_splash.xml diff --git a/app/src/main/java/org/fdroid/fdroid/views/main/MainViewController.java b/app/src/main/java/org/fdroid/fdroid/views/main/MainViewController.java index e5e804c3b..72a4dcd17 100644 --- a/app/src/main/java/org/fdroid/fdroid/views/main/MainViewController.java +++ b/app/src/main/java/org/fdroid/fdroid/views/main/MainViewController.java @@ -8,6 +8,7 @@ import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.Button; import android.widget.FrameLayout; +import android.widget.TextView; import org.fdroid.fdroid.R; import org.fdroid.fdroid.views.fragments.PreferencesFragment; @@ -75,6 +76,11 @@ class MainViewController extends RecyclerView.ViewHolder { public void bindSwapView() { View swapView = activity.getLayoutInflater().inflate(R.layout.main_tab_swap, frame, true); + // To allow for whitelabel versions of F-Droid, make sure not to hardcode "F-Droid" into our + // translation here. + TextView subtext = (TextView) swapView.findViewById(R.id.text2); + subtext.setText(activity.getString(R.string.nearby_splash__both_parties_need_fdroid, activity.getString(R.string.app_name))); + Button startButton = (Button) swapView.findViewById(R.id.button); startButton.setOnClickListener(new View.OnClickListener() { @Override diff --git a/app/src/main/res/drawable/nearby_splash.xml b/app/src/main/res/drawable/nearby_splash.xml new file mode 100644 index 000000000..cee12a2cf --- /dev/null +++ b/app/src/main/res/drawable/nearby_splash.xml @@ -0,0 +1,6 @@ + + + diff --git a/app/src/main/res/layout/main_tab_swap.xml b/app/src/main/res/layout/main_tab_swap.xml index bc439185c..adc254e3e 100644 --- a/app/src/main/res/layout/main_tab_swap.xml +++ b/app/src/main/res/layout/main_tab_swap.xml @@ -4,60 +4,66 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="match_parent"> - - + android:layout_height="match_parent" + android:background="#FAFAFA"> - - - - + app:layout_constraintTop_toTopOf="parent" />