Black timeout was a concept that was put in when engine was not clearing screens properly. The check
is no longer necessary since the engine handles the screen clear better. This will improve Playback start
performance by approximately 500ms

(This was verifed on Nexus by modifying the Gallery2 provider authority so it could be co-installed with GMS gallery)

Change-Id: I88f6609206a63e8c4c7c0e3e28e6c3802d0ddd51
Gallery2: show Toast in UI Thread

Toast.makeText() can't be called from child thread.
Call it from UI thread to avoid Exception.

Change-Id: I0664780c4768a1606e55f4636ec3ba764ccf24e4
fix to remove invalid media item within media database

Add sanity check when loading media item from media database to
avoid invalid media item shown within gallery

Change-Id: Ic643c4f9bfe4598fd95e8080276e290de6a31465
Author: Tianmi Chen <tianmi.chen@intel.com>
Signed-off-by: Tianmi Chen <tianmi.chen@intel.com>
Signed-off-by: Dan Liang <dan.liang@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 57488
Description: Fixed the problem that a gallery not turn back to last UI when user executing following steps luncher--press menu--Wallpapers--Gallery--select a picture--press home action bar,this opreation should be back up last select picture screen

Steps: 1. in luncher screen, press menu button.

       2. select Wallpapers item.

       3. select a picture.

       4. press home action bar

Change-Id: I1eeadb225030b27b214b3f32bbf5a232ffd82068
Result:gallery not bact to last ui