From dc4fcada2a0acef531ae8d846da330586598cd70 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 21 Dec 2020 17:22:17 -0800 Subject: [PATCH] show wordlist's md5sum (non-release builds only) --- .../java/org/eehouse/android/xw4/DictBrowseDelegate.java | 7 +++++++ xwords4/android/app/src/main/res/layout/dict_browser.xml | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictBrowseDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictBrowseDelegate.java index 009993279..d728c679e 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictBrowseDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DictBrowseDelegate.java @@ -272,6 +272,13 @@ public class DictBrowseDelegate extends DelegateBase findViewById( id ).setOnClickListener(this); } + if ( BuildConfig.NON_RELEASE ) { + TextView tv = (TextView)findViewById( R.id.md5sum_summary ); + tv.setVisibility( View.VISIBLE ); + String sum = DictLangCache.getDictMD5Sum( m_activity, m_name ); + tv.setText( "md5: " + sum ); + } + setShowConfig(); replaceIter( true ); } diff --git a/xwords4/android/app/src/main/res/layout/dict_browser.xml b/xwords4/android/app/src/main/res/layout/dict_browser.xml index 6f72d8417..3b0193181 100644 --- a/xwords4/android/app/src/main/res/layout/dict_browser.xml +++ b/xwords4/android/app/src/main/res/layout/dict_browser.xml @@ -15,6 +15,11 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" > +