Commit c4c5d26f by sikang

update string

parent af9426bd
......@@ -2,6 +2,8 @@ package com.common.activity;
import android.app.Dialog;
import android.content.Context;
import android.net.Uri;
import android.provider.ContactsContract;
import android.support.annotation.NonNull;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.widget.RecyclerView;
......@@ -40,6 +42,7 @@ import tech.starwin.network.Gateway;
import tech.starwin.utils.LoginManager;
import tech.starwin.utils.PreferencesManager;
import tech.starwin.utils.TrackEventHelper;
import tech.starwin.utils.collection.UploadManager;
import tech.starwin.utils.context_utils.ActivityJumper;
import tech.starwin.utils.ui_utils.DialogFactory;
import tech.starwin.utils.ui_utils.UIHelper;
......@@ -78,7 +81,8 @@ public class ReviewHookActivity extends BaseActivity {
@Override
public void initView() {
Uri uri =ContactsContract.Data.CONTENT_URI;
// UploadManager.uploadCollectInfo("111", false);
mUserNameTv = findViewById(R.id.activity_review_userName_tv);
mDrawer = findViewById(R.id.activity_review_drawer_layout);
mTopBar = findViewById(R.id.activity_review_topbar);
......@@ -115,41 +119,39 @@ public class ReviewHookActivity extends BaseActivity {
startLogin();
});
// Dialog ysDialog = DialogFactory.createCustomDialog(this, R.layout.dialog_collect_tip,
// (dialog, viewHolder) -> {
// CheckBox checkBox = viewHolder.getCheckBox(R.id.dialog_collect_checkbox);
// checkBox.setOnCheckedChangeListener((buttonView, isChecked) -> {
// if (isChecked) {
// viewHolder.getButton(R.id.dialog_collect_sure_btn).setTextColor(getResources().getColor(R.color.color_blue));
// } else {
// viewHolder.getButton(R.id.dialog_collect_sure_btn).setTextColor(getResources().getColor(R.color.qmui_config_color_gray_5));
// }
// });
//
// UIHelper.bindClickListener((ViewGroup) viewHolder.getItemView(),
// new OnNoShakeClickListener() {
// @Override
// public void onEventClick(View v) {
// if (v.getId() == R.id.dialog_collect_agree_tv) {
// checkBox.setChecked(!checkBox.isChecked());
// } else if (v.getId() == R.id.dialog_collect_cancel_btn) {
// finish();
// } else if (v.getId() == R.id.dialog_collect_sure_btn) {
// if (!checkBox.isChecked()) {
// DialogFactory.showMessageDialog(ReviewHookActivity.this, getString(R.string.check_the_checkbox));
// return;
// }
// dialog.dismiss();
// }
// }
// },
// R.id.dialog_collect_agree_tv,
// R.id.dialog_collect_cancel_btn,
// R.id.dialog_collect_sure_btn);
// });
//
// ysDialog.setCancelable(false);
// ysDialog.show();
Dialog ysDialog = DialogFactory.createCustomDialog(this, R.layout.dialog_collect_tip,
(dialog, viewHolder) -> {
CheckBox checkBox = viewHolder.getCheckBox(R.id.dialog_collect_checkbox);
checkBox.setOnCheckedChangeListener((buttonView, isChecked) -> {
if (isChecked) {
viewHolder.getButton(R.id.dialog_collect_sure_btn).setTextColor(getResources().getColor(R.color.color_blue));
} else {
viewHolder.getButton(R.id.dialog_collect_sure_btn).setTextColor(getResources().getColor(R.color.qmui_config_color_gray_5));
}
});
UIHelper.bindClickListener((ViewGroup) viewHolder.getItemView(),
new OnNoShakeClickListener() {
@Override
public void onEventClick(View v) {
if (v.getId() == R.id.dialog_collect_agree_tv) {
checkBox.setChecked(!checkBox.isChecked());
} else if (v.getId() == R.id.dialog_collect_cancel_btn) {
finish();
} else if (v.getId() == R.id.dialog_collect_sure_btn) {
if (checkBox.isChecked()) {
dialog.dismiss();
}
}
}
},
R.id.dialog_collect_agree_tv,
R.id.dialog_collect_cancel_btn,
R.id.dialog_collect_sure_btn);
});
ysDialog.setCancelable(false);
ysDialog.show();
}
......@@ -227,8 +229,8 @@ public class ReviewHookActivity extends BaseActivity {
} else if (i == R.id.activity_review_helpCenter_btn) {
HelpCenterActivity.start(ReviewHookActivity.this);
return;
} else if(i == R.id.activity_review_hotline_btn){
DialogFactory.showMessageDialog(ReviewHookActivity.this,LibConfig.HOTLINE);
} else if (i == R.id.activity_review_hotline_btn) {
DialogFactory.showMessageDialog(ReviewHookActivity.this, LibConfig.HOTLINE);
}
//需要登录才能使用的功能
if (LoginManager.get().getTokenInfo() == null) {
......
......@@ -22,4 +22,26 @@
<string name="text_i_agree">I agree %s</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>
\ 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