1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Use Calendar to get current year when formatting copyright.

This commit is contained in:
Andrew Chen 2012-08-08 11:03:10 -07:00
parent 5804b617b6
commit 6f8c60763d

View File

@ -4,13 +4,7 @@ package com.fsck.k9.activity;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import android.app.Activity;
@ -1169,7 +1163,7 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
private void onAbout() {
String appName = getString(R.string.app_name);
String year = "2012";
int year = Calendar.getInstance().get(Calendar.YEAR);
WebView wv = new WebView(this);
StringBuilder html = new StringBuilder()
.append("<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />")