mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
merge fix_android_beta_86 -> android_branch
This commit is contained in:
commit
bbc3d0e8e3
6 changed files with 83 additions and 66 deletions
|
@ -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="79"
|
||||
android:versionCode="80"
|
||||
android:versionName="@string/app_version"
|
||||
>
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/board_root"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
|
|
|
@ -5,12 +5,14 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<b>Crosswords 4.4 beta 86 release</b>
|
||||
<b>Crosswords 4.4 beta 87 release</b>
|
||||
|
||||
<h3>New with this (and prev.) release</h3>
|
||||
<h3>New with this (and prev.) releases</h3>
|
||||
<ul>
|
||||
<li>Don't prevent board displaying in the landscape orientation on
|
||||
large and x-large devices (tablets)</li>
|
||||
<li>Fix changes for above to not crash on small-screened phones
|
||||
(thanks Anonymous)</li>
|
||||
<li>Fix changes for above so Nexus 10 and other x-large devices
|
||||
still use the full screen in the portrait orientation (thanks DS)</li>
|
||||
<li>Fix reported crash in new toolbar code (thanks Anonymous)</li>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<resources>
|
||||
<string name="app_version">4.4 beta 86</string>
|
||||
<string name="app_version">4.4 beta 87</string>
|
||||
</resources>
|
||||
|
|
|
@ -519,11 +519,15 @@ public class BoardDelegate extends DelegateBase
|
|||
m_view = (BoardView)findViewById( R.id.board_view );
|
||||
if ( ! ABUtils.haveActionBar() ) {
|
||||
m_tradeButtons = findViewById( R.id.exchange_buttons );
|
||||
m_exchCommmitButton = (Button)findViewById( R.id.exchange_commit );
|
||||
if ( null != m_tradeButtons ) {
|
||||
m_exchCommmitButton = (Button)
|
||||
findViewById( R.id.exchange_commit );
|
||||
m_exchCommmitButton.setOnClickListener( this );
|
||||
m_exchCancelButton = (Button)findViewById( R.id.exchange_cancel );
|
||||
m_exchCancelButton = (Button)
|
||||
findViewById( R.id.exchange_cancel );
|
||||
m_exchCancelButton.setOnClickListener( this );
|
||||
}
|
||||
}
|
||||
m_volKeysZoom = XWPrefs.getVolKeysZoom( m_activity );
|
||||
|
||||
Intent intent = getIntent();
|
||||
|
@ -1855,9 +1859,11 @@ public class BoardDelegate extends DelegateBase
|
|||
setTitle( GameUtils.getName( m_activity, m_rowid ) );
|
||||
}
|
||||
|
||||
if ( null != findViewById( R.id.tbar_parent_hor ) ) {
|
||||
int orient = m_activity.getResources().getConfiguration().orientation;
|
||||
boolean isLandscape = Configuration.ORIENTATION_LANDSCAPE == orient;
|
||||
m_toolbar = new Toolbar( m_activity, this, isLandscape );
|
||||
}
|
||||
|
||||
populateToolbar();
|
||||
adjustTradeVisibility();
|
||||
|
@ -1907,6 +1913,7 @@ public class BoardDelegate extends DelegateBase
|
|||
|
||||
private void populateToolbar()
|
||||
{
|
||||
if ( null != m_toolbar ) {
|
||||
m_toolbar.setListener( Toolbar.BUTTON_BROWSE_DICT,
|
||||
R.string.not_again_browseall,
|
||||
R.string.key_na_browseall,
|
||||
|
@ -1949,6 +1956,7 @@ public class BoardDelegate extends DelegateBase
|
|||
R.string.key_notagain_chat,
|
||||
Action.CHAT_ACTION );
|
||||
}
|
||||
}
|
||||
} // populateToolbar
|
||||
|
||||
private OnDismissListener makeODLforBlocking( final int id )
|
||||
|
@ -2134,6 +2142,7 @@ public class BoardDelegate extends DelegateBase
|
|||
|
||||
private void updateToolbar()
|
||||
{
|
||||
if ( null != m_toolbar ) {
|
||||
m_toolbar.update( Toolbar.BUTTON_FLIP, m_gsi.visTileCount >= 1 );
|
||||
m_toolbar.update( Toolbar.BUTTON_VALUES, m_gsi.visTileCount >= 1 );
|
||||
m_toolbar.update( Toolbar.BUTTON_JUGGLE, m_gsi.canShuffle );
|
||||
|
@ -2145,10 +2154,13 @@ public class BoardDelegate extends DelegateBase
|
|||
m_toolbar.update( Toolbar.BUTTON_BROWSE_DICT,
|
||||
null != m_gi.dictName( m_view.getCurPlayer() ) );
|
||||
}
|
||||
}
|
||||
|
||||
private void adjustTradeVisibility()
|
||||
{
|
||||
if ( null != m_toolbar ) {
|
||||
m_toolbar.setVisible( !m_inTrade );
|
||||
}
|
||||
if ( null != m_tradeButtons ) {
|
||||
m_tradeButtons.setVisibility( m_inTrade? View.VISIBLE : View.GONE );
|
||||
}
|
||||
|
|
|
@ -160,10 +160,12 @@ public class Toolbar {
|
|||
|
||||
int id = isLandscape ? R.id.tbar_parent_vert : R.id.tbar_parent_hor;
|
||||
ViewGroup scroller = (ViewGroup)m_activity.findViewById( id );
|
||||
if ( null != scroller ) {
|
||||
// Google's had reports of a crash adding second view
|
||||
scroller.removeAllViews();
|
||||
scroller.addView( m_layout ); // failing
|
||||
}
|
||||
}
|
||||
|
||||
m_layout.setVisibility( m_visible? View.VISIBLE : View.GONE );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue