am c3d94148: am 69ef2b22: Fix TempDirectory initialization

* commit 'c3d9414882d22a98c5d0a932c4548a4595315165':
  Fix TempDirectory initialization
This commit is contained in:
Paul Westbrook 2013-04-15 11:03:26 -07:00 committed by Android Git Automerger
commit 25ac0c52d1

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