Commit aac1e9cf authored by Nastuzzi Samy's avatar Nastuzzi Samy
Browse files

Bug fix

Bad activity calls
parent 88573421
......@@ -175,7 +175,7 @@ public abstract class BaseActivity extends NFCActivity {
public void run() {
dialog.stopLoading();
if (activity.getClass().getSimpleName().equals("FoundationsOptionsActivity"))
if (activity instanceof FoundationsOptionsActivity)
finish();
activity.startActivity(intent);
......@@ -347,7 +347,7 @@ public abstract class BaseActivity extends NFCActivity {
public void run() {
dialog.stopLoading();
if (activity.getClass().getSimpleName().equals("ArticleKeyboardActivity") || activity.getClass().getSimpleName().equals("ArticleCategoryActivity"))
if (activity instanceof ArticleGroupActivity)
finish();
activity.startActivity(intent);
......@@ -395,7 +395,7 @@ public abstract class BaseActivity extends NFCActivity {
public void run() {
dialog.stopLoading();
if (activity.getClass().getSimpleName().equals("BuyerInfoActivity"))
if (activity instanceof BuyerInfoActivity)
finish();
activity.startActivity(intent);
......
......@@ -79,7 +79,8 @@ public class FoundationsOptionsActivity extends BaseActivity {
this.foundationList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView parent, View view, int position, long id) {
startArticlesActivity(FoundationsOptionsActivity.this, foundationsAdapter.getFoundationId(position), foundationsAdapter.getFoundationName(position));
nemopaySession.setFoundation(foundationsAdapter.getFoundationId(position), foundationsAdapter.getFoundationName(position), -1);
startArticleGroupActivity(FoundationsOptionsActivity.this);
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment