|
@@ -399,6 +399,13 @@ public class BaiduFaceMainActivity extends BaseActivity {
|
|
|
@Override
|
|
|
public void initLicenseSuccess() {
|
|
|
appStatusTextView.setText("人脸算法SDK授权成功");
|
|
|
+ AppHandler.getHandler().postDelayed(new Runnable() {
|
|
|
+ @Override
|
|
|
+ public void run() {
|
|
|
+ appStatusTextView.setVisibility(View.GONE);
|
|
|
+ }
|
|
|
+ }, 2000);//显示2秒
|
|
|
+
|
|
|
doAfterLicenseSuccess();
|
|
|
|
|
|
}
|
|
@@ -407,6 +414,13 @@ public class BaiduFaceMainActivity extends BaseActivity {
|
|
|
public void initLicenseFail(int errorCode, String msg) {
|
|
|
Toast.makeText(MyAppliction.getContext(),"激活失败,msg: " + msg, Toast.LENGTH_LONG ).show();
|
|
|
appStatusTextView.setText("人脸算法SDK授权失败,请联系管理员激活");
|
|
|
+ AppHandler.getHandler().postDelayed(new Runnable() {
|
|
|
+ @Override
|
|
|
+ public void run() {
|
|
|
+ appStatusTextView.setVisibility(View.GONE);
|
|
|
+ }
|
|
|
+ }, 2000);//显示2秒
|
|
|
+
|
|
|
|
|
|
}
|
|
|
});
|