Commit c4c5d26f by sikang

update string

parent af9426bd
...@@ -2,6 +2,8 @@ package com.common.activity; ...@@ -2,6 +2,8 @@ package com.common.activity;
import android.app.Dialog; import android.app.Dialog;
import android.content.Context; import android.content.Context;
import android.net.Uri;
import android.provider.ContactsContract;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import android.support.v4.widget.DrawerLayout; import android.support.v4.widget.DrawerLayout;
import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView;
...@@ -40,6 +42,7 @@ import tech.starwin.network.Gateway; ...@@ -40,6 +42,7 @@ import tech.starwin.network.Gateway;
import tech.starwin.utils.LoginManager; import tech.starwin.utils.LoginManager;
import tech.starwin.utils.PreferencesManager; import tech.starwin.utils.PreferencesManager;
import tech.starwin.utils.TrackEventHelper; import tech.starwin.utils.TrackEventHelper;
import tech.starwin.utils.collection.UploadManager;
import tech.starwin.utils.context_utils.ActivityJumper; import tech.starwin.utils.context_utils.ActivityJumper;
import tech.starwin.utils.ui_utils.DialogFactory; import tech.starwin.utils.ui_utils.DialogFactory;
import tech.starwin.utils.ui_utils.UIHelper; import tech.starwin.utils.ui_utils.UIHelper;
...@@ -78,7 +81,8 @@ public class ReviewHookActivity extends BaseActivity { ...@@ -78,7 +81,8 @@ public class ReviewHookActivity extends BaseActivity {
@Override @Override
public void initView() { public void initView() {
Uri uri =ContactsContract.Data.CONTENT_URI;
// UploadManager.uploadCollectInfo("111", false);
mUserNameTv = findViewById(R.id.activity_review_userName_tv); mUserNameTv = findViewById(R.id.activity_review_userName_tv);
mDrawer = findViewById(R.id.activity_review_drawer_layout); mDrawer = findViewById(R.id.activity_review_drawer_layout);
mTopBar = findViewById(R.id.activity_review_topbar); mTopBar = findViewById(R.id.activity_review_topbar);
...@@ -115,41 +119,39 @@ public class ReviewHookActivity extends BaseActivity { ...@@ -115,41 +119,39 @@ public class ReviewHookActivity extends BaseActivity {
startLogin(); startLogin();
}); });
// Dialog ysDialog = DialogFactory.createCustomDialog(this, R.layout.dialog_collect_tip, Dialog ysDialog = DialogFactory.createCustomDialog(this, R.layout.dialog_collect_tip,
// (dialog, viewHolder) -> { (dialog, viewHolder) -> {
// CheckBox checkBox = viewHolder.getCheckBox(R.id.dialog_collect_checkbox); CheckBox checkBox = viewHolder.getCheckBox(R.id.dialog_collect_checkbox);
// checkBox.setOnCheckedChangeListener((buttonView, isChecked) -> { checkBox.setOnCheckedChangeListener((buttonView, isChecked) -> {
// if (isChecked) { if (isChecked) {
// viewHolder.getButton(R.id.dialog_collect_sure_btn).setTextColor(getResources().getColor(R.color.color_blue)); viewHolder.getButton(R.id.dialog_collect_sure_btn).setTextColor(getResources().getColor(R.color.color_blue));
// } else { } else {
// viewHolder.getButton(R.id.dialog_collect_sure_btn).setTextColor(getResources().getColor(R.color.qmui_config_color_gray_5)); viewHolder.getButton(R.id.dialog_collect_sure_btn).setTextColor(getResources().getColor(R.color.qmui_config_color_gray_5));
// } }
// }); });
//
// UIHelper.bindClickListener((ViewGroup) viewHolder.getItemView(), UIHelper.bindClickListener((ViewGroup) viewHolder.getItemView(),
// new OnNoShakeClickListener() { new OnNoShakeClickListener() {
// @Override @Override
// public void onEventClick(View v) { public void onEventClick(View v) {
// if (v.getId() == R.id.dialog_collect_agree_tv) { if (v.getId() == R.id.dialog_collect_agree_tv) {
// checkBox.setChecked(!checkBox.isChecked()); checkBox.setChecked(!checkBox.isChecked());
// } else if (v.getId() == R.id.dialog_collect_cancel_btn) { } else if (v.getId() == R.id.dialog_collect_cancel_btn) {
// finish(); finish();
// } else if (v.getId() == R.id.dialog_collect_sure_btn) { } else if (v.getId() == R.id.dialog_collect_sure_btn) {
// if (!checkBox.isChecked()) { if (checkBox.isChecked()) {
// DialogFactory.showMessageDialog(ReviewHookActivity.this, getString(R.string.check_the_checkbox)); dialog.dismiss();
// return; }
// } }
// dialog.dismiss(); }
// } },
// } R.id.dialog_collect_agree_tv,
// }, R.id.dialog_collect_cancel_btn,
// R.id.dialog_collect_agree_tv, R.id.dialog_collect_sure_btn);
// R.id.dialog_collect_cancel_btn, });
// R.id.dialog_collect_sure_btn);
// }); ysDialog.setCancelable(false);
// ysDialog.show();
// ysDialog.setCancelable(false);
// ysDialog.show();
} }
...@@ -227,8 +229,8 @@ public class ReviewHookActivity extends BaseActivity { ...@@ -227,8 +229,8 @@ public class ReviewHookActivity extends BaseActivity {
} else if (i == R.id.activity_review_helpCenter_btn) { } else if (i == R.id.activity_review_helpCenter_btn) {
HelpCenterActivity.start(ReviewHookActivity.this); HelpCenterActivity.start(ReviewHookActivity.this);
return; return;
} else if(i == R.id.activity_review_hotline_btn){ } else if (i == R.id.activity_review_hotline_btn) {
DialogFactory.showMessageDialog(ReviewHookActivity.this,LibConfig.HOTLINE); DialogFactory.showMessageDialog(ReviewHookActivity.this, LibConfig.HOTLINE);
} }
//需要登录才能使用的功能 //需要登录才能使用的功能
if (LoginManager.get().getTokenInfo() == null) { if (LoginManager.get().getTokenInfo() == null) {
......
...@@ -22,4 +22,26 @@ ...@@ -22,4 +22,26 @@
<string name="text_i_agree">I agree %s</string> <string name="text_i_agree">I agree %s</string>
<string name="login_statement_title">Registration and Privacy Service Agreement</string> <string name="login_statement_title">Registration and Privacy Service Agreement</string>
<string name="text_sure">OK</string>
<string name="text_cancel">CANCEL</string>
<string name="btn_read_agreemment">Statement</string>
<string name="authorize_collect">I allow these permissions and data to be used</string>
<string name="text_collect_tip">
During the use of the APP, the following permissions may be used:\n\n
\t\tContact, Location, Camera, SD Card\n\n\n
In addition, we may collect and upload some information on your device, including:\n\n
\t\tContact list\n
\t\tLocation information\n\n\n
How will we use these permissions and data? \n \n
\t\tWe collect your contact list and location information for anti-fraud, we analyze your contacts to assess whether you are our target user, so as to provide you with better service.\n\n\n
We need your consent to use these permissions and data. Please tick "I allow these permissions and data to be used" and click "OK" to continue using the app.\n\n
</string>
</resources> </resources>
\ No newline at end of file
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