Commit e410c000 by sikang

bug fix takephoto

parent 09d1803e
...@@ -9,6 +9,7 @@ import android.widget.Button; ...@@ -9,6 +9,7 @@ import android.widget.Button;
import android.widget.ImageView; import android.widget.ImageView;
import com.common.toolbox.tracker.TrackEvent;
import com.qmuiteam.qmui.util.QMUIStatusBarHelper; import com.qmuiteam.qmui.util.QMUIStatusBarHelper;
import java.io.File; import java.io.File;
...@@ -23,6 +24,7 @@ import tech.starwin.utils.BitmapUtils; ...@@ -23,6 +24,7 @@ import tech.starwin.utils.BitmapUtils;
import tech.starwin.utils.FileUtils; import tech.starwin.utils.FileUtils;
import tech.starwin.utils.PreferencesManager; import tech.starwin.utils.PreferencesManager;
import tech.starwin.utils.SPDataProvider; import tech.starwin.utils.SPDataProvider;
import tech.starwin.utils.TrackEventHelper;
import tech.starwin.utils.context_utils.ActivityJumper; import tech.starwin.utils.context_utils.ActivityJumper;
import tech.starwin.utils.context_utils.EasyActivityResult; import tech.starwin.utils.context_utils.EasyActivityResult;
import tech.starwin.utils.ui_utils.QMUIHelper; import tech.starwin.utils.ui_utils.QMUIHelper;
...@@ -95,7 +97,10 @@ public class TakePhotoActivity extends BaseActivity { ...@@ -95,7 +97,10 @@ public class TakePhotoActivity extends BaseActivity {
} }
String type = getIntent().getStringExtra("photo_type"); String type = getIntent().getStringExtra("photo_type");
if (TextUtils.equals(type, PhotoType.KTP.name())) { if (TextUtils.equals(type, PhotoType.KTP.name())) {
TrackEventHelper.logEvent(TrackEvent.Click.KTP_SHOT);
findViewById(R.id.imageview_id_frame).setVisibility(View.VISIBLE); findViewById(R.id.imageview_id_frame).setVisibility(View.VISIBLE);
}else if(TextUtils.equals(type, PhotoType.WORK_CARD.name())){
TrackEventHelper.logEvent(TrackEvent.Click.WORK_CARD_SHOT);
} }
UIHelper.bindClickListener(new OnNoShakeClickListener() { UIHelper.bindClickListener(new OnNoShakeClickListener() {
......
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