Merge branch 'android_release' into android_branch

This will probably not compile...
This commit is contained in:
Eric House 2016-11-28 20:19:54 -08:00
commit 0237403a26
5 changed files with 25 additions and 11 deletions

View file

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

View file

@ -13,10 +13,10 @@
</style> </style>
</head> </head>
<body> <body>
<h2>Crosswords 4.4.112 release</h2> <h2>Crosswords 4.4.114 release</h2>
<p>This release fixes a crash introduced by the previous release <p>This release fixes a drawing problem on Android Nougat version
that occurred on some devices when creating new games.</p> only.</p>
<div id="survey"> <div id="survey">
<p>Please <a href="https://www.surveymonkey.com/s/GX3XLHR">take <p>Please <a href="https://www.surveymonkey.com/s/GX3XLHR">take
@ -26,7 +26,11 @@
<h3>New with this release</h3> <h3>New with this release</h3>
<ul> <ul>
<li>Fix crash attempting to configure new network games</li> <li>Fix (or work around) board drawing weirdness introduced with
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> </ul>
<p>(The full changelog <p>(The full changelog
@ -34,6 +38,7 @@
<h3>Next up</h3> <h3>Next up</h3>
<ul> <ul>
<li>Support WiFi Direct (currently working sporadically)</li>
<li>Take advantage of Marshmallow's new permissions model (where <li>Take advantage of Marshmallow's new permissions model (where
the app only asks for permission, e.g. to send SMS, when it the app only asks for permission, e.g. to send SMS, when it
needs it.) needs it.)

View file

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

View file

@ -642,9 +642,14 @@ public class DlgDelegate {
private Dialog createLookupDialog() private Dialog createLookupDialog()
{ {
Dialog result = null;
DlgState state = findForID( DlgID.LOOKUP ); DlgState state = findForID( DlgID.LOOKUP );
Bundle bundle = (Bundle)state.m_params[0]; // state is null per a play store crash report.
return LookupAlert.makeDialog( m_activity, bundle ); 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 ) private Dialog createOKDialog( DlgState state, DlgID dlgID )

View file

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