Commit d6978d07 by Lee Munkyeong

工程管理不具合修正

parent 231dfd93
......@@ -217,7 +217,7 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
Logger.e(TAG, "Exception DataRefresh", e);
handleErrorMessageToast(ErrorCode.E107);
} finally {
closeProgressPopup();
//closeProgressPopup();
}
return result;
......
......@@ -7,6 +7,8 @@ import android.content.Intent;
import android.content.res.Configuration;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
......@@ -162,6 +164,8 @@ public class OperationListActivity extends ABVUIActivity {
private Integer mScanType;
@Override
protected void onCreate(Bundle savedInstanceState) {
......@@ -192,7 +196,6 @@ public class OperationListActivity extends ABVUIActivity {
settings.setAllowFileAccessFromFileURLs(true);
settings.setSaveFormData(false);
settings.setAllowUniversalAccessFromFileURLs(true);
ArrayList<String> paramList = new ArrayList<String>();
paramList.add("debug=1");
paramList.add("app=android");
......@@ -341,6 +344,12 @@ public class OperationListActivity extends ABVUIActivity {
break;
case ABookKeys.CMD_KEY.REFRESH_CONTENT:
handler.post(new Runnable() {
@Override
public void run() {
showProgressPopup();
}
});
clearSearch();
dataRefresh(true);
break;
......@@ -408,6 +417,26 @@ public class OperationListActivity extends ABVUIActivity {
public void testScanResult(String code, int scanType) {
onScanned(code, scanType);
}
@JavascriptInterface
public void showLoading() {
handler.post(new Runnable() {
@Override
public void run() {
showProgressPopup();
}
});
}
@JavascriptInterface
public void hideLoading() {
handler.post(new Runnable() {
@Override
public void run() {
closeProgressPopup();
}
});
}
}
//TODO Method called when code is scanned
......@@ -507,7 +536,12 @@ public class OperationListActivity extends ABVUIActivity {
public void onResume() {
Logger.i(TAG, "onResume:start");
super.onResume();
handler.post(new Runnable() {
@Override
public void run() {
showProgressPopup();
}
});
if (isSearch) {
isSearch = false;
return;
......
......@@ -121,12 +121,8 @@ public class OperationRelatedContentActivity extends ABVUIActivity {
showCommunicationMenuDialog();
}
});
if (ABVDataCache.getInstance().serviceOption.isUnableIOReport()) {
mQuickReportPrintButton.setVisibility(View.VISIBLE);
} else {
findViewById(R.id.print_layout).setVisibility(View.GONE);
mQuickReportPrintButton.setVisibility(View.GONE);
}
}
private void hideBottomToolbar() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment