* Fix default device name to show the app name. * Add string resource with placeholders. * Wrap line that triggers MaxLineLength lint issue.master
parent
7ab4498771
commit
8ff77b90f3
|
@ -148,6 +148,13 @@ class BackgroundServices(
|
|||
}
|
||||
}
|
||||
|
||||
private val defaultDeviceName = context.getString(
|
||||
R.string.default_device_name,
|
||||
context.getString(R.string.app_name),
|
||||
Build.MANUFACTURER,
|
||||
Build.MODEL
|
||||
)
|
||||
|
||||
/**
|
||||
* We add an observer to the AccountManager so that we can control when the Firebase service
|
||||
* will start/stop. This is only needed when landing the push service to ensure Firebase works
|
||||
|
@ -161,7 +168,6 @@ class BackgroundServices(
|
|||
*/
|
||||
private val accountObserver = object : AccountObserver {
|
||||
override fun onAuthenticationProblems() {}
|
||||
|
||||
override fun onProfileUpdated(profile: Profile) {}
|
||||
|
||||
override fun onLoggedOut() {
|
||||
|
|
|
@ -171,6 +171,10 @@
|
|||
<string name="sync_last_synced_summary">Last synced: %s</string>
|
||||
<!-- Label summary showing never synced -->
|
||||
<string name="sync_never_synced_summary">Last synced: never</string>
|
||||
<!-- Text for displaying the default device name.
|
||||
The first parameter is the application name, the second is the device manufacturer name
|
||||
and the third is the device model. -->
|
||||
<string name="default_device_name">%s on %s %s</string>
|
||||
|
||||
<!-- Send Tab -->
|
||||
<!-- Name of the "receive tabs" notification channel. Displayed in the "App notifications" system settings for the app -->
|
||||
|
|
Loading…
Reference in New Issue