|
@@ -11,6 +11,9 @@ import android.view.ViewGroup;
|
|
import android.widget.Button;
|
|
import android.widget.Button;
|
|
import android.widget.TextView;
|
|
import android.widget.TextView;
|
|
|
|
|
|
|
|
+import androidx.annotation.NonNull;
|
|
|
|
+import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
+
|
|
import com.epson.mobilephone.common.license.SimpleMessageDialogFragment;
|
|
import com.epson.mobilephone.common.license.SimpleMessageDialogFragment;
|
|
|
|
|
|
import epson.common.Constants;
|
|
import epson.common.Constants;
|
|
@@ -32,27 +35,27 @@ public class UserSurveyInvitationActivity extends AppCompatActivity implements S
|
|
protected void onCreate(Bundle bundle) {
|
|
protected void onCreate(Bundle bundle) {
|
|
UserSurveyInfo userSurveyInfo;
|
|
UserSurveyInfo userSurveyInfo;
|
|
super.onCreate(bundle);
|
|
super.onCreate(bundle);
|
|
- setContentView(C1066R.layout.activity_user_survey_invitation);
|
|
|
|
- setSupportActionBar((Toolbar) findViewById(C1066R.C1068id.toolbar));
|
|
|
|
- setTitle(C1066R.string.GALicense);
|
|
|
|
- Button button = (Button) findViewById(C1066R.C1068id.disagreeButton);
|
|
|
|
|
|
+ setContentView(R.layout.activity_user_survey_invitation);
|
|
|
|
+ setSupportActionBar((Toolbar) findViewById(R.id.toolbar));
|
|
|
|
+ setTitle(R.string.GALicense);
|
|
|
|
+ Button button = (Button) findViewById(R.id.disagreeButton);
|
|
button.setOnClickListener(new View.OnClickListener() {
|
|
button.setOnClickListener(new View.OnClickListener() {
|
|
public void onClick(View view) {
|
|
public void onClick(View view) {
|
|
UserSurveyInvitationActivity.this.finishWithStatus(false);
|
|
UserSurveyInvitationActivity.this.finishWithStatus(false);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- Button button2 = (Button) findViewById(C1066R.C1068id.agreeButton);
|
|
|
|
|
|
+ Button button2 = (Button) findViewById(R.id.agreeButton);
|
|
button2.setOnClickListener(new View.OnClickListener() {
|
|
button2.setOnClickListener(new View.OnClickListener() {
|
|
public void onClick(View view) {
|
|
public void onClick(View view) {
|
|
UserSurveyInvitationActivity.this.finishWithStatus(true);
|
|
UserSurveyInvitationActivity.this.finishWithStatus(true);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- ((ViewGroup) findViewById(C1066R.C1068id.privacyStatementViewGroup)).setOnClickListener(new View.OnClickListener() {
|
|
|
|
|
|
+ ((ViewGroup) findViewById(R.id.privacyStatementViewGroup)).setOnClickListener(new View.OnClickListener() {
|
|
public void onClick(View view) {
|
|
public void onClick(View view) {
|
|
UserSurveyInvitationActivity.this.startPrivacyStatementDisplayActivity();
|
|
UserSurveyInvitationActivity.this.startPrivacyStatementDisplayActivity();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- TextView textView = (TextView) findViewById(C1066R.C1068id.analytics_content);
|
|
|
|
|
|
+ TextView textView = (TextView) findViewById(R.id.analytics_content);
|
|
mDisplayChangeDialog = false;
|
|
mDisplayChangeDialog = false;
|
|
Intent intent = getIntent();
|
|
Intent intent = getIntent();
|
|
if (intent != null) {
|
|
if (intent != null) {
|
|
@@ -64,7 +67,7 @@ public class UserSurveyInvitationActivity extends AppCompatActivity implements S
|
|
str = userSurveyInfo2.getUserSurveyInvitationText(this);
|
|
str = userSurveyInfo2.getUserSurveyInvitationText(this);
|
|
}
|
|
}
|
|
if (str == null) {
|
|
if (str == null) {
|
|
- str = C1073Util.getStringFromRawResource(getApplicationContext(), C1066R.raw.user_survey);
|
|
|
|
|
|
+ str = C1073Util.getStringFromRawResource(getApplicationContext(), R.raw.user_survey);
|
|
}
|
|
}
|
|
textView.setText(str);
|
|
textView.setText(str);
|
|
changeButtonText(button2, 1, mUserSurveyInfo, this);
|
|
changeButtonText(button2, 1, mUserSurveyInfo, this);
|
|
@@ -87,12 +90,12 @@ public class UserSurveyInvitationActivity extends AppCompatActivity implements S
|
|
private void updateAppNameText(LicenseInfo licenseInfo) {
|
|
private void updateAppNameText(LicenseInfo licenseInfo) {
|
|
String applicationName;
|
|
String applicationName;
|
|
if (licenseInfo != null && (applicationName = licenseInfo.getApplicationName(this)) != null) {
|
|
if (licenseInfo != null && (applicationName = licenseInfo.getApplicationName(this)) != null) {
|
|
- ((TextView) findViewById(C1066R.C1068id.appNameText)).setText(applicationName);
|
|
|
|
|
|
+ ((TextView) findViewById(R.id.appNameText)).setText(applicationName);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
private void showUpdateDialog() {
|
|
private void showUpdateDialog() {
|
|
- SimpleMessageDialogFragment.newInstance(getString(C1066R.string.Update_Message) + Constants.BREAK_LINE + getString(C1066R.string.GALicense), 1).show(getSupportFragmentManager(), (String) null);
|
|
|
|
|
|
+ SimpleMessageDialogFragment.newInstance(getString(R.string.Update_Message) + Constants.BREAK_LINE + getString(R.string.GALicense), 1).show(getSupportFragmentManager(), (String) null);
|
|
}
|
|
}
|
|
|
|
|
|
private void changeButtonText(Button button, int i, UserSurveyInfo userSurveyInfo, @NonNull Context context) {
|
|
private void changeButtonText(Button button, int i, UserSurveyInfo userSurveyInfo, @NonNull Context context) {
|