mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-12 06:08:25 -05:00
improve the method docs on getTextFromPart
Backport an update to getTextFromPart from AOSP as of 290348 - dealing with OOM as we import large messages
This commit is contained in:
parent
4c1060ecae
commit
c6aa505ffe
@ -342,11 +342,12 @@ public class MimeUtility
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads the Part's body and returns a String based on any charset conversion that needed
|
||||
* to be done.
|
||||
* @param part
|
||||
* @return
|
||||
*/
|
||||
* Reads the Part's body and returns a String based on any charset conversion that needed
|
||||
* to be done.
|
||||
* @param part The part containing a body
|
||||
* @return a String containing the converted text in the body, or null if there was no text
|
||||
* or an error during conversion.
|
||||
*/
|
||||
public static String getTextFromPart(Part part)
|
||||
{
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user