Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f767e752 authored by Nicolas Catania's avatar Nicolas Catania
Browse files

ListActivity.onDestroy, remove any pending callbacks.

Added a onDestroy method to do the callbacks cleanup.

Apologies for the line end whitespaces my editor removed
automatically.

Bug:2090959
Change-Id: Id3ea4b8fc38e55c1b1ef78b3ec5b81cb02ab5b69
parent 069b3cfc
Loading
Loading
Loading
Loading
+37 −29
Original line number Diff line number Diff line
@@ -221,6 +221,15 @@ public class ListActivity extends Activity {
        super.onRestoreInstanceState(state);
    }

    /**
     * @see Activity#onDestroy()
     */
    @Override
    protected void onDestroy() {
        mHandler.removeCallbacks(mRequestFocus);
        super.onDestroy();
    }

    /**
     * Updates the screen state (current list and other views) when the
     * content changes.
@@ -313,4 +322,3 @@ public class ListActivity extends Activity {
        }
    };
}