mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-31 19:57:06 +01:00
fix unnecessary crashes launching prefs activity
This commit is contained in:
parent
d0b64f8f51
commit
5bb707fc57
1 changed files with 42 additions and 39 deletions
|
@ -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 ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue