mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-29 11:10:35 +02:00
move AlertDialog variable to the right place.
This commit is contained in:
@@ -124,8 +124,6 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
prefs.edit().putBoolean("firstStart", false).commit();
|
prefs.edit().putBoolean("firstStart", false).commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
|
||||||
|
|
||||||
if(!valueOfCountModified){
|
if(!valueOfCountModified){
|
||||||
int launchCount = prefs.getInt("launchCount", 0);
|
int launchCount = prefs.getInt("launchCount", 0);
|
||||||
|
|
||||||
@@ -134,6 +132,8 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
// ask the user once for feedback on the 30th app launch
|
// ask the user once for feedback on the 30th app launch
|
||||||
if(launchCount == 30){
|
if(launchCount == 30){
|
||||||
|
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||||
|
|
||||||
builder.setMessage(R.string.label_feedback_message_enjoying)
|
builder.setMessage(R.string.label_feedback_message_enjoying)
|
||||||
.setPositiveButton(R.string.label_feedback_message_yes, new DialogInterface.OnClickListener() {
|
.setPositiveButton(R.string.label_feedback_message_yes, new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
|
Reference in New Issue
Block a user