Revert "fix massive memory leak by removing ExpiringDelegate's timers when"

This reverts commit 50ca74d259.
This commit is contained in:
Eric House 2016-01-06 19:29:37 -08:00
parent 50ca74d259
commit 14aab9ec36
4 changed files with 0 additions and 28 deletions

View file

@ -96,11 +96,6 @@ public class ExpiringDelegate {
} }
} }
public void clearPct()
{
m_handler.removeCallbacks( m_runnable );
}
public void setSelected( boolean selected ) public void setSelected( boolean selected )
{ {
m_selected = selected; m_selected = selected;

View file

@ -56,13 +56,4 @@ public class ExpiringLinearLayout extends LinearLayout {
m_delegate.onDraw( canvas ); m_delegate.onDraw( canvas );
} }
} }
@Override
protected void onDetachedFromWindow ()
{
if ( null != m_delegate ) {
m_delegate.clearPct();
}
super.onDetachedFromWindow();
}
} }

View file

@ -52,13 +52,6 @@ class ExpiringTextView extends TextView {
} }
} }
public void clearPct()
{
if ( null != m_delegate ) {
m_delegate.clearPct();
}
}
@Override @Override
protected void onDraw( Canvas canvas ) protected void onDraw( Canvas canvas )
{ {

View file

@ -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, private void update( boolean expanded, long lastMoveTime, boolean haveTurn,
boolean haveTurnLocal ) boolean haveTurnLocal )
{ {