prep a quick-fix release, with string changes

Two crashes reported on the Google Play store in the 112 version have at
least easy work-arounds: catching exceptions and doing nothing. In both
cases that should be harmless, so assuming the causes are rare it's a
good move.
This commit is contained in:
Eric House 2016-11-28 20:02:38 -08:00
parent f415cf22ca
commit 6171d9ce90
5 changed files with 21 additions and 9 deletions

View file

@ -22,7 +22,7 @@
to come from a domain that you own or have control over. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.eehouse.android.xw4"
android:versionCode="108"
android:versionCode="109"
android:versionName="@string/app_version"
>

View file

@ -13,7 +13,7 @@
</style>
</head>
<body>
<h2>Crosswords 4.4.113 release</h2>
<h2>Crosswords 4.4.114 release</h2>
<p>This release fixes a drawing problem on Android Nougat version
only.</p>
@ -27,7 +27,10 @@
<h3>New with this release</h3>
<ul>
<li>Fix (or work around) board drawing weirdness introduced with
Nougat. It showed most often when using the hint feature.</li>
Nougat. It showed most often when using the hint
feature.</li>
<li>Fix a couple of crashes reported via the Play Store --
thanks!</li>
</ul>
<p>(The full changelog

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_version">4.4.113</string>
<string name="app_version">4.4.114</string>
</resources>

View file

@ -640,9 +640,14 @@ public class DlgDelegate {
private Dialog createLookupDialog()
{
Dialog result = null;
DlgState state = findForID( DlgID.LOOKUP );
Bundle bundle = (Bundle)state.m_params[0];
return LookupAlert.makeDialog( m_activity, bundle );
// state is null per a play store crash report.
if ( null != state ) {
Bundle bundle = (Bundle)state.m_params[0];
result = LookupAlert.makeDialog( m_activity, bundle );
}
return result;
}
private Dialog createOKDialog( DlgState state, DlgID dlgID )

View file

@ -42,9 +42,13 @@ public class SMSReceiver extends BroadcastReceiver {
for ( int ii = 0; ii < pdus.length; ++ii ) {
SmsMessage sms = SmsMessage.createFromPdu((byte[])pdus[ii]);
if ( null != sms ) {
String phone = sms.getOriginatingAddress();
byte[] body = sms.getUserData();
SMSService.handleFrom( context, body, phone );
try {
String phone = sms.getOriginatingAddress();
byte[] body = sms.getUserData();
SMSService.handleFrom( context, body, phone );
} catch ( NullPointerException npe ) {
DbgUtils.loge( npe );
}
}
}
}