Fix the copyright year in the terms of service page.

This commit is contained in:
Jimmy Shih
2012-02-01 10:39:57 -08:00
parent 40d611b2f4
commit 2acfef5d33
2 changed files with 4 additions and 7 deletions
-5
View File
@@ -483,11 +483,6 @@ limitations under the License.
http://m.google.com/toscountry.">
By using Google\'s mobile products and services ("Services"), you:
</string>
<string name="eula_message_copyright"
translation_description="The copyright in the Google mobile terms of service. See
http://m.google.com/toscountry.">
©2011
</string>
<string name="eula_message_date"
translation_description="The date in the Google mobile terms of service. See
http://m.google.com/toscountry.">
@@ -21,6 +21,8 @@ import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import java.util.Calendar;
/**
* Utilities for EULA.
*/
@@ -53,7 +55,7 @@ public class EulaUtil {
HOST_NAME, HOST_NAME, HOST_NAME, HOST_NAME);
String item3 = String.format(context.getString(R.string.eula_message_item3), HOST_NAME);
String footer = String.format(context.getString(R.string.eula_message_footer), HOST_NAME);
String copyright = "©" + Calendar.getInstance().get(Calendar.YEAR);
return context.getString(R.string.eula_message_date)
+ "\n\n"
+ context.getString(R.string.eula_message_header)
@@ -70,6 +72,6 @@ public class EulaUtil {
+ "\n\n"
+ footer
+ "\n\n"
+ context.getString(R.string.eula_message_copyright);
+ copyright;
}
}