diff -r 98ccebc37403 -r dc7c549001d5 javauis/mmapi_qt/baseline/javasrc.emc/com/nokia/microedition/media/ManagerImpl.java --- a/javauis/mmapi_qt/baseline/javasrc.emc/com/nokia/microedition/media/ManagerImpl.java Fri May 14 15:47:24 2010 +0300 +++ b/javauis/mmapi_qt/baseline/javasrc.emc/com/nokia/microedition/media/ManagerImpl.java Thu May 27 12:49:31 2010 +0300 @@ -70,11 +70,11 @@ { return new Finalizer() { - public void finalizeImpl() - { - doFinalize(); - } - }; + public void finalizeImpl() + { + doFinalize(); + } + }; } // Play tone implementation @@ -129,12 +129,12 @@ throw new OutOfMemoryError(); } //Use ShutdownListener to get notification of exit and release the resource - //MMAPI UI 3.x work + //MMAPI UI 3.x work - setShutdownListener(); - // support for gif animation player - iPlugIns - .addElement(new com.nokia.microedition.media.animation.AnimationPlayerFactory()); + setShutdownListener(); + // support for gif animation player + iPlugIns + .addElement(new com.nokia.microedition.media.animation.AnimationPlayerFactory()); // ManagerImpl is also a PlugIn that getAllSupportedContentTypes, // getAllSupportedProtocols and createPlayer methods can be used @@ -147,12 +147,12 @@ // Create foreground listener which listens the state of the midlet // This feature is a part of the media keys feature so it is flagged - Logger.LOG(Logger.EJavaMMAPI, Logger.EInfo,"before constructing ForegroundListener...."); - iForegroundListener = new ForegroundListener(iFunctionSourceHandle); + Logger.LOG(Logger.EJavaMMAPI, Logger.EInfo,"before constructing ForegroundListener...."); + iForegroundListener = new ForegroundListener(iFunctionSourceHandle); iForegroundListener.init(); } - - + + private void setShutdownListener() { // Get the insatnce of ApplicationUtils. @@ -164,14 +164,14 @@ //The method that gets called when Application is shutting down public void shuttingDown() { - + doFinalize(); - - + + } }); - - } + + } /** * Returns MMA event source handle @@ -213,8 +213,8 @@ */ synchronized final void doFinalize() { - _dispose(iFunctionSourceHandle); - iFunctionSourceHandle = 0; + _dispose(iFunctionSourceHandle); + iFunctionSourceHandle = 0; } /** @@ -224,7 +224,7 @@ */ synchronized final void release() { - // _release(iFunctionSourceHandle); + // _release(iFunctionSourceHandle); } /** @@ -434,8 +434,8 @@ private void pluginsPreparePlayer(InternalPlayer aPlayer) throws MediaException { - - + + // Call preparePlayer to all plugins Enumeration plugins = iPlugIns.elements(); while (plugins.hasMoreElements()) @@ -636,14 +636,14 @@ // MMAPI UI 3.x req -/** - * get midlet state - */ + /** + * get midlet state + */ - public boolean isForground() - { - return iForegroundListener.isForeground(); - } + public boolean isForground() + { + return iForegroundListener.isForeground(); + } private native int _createManager(int aEventSourceHandle, int aMIDletSuiteID);