[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] fix string variable values
commit feedb3b20d224d8149a950fa936337f42b684c7f
Author: n8fr8 <nathan@xxxxxxxxxxxxxxxxxxxx>
Date: Fri Apr 24 23:13:20 2020 -0400
fix string variable values
---
.../org/torproject/android/ui/onboarding/CustomSlideBigText.java | 6 ++++--
orbotservice/src/main/res/values/strings.xml | 8 ++++++++
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/app/src/main/java/org/torproject/android/ui/onboarding/CustomSlideBigText.java b/app/src/main/java/org/torproject/android/ui/onboarding/CustomSlideBigText.java
index ad4810b5..4e887a17 100644
--- a/app/src/main/java/org/torproject/android/ui/onboarding/CustomSlideBigText.java
+++ b/app/src/main/java/org/torproject/android/ui/onboarding/CustomSlideBigText.java
@@ -85,11 +85,12 @@ public class CustomSlideBigText extends Fragment {
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
if (savedInstanceState != null) {
+ /**
title.setText(savedInstanceState.getString(getResources().getString(R.string.Pref_title)));
bigTextSub.setText(savedInstanceState.getString(getResources().getString(R.string.SubTitle)));
if (mButtonText != null) {
button.setText(savedInstanceState.getString(getResources().getString(R.string.ButtonText)));
- }
+ }**/
}
}
@@ -98,11 +99,12 @@ public class CustomSlideBigText extends Fragment {
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
+ /**
outState.putString(getResources().getString(R.string.Pref_title), mTitle);
outState.putString(getResources().getString(R.string.SubTitle), mSubTitle);
if (mButtonText != null) {
outState.putString(getResources().getString(R.string.ButtonText), mButtonText);
- }
+ }**/
}
}
diff --git a/orbotservice/src/main/res/values/strings.xml b/orbotservice/src/main/res/values/strings.xml
index d0b41f99..603207fa 100644
--- a/orbotservice/src/main/res/values/strings.xml
+++ b/orbotservice/src/main/res/values/strings.xml
@@ -35,4 +35,12 @@
<string name="menu_new_identity">New Identity</string>
+
+ <string name="Title">Title</string>
+ <string name="SubTitle">SubTitle</string>
+ <string name="ButtonText">ButtonText</string>
+ <string name="WelcomeFragment">welcome</string>
+ <string name="Intro2Fragment">intro2</string>
+ <string name="CS2Fragment">cs2</string>
+ <string name="CS3Fragment">cs3</string>
</resources>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits