edit : okay, I can use Bluetooth when using the Android TV settings sidebar, but not when using the full stock settings app
edit2 and I can enable ADB by using the sidebar too, it looks like the regular settings app is just wrecked
--- packages/SettingsLib/src/com/android/settingslib/drawer/SettingsDrawerActivity.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/SettingsLib/src/com/android/settingslib/drawer/SettingsDrawerActivity.java b/packages/SettingsLib/src/com/android/settingslib/drawer/SettingsDrawerActivity.java index e6e0243..ef49a11 100644 --- a/packages/SettingsLib/src/com/android/settingslib/drawer/SettingsDrawerActivity.java +++ b/packages/SettingsLib/src/com/android/settingslib/drawer/SettingsDrawerActivity.java @@ -263,6 +263,8 @@ public class SettingsDrawerActivity extends Activity { } public void showMenuIcon() { + if (getActionBar() == null) return; + mShowingMenu = true; getActionBar().setHomeAsUpIndicator(R.drawable.ic_menu); getActionBar().setHomeActionContentDescription(R.string.content_description_menu_button); @@ -321,12 +323,14 @@ public class SettingsDrawerActivity extends Activity { private void updateUserHandlesIfNeeded(Tile tile) { List<UserHandle> userHandles = tile.userHandle; - for (int i = userHandles.size() - 1; i >= 0; i--) { - if (mUserManager.getUserInfo(userHandles.get(i).getIdentifier()) == null) { - if (DEBUG) { - Log.d(TAG, "Delete the user: " + userHandles.get(i).getIdentifier()); + if (mUserManager != null) { + for (int i = userHandles.size() - 1; i >= 0; i--) { + if (mUserManager.getUserInfo(userHandles.get(i).getIdentifier()) == null) { + if (DEBUG) { + Log.d(TAG, "Delete the user: " + userHandles.get(i).getIdentifier()); + } + userHandles.remove(i); } - userHandles.remove(i); } } } --
There are currently 5426 users online. 2 members and 5424 guests.
Most users ever online was 37,478 at 04:14 on 26 June 2024.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment