X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/5a22c7e79f1a53ccdbae04327e6ac500f3676a67..5dc43aab3cc1243f9989dd6a0c7dd3350c3f709b:/src/com/owncloud/android/ui/activity/Preferences.java diff --git a/src/com/owncloud/android/ui/activity/Preferences.java b/src/com/owncloud/android/ui/activity/Preferences.java index 1f9632c3..b49bcb68 100644 --- a/src/com/owncloud/android/ui/activity/Preferences.java +++ b/src/com/owncloud/android/ui/activity/Preferences.java @@ -3,9 +3,8 @@ * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. + * it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -33,7 +32,6 @@ import android.preference.Preference; import android.preference.Preference.OnPreferenceChangeListener; import android.preference.Preference.OnPreferenceClickListener; import android.preference.PreferenceManager; -import android.util.Log; import com.actionbarsherlock.app.ActionBar; import com.actionbarsherlock.app.SherlockPreferenceActivity; @@ -103,11 +101,11 @@ public class Preferences extends SherlockPreferenceActivity implements OnPrefere /* About App */ pAboutApp = (Preference) findPreference("about_app"); if (pAboutApp != null) { - pAboutApp.setTitle(getString(R.string.app_name)+" "+getString(R.string.about_android)); + pAboutApp.setTitle(String.format(getString(R.string.about_android), getString(R.string.app_name))); PackageInfo pkg; try { pkg = getPackageManager().getPackageInfo(getPackageName(), 0); - pAboutApp.setSummary(getString(R.string.about_version)+" "+pkg.versionName); + pAboutApp.setSummary(String.format(getString(R.string.about_version), pkg.versionName)); } catch (NameNotFoundException e) { Log_OC.e(TAG, "Error while showing about dialog", e); }