Skip to content

Commit a473311

Browse files
committed
Add terms notice during signup
1 parent 975cc5a commit a473311

File tree

75 files changed

+1761
-1742
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1761
-1742
lines changed

OpenScienceJournal/whistlepunk_library/src/main/java/com/google/android/apps/forscience/whistlepunk/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {
432432
} else if (itemId == R.id.navigation_item_terms_and_conditions) {
433433
final Intent intent = new Intent(this, WebActivity.class);
434434
intent.putExtra(WebActivity.EXTRA_KEY_TITLE, getString(R.string.terms));
435-
intent.putExtra(WebActivity.EXTRA_KEY_URL, getString(R.string.config_terms));
435+
intent.putExtra(WebActivity.EXTRA_KEY_URL, getString(R.string.config_auth_terms));
436436
startActivity(intent);
437437
} else {
438438
drawerLayout.closeDrawers();

OpenScienceJournal/whistlepunk_library/src/main/res/layout/fragment_arduino_auth_sign_up_adult_step_2.xml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,25 @@
156156
</androidx.constraintlayout.widget.ConstraintLayout>
157157
</LinearLayout>
158158

159+
<TextView
160+
android:id="@+id/terms_notice"
161+
style="@style/ArduinoAuth_Text"
162+
android:layout_width="wrap_content"
163+
android:layout_height="wrap_content"
164+
android:layout_marginTop="30dp"
165+
android:gravity="center"
166+
android:maxWidth="360dp"
167+
android:paddingStart="20dp"
168+
android:paddingEnd="20dp"
169+
android:text="@string/arduino_auth_sign_up_privacy_and_terms_notice"
170+
android:textSize="14sp"
171+
android:textColor="@color/arduino_asbestos"
172+
android:lineSpacingExtra="5sp"
173+
android:letterSpacing="0.01"
174+
app:layout_constraintEnd_toEndOf="parent"
175+
app:layout_constraintStart_toStartOf="parent"
176+
app:layout_constraintTop_toBottomOf="@id/options_container" />
177+
159178
<TextView
160179
android:id="@+id/btn_next"
161180
style="@style/ArduinoAuth_Button"
@@ -167,6 +186,6 @@
167186
android:paddingEnd="30dp"
168187
android:text="@string/arduino_auth_sign_up_action"
169188
app:layout_constraintEnd_toEndOf="@id/options_container"
170-
app:layout_constraintTop_toBottomOf="@id/options_container" />
189+
app:layout_constraintTop_toBottomOf="@id/terms_notice" />
171190
</androidx.constraintlayout.widget.ConstraintLayout>
172191
</ScrollView>

OpenScienceJournal/whistlepunk_library/src/main/res/values-ar/strings.xml

Lines changed: 39 additions & 39 deletions
Large diffs are not rendered by default.

OpenScienceJournal/whistlepunk_library/src/main/res/values-bg/strings.xml

Lines changed: 40 additions & 40 deletions
Large diffs are not rendered by default.

OpenScienceJournal/whistlepunk_library/src/main/res/values-bs-rBA/strings.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,15 @@
202202
<string name="sensor_desc_short_raw">Postotak izravnog neobrađenog očitanja s vanjskog senzora.</string>
203203
<string name="sensor_desc_short_barometer">Atmosferski tlak mjeri se u hektopaskalima (hPa).</string>
204204
<string name="sensor_desc_first_paragraph_light">The ambient light sensor measures light in lux, a measure of illumination that depends on the amount of incoming light and the area over which it is spread.
205-
205+
206206

207207
A full moon provides about 1 lux of illumination, a typical lamp-lit living room about 50 lux, classroom lighting and sunrise and sunset about 400 lux, daylight (indirect sun) over 10,000 lux, and direct sun over 30,000 lux.
208-
208+
209209

210210
Lux is an unfamiliar unit for most of us. When we buy lightbulbs, we often shop by watts—but the wattage of a bulb doesn\'t tell you how bright a bulb is, only how much energy it uses. Lumens are a better measure for light shopping; they tell you how much light a bulb will actually produce. Lux, meanwhile, tells you how much of that light arrives at a particular area.
211211
</string>
212212
<string name="sensor_desc_second_paragraph_light">Since light spreads out as it travels, the number of lux dwindles as you back away from a light source, even though the source is still emitting the same amount of light in lumens. An area that is tilted away from a light sources also receives less illumination—which happens to be why the equatorial regions here on Earth are so much warmer than the chilly poles.
213-
213+
214214

215215
By the way, the purpose of the light sensor in your phone is to control the light level of the screen, adjusting accordingly to dim and bright environments. Inside the light sensor, a tiny semiconductor responds to incoming light by producing a small but measurable electrical current—a phenomenon known as the photoelectric effect. Similar sensors are used in some streetlights to turn them on when it gets dark outside.
216216
</string>
@@ -775,8 +775,8 @@ If you have existing data on this device, once signed in, you can save your exis
775775
<string name="drive_sync_intro_skip">SKIP</string>
776776
<string name="drive_sync_intro_more_text">The Arduino Science Journal app and Arduino never access your experiments created in the App, as they are only saved locally, nor do they access your documents in Google Drive, under any circumstances, even when Cloud Sync is active. The Arduino Science Journal app will ask for your permission to see, create and delete files with the sole purpose of saving and backing up your experiments in a Google Drive’s folder of your choice.
777777
You can change your preferences at any time straight from your Google account, or you can decide to revoke Cloud Sync’s access directly from the App.
778-
If you use a Google Account through your organization or school, you may not be able to back up your files. Check with your administrator first.
779-
If you have any doubt about Google Drive policies and/or if you have any problems related to the updates of Google Drive, please contact directly Google, as only the latter can help you deal with problems on your Google Drive account and folders.
778+
If you use a Google Account through your organization or school, you may not be able to back up your files. Check with your administrator first.
779+
If you have any doubt about Google Drive policies and/or if you have any problems related to the updates of Google Drive, please contact directly Google, as only the latter can help you deal with problems on your Google Drive account and folders.
780780
If you have any doubts or questions about Google\'s policies, permissions and privacy policies, please read Google’s T&amp;Cs and privacy policy.</string>
781781
<string name="drive_sync_folder_picker_title">Select a folder</string>
782782
<string name="drive_sync_folder_picker_text">Choose where you would like to save your experiments</string>
@@ -833,7 +833,7 @@ If you have any doubts or questions about Google\'s policies, permissions and pr
833833
<string name="arduino_auth_terms">Terms Of Service</string>
834834
<string name="arduino_auth_privacy">Privacy Policy</string>
835835
<string name="config_auth_privacy">https://www.arduino.cc/en/privacy-policy/?embed</string>
836-
<string name="config_auth_terms">https://www.arduino.cc/en/terms-conditions/?embed</string>
836+
<string name="config_auth_terms">https://www.arduino.cc/en/sj-terms-conditions/?embed</string>
837837
<string name="drive_setup_step_1_title">Cloud Sync</string>
838838
<string name="drive_setup_step_1_description">Experiment data for Science Journal can be saved and made available across devices using Google Drive which requires signing in with a Google Account.</string>
839839
<string name="drive_setup_step_1_popup">If you have existing data on this device, once signed in, you can save your existing experiments to Google Drive. Your experiments are sotred in a folder of your choice in Google Drive.</string>
@@ -937,5 +937,5 @@ You will use this username to log in to Arduino, and other users will see it whe
937937
<string name="arduino_auth_settings_drive_start_notice">The Cloud Sync will start shortly. It may take some minutes to complete.</string>
938938
<string name="arduino_auth_settings_drive_confirm_button">Confirm</string>
939939
<string name="arduino_auth_settings_drive_loading_indicator_text">Syncing</string>
940-
<string name="config_terms">https://www.arduino.cc/en/sj-terms-conditions/?embed</string>
940+
<string name="arduino_auth_sign_up_privacy_and_terms_notice">By signing up you are agreeing to Arduino Terms of Service, and Privacy Policy</string>
941941
</resources>

0 commit comments

Comments
 (0)