Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Bug Fix : rename the device name when the user has udpated device name (
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyuoli committed Jul 16, 2018
1 parent 1e1d871 commit 0d6769f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Other changes:
Bugfix:
- Fix issue on incoming call screen when "Do not disturb mode" is active (#2417)
- Fix issue when selecting sound for notifications in the settings
- Fix issue when changing device name in the settings (#2416)
- Fix issue on verifying device, update the wording of the description message (#1067)

Translations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2329,7 +2329,7 @@ class VectorSettingsPreferencesFragment : PreferenceFragment(), SharedPreference
// detect if the updated device is the current account one
val pref = findPreference(PreferencesManager.SETTINGS_ENCRYPTION_INFORMATION_DEVICE_ID_PREFERENCE_KEY)
if (TextUtils.equals(pref.summary, aDeviceInfoToRename.device_id)) {
findPreference(PreferencesManager.SETTINGS_ENCRYPTION_INFORMATION_DEVICE_ID_PREFERENCE_KEY).summary = input.text
findPreference(PreferencesManager.SETTINGS_ENCRYPTION_INFORMATION_DEVICE_NAME_PREFERENCE_KEY).summary = input.text
}

hideLoadingView()
Expand Down

0 comments on commit 0d6769f

Please sign in to comment.