Place the rating as a subtext of the about to avoid irritation
This commit is contained in:
parent
34ddb85bfe
commit
b76235a281
|
@ -43,11 +43,8 @@
|
|||
<string name="select_controller_message">Press any button on the controller to assign to port</string>
|
||||
<string name="controller_already_in_use">This controller is already in use!</string>
|
||||
|
||||
<string name="rating_title">Rate reicast</string>
|
||||
<string name="rating_text">We are hard at work to bring the full Dreamcast experience to your Android device, so why not take a minute and tell us how you like it so far? We appreciate it!</string>
|
||||
|
||||
<string name="about_title">About reicast</string>
|
||||
<string name="about_text">reicast is a dreamcast emulator\n\nVersion:</string>
|
||||
<string name="about_text">reicast is a dreamcast emulator\n\nVersion: %1$s\n\nWe are hard at work to bring the full Dreamcast experience to your Android device, so why not take a minute and tell us how you like it so far? We appreciate it!</string>
|
||||
|
||||
<string-array name="images">
|
||||
<item>cdi</item>
|
||||
|
|
|
@ -158,38 +158,6 @@ public class FileBrowser extends Fragment {
|
|||
if (!ImgBrowse) {
|
||||
navigate(sdcard);
|
||||
} else {
|
||||
if (0 == 1) {
|
||||
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(
|
||||
parentActivity);
|
||||
alertDialogBuilder.setTitle(getString(R.string.rating_title));
|
||||
alertDialogBuilder
|
||||
.setMessage(getString(R.string.rating_text))
|
||||
.setCancelable(false)
|
||||
.setPositiveButton("Rate It",
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog,
|
||||
int id) {
|
||||
parentActivity.startActivity(new Intent(
|
||||
Intent.ACTION_VIEW,
|
||||
Uri.parse("market://details?id="
|
||||
+ parentActivity
|
||||
.getPackageName())));
|
||||
}
|
||||
})
|
||||
.setNegativeButton("Dismiss",
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog,
|
||||
int id) {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
// create alert dialog
|
||||
AlertDialog alertDialog = alertDialogBuilder.create();
|
||||
|
||||
// show it
|
||||
alertDialog.show();
|
||||
}
|
||||
LocateGames mLocateGames = new LocateGames();
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
|
||||
mLocateGames
|
||||
|
|
|
@ -480,26 +480,32 @@ public class MainActivity extends FragmentActivity implements
|
|||
e.printStackTrace();
|
||||
}
|
||||
|
||||
// set dialog message
|
||||
alertDialogBuilder
|
||||
.setMessage(
|
||||
getString(R.string.about_text) + " " + versionName)
|
||||
.setCancelable(false)
|
||||
.setPositiveButton("Dismiss",
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog,
|
||||
int id) {
|
||||
// if this button is clicked, close
|
||||
// current activity
|
||||
// FileBrowser.this.finish();
|
||||
}
|
||||
});
|
||||
alertDialogBuilder
|
||||
.setMessage(getString(R.string.about_text, versionName))
|
||||
.setCancelable(false)
|
||||
.setPositiveButton("Rate It",
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog,
|
||||
int id) {
|
||||
startActivity(new Intent(
|
||||
Intent.ACTION_VIEW,
|
||||
Uri.parse("market://details?id="
|
||||
+ getPackageName())));
|
||||
}
|
||||
})
|
||||
.setNegativeButton("Dismiss",
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog,
|
||||
int id) {
|
||||
|
||||
// create alert dialog
|
||||
AlertDialog alertDialog = alertDialogBuilder.create();
|
||||
}
|
||||
});
|
||||
|
||||
// show it
|
||||
alertDialog.show();
|
||||
// create alert dialog
|
||||
AlertDialog alertDialog = alertDialogBuilder.create();
|
||||
|
||||
// show it
|
||||
alertDialog.show();
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue