am b32f04b7: Merge "Printing from two apps at the same time not working." into lmp-mr1-dev
automerge: 5e1e4ef
* commit '5e1e4ef41917315c46e577ddabb469164c56c515':
Printing from two apps at the same time not working.
This commit is contained in:
@@ -861,7 +861,8 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup {
|
|||||||
public void run() {
|
public void run() {
|
||||||
mPendingSelectionNotifier = null;
|
mPendingSelectionNotifier = null;
|
||||||
|
|
||||||
if (mDataChanged) {
|
if (mDataChanged && getViewRootImpl() != null
|
||||||
|
&& getViewRootImpl().isLayoutRequested()) {
|
||||||
// Data has changed between when this SelectionNotifier was
|
// Data has changed between when this SelectionNotifier was
|
||||||
// posted and now. Postpone the notification until the next
|
// posted and now. Postpone the notification until the next
|
||||||
// layout is complete and we run checkSelectionChanged().
|
// layout is complete and we run checkSelectionChanged().
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import android.content.ServiceConnection;
|
|||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.graphics.drawable.BitmapDrawable;
|
import android.graphics.drawable.BitmapDrawable;
|
||||||
|
import android.net.Uri;
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
import android.os.ParcelFileDescriptor;
|
import android.os.ParcelFileDescriptor;
|
||||||
@@ -462,6 +463,7 @@ public final class PageContentRepository {
|
|||||||
}
|
}
|
||||||
Intent intent = new Intent(PdfManipulationService.ACTION_GET_RENDERER);
|
Intent intent = new Intent(PdfManipulationService.ACTION_GET_RENDERER);
|
||||||
intent.setClass(mContext, PdfManipulationService.class);
|
intent.setClass(mContext, PdfManipulationService.class);
|
||||||
|
intent.setData(Uri.fromParts("fake-scheme", String.valueOf(hashCode()), null));
|
||||||
mContext.bindService(intent, AsyncRenderer.this, Context.BIND_AUTO_CREATE);
|
mContext.bindService(intent, AsyncRenderer.this, Context.BIND_AUTO_CREATE);
|
||||||
mBoundToService = true;
|
mBoundToService = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user