[Android] Always call the supermethod before doing any work in the lifecycle methods

Ludovic Fauvet git at videolan.org
Wed Oct 3 16:02:08 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Wed Oct  3 15:36:55 2012 +0200| [a3ae9dacf19564d581e3aa06f19262e0fb3609ac] | committer: Ludovic Fauvet

Always call the supermethod before doing any work in the lifecycle methods

According to the documentation the implementation of these lifecycle
methods must always call the superclass implementation before doing any
work.

https://developer.android.com/guide/components/activities.html#ImplementingLifecycleCallbacks

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a3ae9dacf19564d581e3aa06f19262e0fb3609ac
---

 vlc-android/src/org/videolan/vlc/AudioService.java      |    2 +-
 .../src/org/videolan/vlc/gui/BrowserActivity.java       |    4 ++--
 .../src/org/videolan/vlc/gui/CompatErrorActivity.java   |    3 +--
 vlc-android/src/org/videolan/vlc/gui/MainActivity.java  |   14 +++++++-------
 .../src/org/videolan/vlc/gui/PreferencesActivity.java   |    4 ++--
 .../src/org/videolan/vlc/gui/SearchActivity.java        |    6 +++---
 .../videolan/vlc/gui/audio/AudioBrowserFragment.java    |    2 +-
 .../org/videolan/vlc/gui/audio/AudioListFragment.java   |    2 +-
 .../org/videolan/vlc/gui/audio/AudioPlayerActivity.java |    4 ++--
 .../org/videolan/vlc/gui/video/VideoListFragment.java   |    4 ++--
 .../org/videolan/vlc/gui/video/VideoPlayerActivity.java |   15 +++++++--------
 11 files changed, 29 insertions(+), 31 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commitdiff;h=a3ae9dacf19564d581e3aa06f19262e0fb3609ac


More information about the Android mailing list