}
private ServiceConnection mConnection = new ServiceConnection() {
+ @Override
public void onServiceConnected(ComponentName className, IBinder service) {
/*
* This is called when the connection with the service has been
mBoundService.onStart();
}
+ @Override
public void onServiceDisconnected(ComponentName className) {
/*
* This is called when the connection with the service has been
if (!result) {
cannotLoadImage();
+ // TODO: We should figure out the best way preventing this from
+ // happening, e.g: early checking.
+ return;
}
if (null == CachingPipeline.getRenderScriptContext()){
private int getScreenImageSize() {
DisplayMetrics outMetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(outMetrics);
- return (int) Math.max(outMetrics.heightPixels, outMetrics.widthPixels);
+ return Math.max(outMetrics.heightPixels, outMetrics.widthPixels);
}
private void showSavingProgress(String albumName) {