diff options
author | cyberta <cyberta@riseup.net> | 2020-07-25 14:25:29 -0700 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2020-07-25 14:25:29 -0700 |
commit | 16230c193a7b9a9035e790caf4b1c19fa3b7c048 (patch) | |
tree | 0f4da005b0c8579d3313583e27be89b41f33b27e /app/src/main | |
parent | 32c0ca9f843f80fb3a6541fe1938a2cab1047483 (diff) | |
parent | 0cccd75c756f8b5ba26601986bba8ffb501dfcf7 (diff) |
Merge branch 'riseup_background_compatibility' into 'master'
fix android 4 UI bugs
See merge request leap/bitmask_android!112
Diffstat (limited to 'app/src/main')
5 files changed, 24 insertions, 15 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/FragmentManagerEnhanced.java b/app/src/main/java/se/leap/bitmaskclient/FragmentManagerEnhanced.java index 4d0d4785..f4215e89 100644 --- a/app/src/main/java/se/leap/bitmaskclient/FragmentManagerEnhanced.java +++ b/app/src/main/java/se/leap/bitmaskclient/FragmentManagerEnhanced.java @@ -34,7 +34,6 @@ public class FragmentManagerEnhanced { if (previousFragment != null) { transaction.remove(previousFragment); } - transaction.addToBackStack(null); return transaction; } diff --git a/app/src/main/java/se/leap/bitmaskclient/ProviderListBaseActivity.java b/app/src/main/java/se/leap/bitmaskclient/ProviderListBaseActivity.java index 4f555f94..44258a7b 100644 --- a/app/src/main/java/se/leap/bitmaskclient/ProviderListBaseActivity.java +++ b/app/src/main/java/se/leap/bitmaskclient/ProviderListBaseActivity.java @@ -19,9 +19,10 @@ package se.leap.bitmaskclient; import android.content.Intent; import android.os.Bundle; -import androidx.annotation.NonNull; import android.widget.ListView; +import androidx.annotation.NonNull; + import com.pedrogomez.renderers.Renderer; import java.util.ArrayList; @@ -31,7 +32,6 @@ import javax.inject.Inject; import butterknife.InjectView; import butterknife.OnItemClick; -import se.leap.bitmaskclient.fragments.AboutFragment; import static se.leap.bitmaskclient.Constants.REQUEST_CODE_ADD_PROVIDER; import static se.leap.bitmaskclient.Constants.REQUEST_CODE_CONFIGURE_LEAP; diff --git a/app/src/main/res/layout/donation_reminder_dialog.xml b/app/src/main/res/layout/donation_reminder_dialog.xml index dc16906b..3af36086 100644 --- a/app/src/main/res/layout/donation_reminder_dialog.xml +++ b/app/src/main/res/layout/donation_reminder_dialog.xml @@ -32,20 +32,12 @@ android:gravity="center" android:text="@string/donate_message" /> - <androidx.cardview.widget.CardView + <de.hdodenhof.circleimageview.CircleImageView + android:id="@+id/donation_logo" android:layout_width="120dp" android:layout_height="120dp" - android:innerRadius="0dp" - android:shape="ring" - app:cardCornerRadius="60dp"> - <ImageView - android:id="@+id/donation_logo" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:scaleType="centerCrop" - app:srcCompat="@drawable/donation_img" /> - </androidx.cardview.widget.CardView> - + android:src="@drawable/donation_img" + /> <Button android:id="@+id/btnDonate" diff --git a/app/src/main/res/layout/f_about.xml b/app/src/main/res/layout/f_about.xml index 86be3a56..22053054 100644 --- a/app/src/main/res/layout/f_about.xml +++ b/app/src/main/res/layout/f_about.xml @@ -250,6 +250,21 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/copyright_shapeshifter_transports" /> + + <Space + android:layout_width="match_parent" + android:layout_height="20sp" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/circleImageView" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/copyright_circleImageView" /> </LinearLayout> </ScrollView> diff --git a/app/src/main/res/values/untranslatable.xml b/app/src/main/res/values/untranslatable.xml index 50e44fce..0d680b96 100644 --- a/app/src/main/res/values/untranslatable.xml +++ b/app/src/main/res/values/untranslatable.xml @@ -41,4 +41,7 @@ <string name="copyright_shapeshifter_transports" translatable="false">Copyright (c) 2014, Yawning Angel (yawning at torproject dot org) \n All rights reserved.</string> <string name="shapeshifter_dispatcher" translatable="false">Shapeshifter Dispatcher</string> <string name="copyright_shapeshifter_dispatcher" translatable="false">Copyright (c) 2014, Yawning Angel (yawning at torproject dot org) \n All rights reserved.</string> + <string name="circleImageView" translatable="false">CircleImageView</string> + <string name="copyright_circleImageView" translatable="false">Copyright 2014 - 2020 Henning Dodenhof. Licensed under the Apache License, Version 2.0 </string> + </resources> |