forked from organicmaps/organicmaps
[android] Change behavior of facebook/buy dialogs: never button in the middle and later button on the right.
This commit is contained in:
parent
b52cb4a765
commit
59ce96f6dd
2 changed files with 10 additions and 11 deletions
|
@ -332,16 +332,7 @@ public class MWMActivity extends NvEventQueueActivity implements LocationService
|
|||
.setCancelable(false)
|
||||
.setMessage(getString(resMsg))
|
||||
.setPositiveButton(getString(R.string.ok), okListener)
|
||||
.setNeutralButton(getString(R.string.later), new DialogInterface.OnClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dlg, int which)
|
||||
{
|
||||
dlg.dismiss();
|
||||
mApplication.submitDialogResult(dlgID, MWMApplication.LATER);
|
||||
}
|
||||
})
|
||||
.setNegativeButton(getString(R.string.never), new DialogInterface.OnClickListener()
|
||||
.setNeutralButton(getString(R.string.never), new DialogInterface.OnClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dlg, int which)
|
||||
|
@ -350,6 +341,15 @@ public class MWMActivity extends NvEventQueueActivity implements LocationService
|
|||
mApplication.submitDialogResult(dlgID, MWMApplication.NEVER);
|
||||
}
|
||||
})
|
||||
.setNegativeButton(getString(R.string.later), new DialogInterface.OnClickListener()
|
||||
{
|
||||
@Override
|
||||
public void onClick(DialogInterface dlg, int which)
|
||||
{
|
||||
dlg.dismiss();
|
||||
mApplication.submitDialogResult(dlgID, MWMApplication.LATER);
|
||||
}
|
||||
})
|
||||
.create()
|
||||
.show();
|
||||
}
|
||||
|
|
|
@ -194,7 +194,6 @@ public class MWMApplication extends android.app.Application implements MapStorag
|
|||
static public final int FACEBOOK = 0;
|
||||
static public final int BUYPRO = 1;
|
||||
public native boolean shouldShowDialog(int dlg);
|
||||
/// values of result param should correspond to values defined in map/Framework.hpp
|
||||
|
||||
static public final int OK = 0;
|
||||
static public final int LATER = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue