am 69ef2b22: Fix TempDirectory initialization

* commit '69ef2b22ff6c5dcce78423ef502d14f841b04fed':
  Fix TempDirectory initialization
This commit is contained in:
Paul Westbrook 2013-04-15 10:57:26 -07:00 committed by Android Git Automerger
commit c3d9414882

View File

@ -81,6 +81,7 @@ public class EmailServiceProxy extends ServiceProxy implements IEmailService {
public EmailServiceProxy(Context _context, Class<?> _class, IEmailServiceCallback _callback) {
super(_context, new Intent(_context, _class));
TempDirectory.setTempDirectory(_context);
mCallback = _callback;
isRemote = false;
}
@ -91,22 +92,15 @@ public class EmailServiceProxy extends ServiceProxy implements IEmailService {
super(_context, _intent);
try {
Device.getDeviceId(_context);
TempDirectory.setTempDirectory(_context);
} catch (IOException e) {
}
TempDirectory.setTempDirectory(_context);
mCallback = _callback;
isRemote = true;
}
public EmailServiceProxy(Context _context, String _action, IEmailServiceCallback _callback) {
super(_context, new Intent(_action));
try {
Device.getDeviceId(_context);
TempDirectory.setTempDirectory(_context);
} catch (IOException e) {
}
mCallback = _callback;
isRemote = true;
this(_context, new Intent(_action), _callback);
}
@Override