Make sure TempDirectory is set when using EmailServiceProxy
Bug: 6361241 Change-Id: I8fa328ec0b61a8f1710634bc8b946076efba0dcf
This commit is contained in:
parent
2f49645c73
commit
80e19ad650
@ -25,6 +25,7 @@ import android.util.Log;
|
|||||||
|
|
||||||
import com.android.emailcommon.Api;
|
import com.android.emailcommon.Api;
|
||||||
import com.android.emailcommon.Device;
|
import com.android.emailcommon.Device;
|
||||||
|
import com.android.emailcommon.TempDirectory;
|
||||||
import com.android.emailcommon.mail.MessagingException;
|
import com.android.emailcommon.mail.MessagingException;
|
||||||
import com.android.emailcommon.provider.HostAuth;
|
import com.android.emailcommon.provider.HostAuth;
|
||||||
import com.android.emailcommon.provider.Policy;
|
import com.android.emailcommon.provider.Policy;
|
||||||
@ -93,6 +94,7 @@ public class EmailServiceProxy extends ServiceProxy implements IEmailService {
|
|||||||
super(_context, _intent);
|
super(_context, _intent);
|
||||||
try {
|
try {
|
||||||
Device.getDeviceId(_context);
|
Device.getDeviceId(_context);
|
||||||
|
TempDirectory.setTempDirectory(_context);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
}
|
}
|
||||||
mCallback = _callback;
|
mCallback = _callback;
|
||||||
@ -103,6 +105,7 @@ public class EmailServiceProxy extends ServiceProxy implements IEmailService {
|
|||||||
super(_context, new Intent(_action));
|
super(_context, new Intent(_action));
|
||||||
try {
|
try {
|
||||||
Device.getDeviceId(_context);
|
Device.getDeviceId(_context);
|
||||||
|
TempDirectory.setTempDirectory(_context);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
}
|
}
|
||||||
mCallback = _callback;
|
mCallback = _callback;
|
||||||
|
Loading…
Reference in New Issue
Block a user