Add subtle way to show people where uploads are going to

Says 'testwiki' or 'commonswiki' at the bottom of About

Change-Id: I757bb5820985e950476e1c9b4d274e35dfcc7b96
GitHub: https://github.com/wikimedia/apps-android-commons/pull/5
This commit is contained in:
YuviPanda 2013-06-12 23:34:11 +00:00 committed by SuchABot
parent 941a2ac194
commit 154411b15b
2 changed files with 12 additions and 1 deletions

View file

@ -52,4 +52,13 @@
android:gravity="center"
android:text="@string/about_privacy_policy"
/>
<TextView
android:id="@+id/about_uploads_to"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
style="?android:textAppearanceSmall"
android:gravity="center"
android:alpha="0.2"
/>
</LinearLayout>

View file

@ -11,6 +11,7 @@ public class AboutActivity extends Activity {
private TextView licenseText;
private TextView improveText;
private TextView privacyPolicyText;
private TextView uploadsToText;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@ -20,8 +21,9 @@ public class AboutActivity extends Activity {
licenseText = (TextView) findViewById(R.id.about_license);
improveText = (TextView) findViewById(R.id.about_improve);
privacyPolicyText = (TextView) findViewById(R.id.about_privacy_policy);
uploadsToText = (TextView) findViewById(R.id.about_uploads_to);
uploadsToText.setText(CommonsApplication.EVENTLOG_WIKI);
versionText.setText(CommonsApplication.APPLICATION_VERSION);
// We can't use formatted strings directly because it breaks with