From 724cb3ae1e9a740a99dc607f8fac0b00ff2e5930 Mon Sep 17 00:00:00 2001 From: Jason Monk <jmonk@google.com> Date: Thu, 18 Jun 2015 10:36:39 -0400 Subject: Allow give/take in app version/disabled fields Switch to wrap_content so if one view is smaller, the other can use its space. Bug: 21901206 Change-Id: Ic69d2577c3291e6ed171caa0fa361ccc43eaf180 --- res/layout/widget_text_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/layout/widget_text_views.xml b/res/layout/widget_text_views.xml index 2e029e8..ea49fa5 100644 --- a/res/layout/widget_text_views.xml +++ b/res/layout/widget_text_views.xml @@ -21,7 +21,7 @@ <TextView android:id="@+id/widget_text1" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:layout_gravity="fill_horizontal|top" @@ -34,7 +34,7 @@ <TextView android:id="@+id/widget_text2" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:layout_marginStart="8dip" -- cgit v1.1 From 0001e8bcaa2095c86e7edd2a39f49b7dff927f43 Mon Sep 17 00:00:00 2001 From: Jason Monk <jmonk@google.com> Date: Thu, 18 Jun 2015 12:36:34 -0400 Subject: Fix opening secured networks from QS Bug: 21908788 Change-Id: I09b1d22ae8b1815e720bd8c05fa1e38d66d1dcfd --- src/com/android/settings/wifi/WifiSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java index fed8fd8..cce1966 100644 --- a/src/com/android/settings/wifi/WifiSettings.java +++ b/src/com/android/settings/wifi/WifiSettings.java @@ -650,7 +650,7 @@ public class WifiSettings extends RestrictedSettingsFragment AccessPointPreference preference = new AccessPointPreference(accessPoint, getActivity(), false); - if (mOpenSsid != null && mOpenSsid.equals(accessPoint.getSsid()) + if (mOpenSsid != null && mOpenSsid.equals(accessPoint.getSsidStr()) && !accessPoint.isSaved() && accessPoint.getSecurity() != AccessPoint.SECURITY_NONE) { onPreferenceTreeClick(getPreferenceScreen(), preference); -- cgit v1.1 From ab9c31420141d5b095f6e4349d9e3295ccdd7807 Mon Sep 17 00:00:00 2001 From: Zoltan Szatmary-Ban <szatmz@google.com> Date: Mon, 13 Jul 2015 12:37:31 +0100 Subject: Do not throw exception when MeasurementDetails.mediaSize is empty It is legitimate for StorageMeasurement.measureExactStorage to return without any user keys added to the returned MeasurementDetails, when the following is true: mVolume == null || !mVolume.isMountedReadable() Bug: 22394495 Change-Id: Ie40bd468a487208d98dc56aae41fdad7098f41a5 --- src/com/android/settings/deviceinfo/PrivateVolumeSettings.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/android/settings/deviceinfo/PrivateVolumeSettings.java b/src/com/android/settings/deviceinfo/PrivateVolumeSettings.java index 991aeb7..9a6b7a7 100644 --- a/src/com/android/settings/deviceinfo/PrivateVolumeSettings.java +++ b/src/com/android/settings/deviceinfo/PrivateVolumeSettings.java @@ -527,8 +527,7 @@ public class PrivateVolumeSettings extends SettingsPreferenceFragment { } } } else { - throw new IllegalStateException( - "MeasurementDetails mediaSize array does not have key for user " + userId); + Log.w(TAG, "MeasurementDetails mediaSize array does not have key for user " + userId); } return total; } -- cgit v1.1 From 80a4228e5bd05d30ab04a67fa90bf3acfbc01165 Mon Sep 17 00:00:00 2001 From: Fyodor Kupolov <fkupolov@google.com> Date: Mon, 27 Jul 2015 12:24:59 -0700 Subject: Added android.permission.PEERS_MAC_ADDRESS permission This permission is required for Settings to have access to BT/WiFi scan results even if location is turned off. Bug: 21852542 Bug: 22728628 Change-Id: I1b527f78077b45a326fd22d9b4ed92f9f806ff49 --- AndroidManifest.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 1fef233..600134e 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -80,6 +80,7 @@ <uses-permission android:name="android.permission.MANAGE_FINGERPRINT" /> <uses-permission android:name="android.permission.USER_ACTIVITY" /> <uses-permission android:name="android.permission.CHANGE_APP_IDLE_STATE" /> + <uses-permission android:name="android.permission.PEERS_MAC_ADDRESS"/> <application android:label="@string/settings_label" android:icon="@mipmap/ic_launcher_settings" -- cgit v1.1 From 85aa7bbdeacef5c20f89f02ad2ae512d7888d545 Mon Sep 17 00:00:00 2001 From: Paul Lawrence <paullawrence@google.com> Date: Wed, 12 Aug 2015 13:49:34 -0700 Subject: Stop crash on repeated enters on virtual keyboard Change https://googleplex-android-review.git.corp.google.com/#/c/742462/ removed the mDone since graying out the button seemed to remove the need for this. However, you can also enter this command repeatedly from the soft keyboard. Put mDone back. Bug: 23181625 Change-Id: I42e8ecb9824b17825778c9c113130506cc3a200b --- src/com/android/settings/ChooseLockPassword.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/com/android/settings/ChooseLockPassword.java b/src/com/android/settings/ChooseLockPassword.java index cb924cb..bc370c9 100644 --- a/src/com/android/settings/ChooseLockPassword.java +++ b/src/com/android/settings/ChooseLockPassword.java @@ -146,6 +146,10 @@ public class ChooseLockPassword extends SettingsActivity { private int mRequestedQuality = DevicePolicyManager.PASSWORD_QUALITY_NUMERIC; private ChooseLockSettingsHelper mChooseLockSettingsHelper; private Stage mUiStage = Stage.Introduction; + + // True once we have confirmed new PIN/password to prevent virtual keyboard + // re-entries of the same PIN + private boolean mDone = false; private TextView mHeaderText; private String mFirstPin; private KeyboardView mKeyboardView; @@ -302,6 +306,7 @@ public class ChooseLockPassword extends SettingsActivity { mCurrentPassword = savedInstanceState.getString(KEY_CURRENT_PASSWORD); } } + mDone = false; if (activity instanceof SettingsActivity) { final SettingsActivity sa = (SettingsActivity) activity; int id = mIsAlphaMode ? R.string.lockpassword_choose_your_password_header @@ -509,6 +514,7 @@ public class ChooseLockPassword extends SettingsActivity { public void handleNext() { + if (mDone) return; mChosenPassword = mPasswordEntry.getText().toString(); if (TextUtils.isEmpty(mChosenPassword)) { return; @@ -524,6 +530,7 @@ public class ChooseLockPassword extends SettingsActivity { } else if (mUiStage == Stage.NeedToConfirm) { if (mFirstPin.equals(mChosenPassword)) { setNextEnabled(false); + mDone = true; new SaveChosenPasswordAndFinish().execute(); } else { CharSequence tmp = mPasswordEntry.getText(); -- cgit v1.1 From fc797d6bd369913c2765bda9dbc2cf0a30d96496 Mon Sep 17 00:00:00 2001 From: Selim Cinek <cinek@google.com> Date: Thu, 20 Aug 2015 11:53:47 -0700 Subject: Adapted string length translation limits Bug: 23298302 Change-Id: Id7651b28bab6e4ff37e94b30d68509ae959c6d70 --- res/values/strings.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 75bddc8..e5c63cb 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -707,7 +707,7 @@ <item quantity="one"><xliff:g id="count">%1$d</xliff:g> fingerprint set up</item> <item quantity="other"><xliff:g id="count">%1$d</xliff:g> fingerprints set up</item> </plurals> - <!-- Introduction title shown in fingerprint enrollment dialog [CHAR LIMIT=22] --> + <!-- Introduction title shown in fingerprint enrollment dialog [CHAR LIMIT=29] --> <string name="security_settings_fingerprint_enroll_onboard_title">Fingerprint setup</string> <!-- Introduction message shown in fingerprint enrollment dialog when the user needs to choose an alternate screen unlock (pin, pattern or password) as a backup to fingerprint. --> @@ -718,7 +718,7 @@ <!-- Introduction message shown in fingerprint enrollment dialog, second item to describe what the user needs to do. --> <string name="security_settings_fingerprint_enroll_onboard_message_2">Add your fingerprint</string> - <!-- Introduction title shown in fingerprint enrollment to introduce the fingerprint feature[CHAR LIMIT=22] --> + <!-- Introduction title shown in fingerprint enrollment to introduce the fingerprint feature[CHAR LIMIT=29] --> <string name="security_settings_fingerprint_enroll_introduction_title">Unlock with fingerprint</string> <!-- Introduction detail message shown in fingerprint enrollment dialog [CHAR LIMIT=NONE]--> <string name="security_settings_fingerprint_enroll_introduction_message">Just touch the fingerprint sensor to unlock your phone, authorize purchases, or sign in to apps. Be careful whose fingerprints you add - any fingerprints added will be able to do these things.</string> @@ -730,7 +730,7 @@ <string name="security_settings_fingerprint_enroll_introduction_cancel">Cancel</string> <!-- Button text to continue to the next screen from the introduction [CHAR LIMIT=22] --> <string name="security_settings_fingerprint_enroll_introduction_continue">Continue</string> - <!-- Introduction title shown in fingerprint enrollment dialog to locate the sensor [CHAR LIMIT=22] --> + <!-- Introduction title shown in fingerprint enrollment dialog to locate the sensor [CHAR LIMIT=29] --> <string name="security_settings_fingerprint_enroll_find_sensor_title">Find the sensor</string> <!-- Message shown in fingerprint enrollment dialog to locate the sensor --> <string name="security_settings_fingerprint_enroll_find_sensor_message"> @@ -743,15 +743,15 @@ <string name="security_settings_fingerprint_enroll_dialog_ok">OK</string> <!-- Button text shown in fingerprint dialog that allows the user to delete the fingerprint template [CHAR LIMIT=22] --> <string name="security_settings_fingerprint_enroll_dialog_delete">Delete</string> - <!-- Title shown in fingerprint enrollment dialog to begin enrollment [CHAR LIMIT=22]--> + <!-- Title shown in fingerprint enrollment dialog to begin enrollment [CHAR LIMIT=29]--> <string name="security_settings_fingerprint_enroll_start_title">Let\u2019s start!</string> <!-- Message shown in fingerprint enrollment dialog to begin enrollment [CHAR LIMIT=NONE] --> <string name="security_settings_fingerprint_enroll_start_message">Put your finger on the sensor and lift after you feel a vibration</string> - <!-- Title shown in fingerprint enrollment dialog to repeat touching the fingerprint sensor [CHAR LIMIT=28] --> + <!-- Title shown in fingerprint enrollment dialog to repeat touching the fingerprint sensor [CHAR LIMIT=29] --> <string name="security_settings_fingerprint_enroll_repeat_title">Great! Now repeat</string> <!-- Message shown in fingerprint enrollment dialog to repeat touching the fingerprint sensor [CHAR LIMIT=NONE] --> <string name="security_settings_fingerprint_enroll_repeat_message">Move your finger slightly to add all the different parts of your fingerprint</string> - <!-- Title shown in fingerprint enrollment dialog once enrollment is completed [CHAR LIMIT=22] --> + <!-- Title shown in fingerprint enrollment dialog once enrollment is completed [CHAR LIMIT=29] --> <string name="security_settings_fingerprint_enroll_finish_title">Fingerprint added!</string> <!-- Message shown in fingerprint enrollment dialog once enrollment is completed --> <string name="security_settings_fingerprint_enroll_finish_message">Whenever you see this icon, you can use your fingerprint for identification or to authorize a purchase.</string> -- cgit v1.1