fix unnecessary crashes launching prefs activity

This commit is contained in:
Eric House 2016-07-18 12:03:56 -07:00
parent d0b64f8f51
commit 5bb707fc57

View file

@ -1751,9 +1751,9 @@ public class GamesListDelegate extends ListDelegateBase
private boolean handleSelGroupsItem( int itemID, long[] groupIDs ) private boolean handleSelGroupsItem( int itemID, long[] groupIDs )
{ {
boolean handled = true; boolean handled = 0 < groupIDs.length;
if ( handled ) {
String msg; String msg;
Assert.assertTrue( 0 < groupIDs.length );
long groupID = groupIDs[0]; long groupID = groupIDs[0];
switch( itemID ) { switch( itemID ) {
case R.id.games_group_delete: case R.id.games_group_delete:
@ -1794,6 +1794,7 @@ public class GamesListDelegate extends ListDelegateBase
default: default:
handled = false; handled = false;
} }
}
return handled; return handled;
} }
@ -1901,6 +1902,8 @@ public class GamesListDelegate extends ListDelegateBase
missingLang ); missingLang );
} catch ( GameUtils.NoSuchGameException nsge ) { } catch ( GameUtils.NoSuchGameException nsge ) {
hasDicts = true; // irrelevant question hasDicts = true; // irrelevant question
} catch ( GameLock.GameLockedException gle ) {
hasDicts = true; // irrelevant question
} }
if ( !hasDicts ) { if ( !hasDicts ) {