forked from wymsee/cordova-imagePicker
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from hkjeffchan/master
Fix android TransactionTooLargeException
- Loading branch information
Showing
4 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.synconset; | ||
|
||
import android.os.Bundle; | ||
|
||
public class ResultIPC { | ||
|
||
private static ResultIPC instance; | ||
|
||
public synchronized static ResultIPC get() { | ||
if (instance == null) { | ||
instance = new ResultIPC (); | ||
} | ||
return instance; | ||
} | ||
|
||
private int sync = 0; | ||
|
||
private Bundle largeData; | ||
public int setLargeData(Bundle largeData) { | ||
this.largeData = largeData; | ||
return ++sync; | ||
} | ||
|
||
public Bundle getLargeData(int request) { | ||
return (request == sync) ? largeData : null; | ||
} | ||
} |