Try to fix
This commit is contained in:
parent
1f8b1c60c0
commit
7034190f73
1 changed files with 21 additions and 6 deletions
|
@ -660,16 +660,31 @@ public class OsmandApplication extends Application {
|
|||
return targetPointsHelper;
|
||||
}
|
||||
|
||||
public void showShortToastMessage(int msgId, Object... args) {
|
||||
AccessibleToast.makeText(this, getString(msgId, args), Toast.LENGTH_SHORT).show();
|
||||
public void showShortToastMessage(final int msgId, final Object... args) {
|
||||
uiHandler.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
AccessibleToast.makeText(OsmandApplication.this, getString(msgId, args), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void showToastMessage(int msgId, Object... args) {
|
||||
AccessibleToast.makeText(this, getString(msgId, args), Toast.LENGTH_LONG).show();
|
||||
public void showToastMessage(final int msgId, final Object... args) {
|
||||
uiHandler.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
AccessibleToast.makeText(OsmandApplication.this, getString(msgId, args), Toast.LENGTH_LONG).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void showToastMessage(String msg) {
|
||||
AccessibleToast.makeText(this, msg, Toast.LENGTH_LONG).show();
|
||||
public void showToastMessage(final String msg) {
|
||||
uiHandler.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
AccessibleToast.makeText(OsmandApplication.this, msg, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public SQLiteAPI getSQLiteAPI() {
|
||||
|
|
Loading…
Reference in a new issue