mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
Fix kitkat-only problem where expiring rects are clipped at top and left
This commit is contained in:
parent
0a601a73a4
commit
431b24409f
1 changed files with 8 additions and 0 deletions
|
@ -37,6 +37,9 @@ public class ExpiringDelegate {
|
|||
private static final long INTERVAL_SECS = 3 * 24 * 60 * 60;
|
||||
// private static final long INTERVAL_SECS = 60 * 10; // for testing
|
||||
|
||||
private static boolean s_kitkat =
|
||||
19 <= Integer.valueOf( android.os.Build.VERSION.SDK );
|
||||
|
||||
private Context m_context;
|
||||
private View m_view;
|
||||
private boolean m_active = false;
|
||||
|
@ -117,6 +120,11 @@ public class ExpiringDelegate {
|
|||
int redWidth = width * m_pct / 100;
|
||||
Assert.assertTrue( redWidth <= width );
|
||||
|
||||
if ( s_kitkat ) {
|
||||
++s_rect.top;
|
||||
++s_rect.left;
|
||||
}
|
||||
|
||||
// left edge
|
||||
addPoints( 0, s_rect.left, s_rect.top,
|
||||
s_rect.left, s_rect.bottom - 1 );
|
||||
|
|
Loading…
Reference in a new issue