mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
Revert "fix massive memory leak by removing ExpiringDelegate's timers when"
This reverts commit 50ca74d259
.
This commit is contained in:
parent
50ca74d259
commit
14aab9ec36
4 changed files with 0 additions and 28 deletions
|
@ -96,11 +96,6 @@ public class ExpiringDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
public void clearPct()
|
||||
{
|
||||
m_handler.removeCallbacks( m_runnable );
|
||||
}
|
||||
|
||||
public void setSelected( boolean selected )
|
||||
{
|
||||
m_selected = selected;
|
||||
|
|
|
@ -56,13 +56,4 @@ public class ExpiringLinearLayout extends LinearLayout {
|
|||
m_delegate.onDraw( canvas );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDetachedFromWindow ()
|
||||
{
|
||||
if ( null != m_delegate ) {
|
||||
m_delegate.clearPct();
|
||||
}
|
||||
super.onDetachedFromWindow();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,13 +52,6 @@ class ExpiringTextView extends TextView {
|
|||
}
|
||||
}
|
||||
|
||||
public void clearPct()
|
||||
{
|
||||
if ( null != m_delegate ) {
|
||||
m_delegate.clearPct();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDraw( Canvas canvas )
|
||||
{
|
||||
|
|
|
@ -158,13 +158,6 @@ public class GameListItem extends LinearLayout
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDetachedFromWindow ()
|
||||
{
|
||||
m_name.clearPct();
|
||||
super.onDetachedFromWindow();
|
||||
}
|
||||
|
||||
private void update( boolean expanded, long lastMoveTime, boolean haveTurn,
|
||||
boolean haveTurnLocal )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue