Skip to content

Commit

Permalink
Merge remote-tracking branch 'emma/ThreeOne' into ThreeOne
Browse files Browse the repository at this point in the history
  • Loading branch information
grigaci committed Jun 14, 2012
2 parents 06946df + 730cd84 commit f33c4c0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion examples/cpp/PurchaseExample/ApplicationController.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* @file ApplicationController.h
*
* @brief The controller that handles all purchase related
* @brief The controller that handles all purchase related events.
* The controller is responsible for updating the UI with all
* purchase events.
* @author Emma Tresanszki
Expand Down
28 changes: 13 additions & 15 deletions examples/cpp/PurchaseExample/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,21 @@ class NativeUIMoblet : public Moblet
}
else
{
if ( platform == ANDROID )
if ( platform == ANDROID && developerKey.size() == 0 )
{
if (developerKey.size() == 0 )
{
maAlert("Error", "You need to set developer key in Config.h ",
"OK", NULL, NULL);
}
else if ( PurchaseManager::getInstance()->setPublicKey(DEVELOPER_PUBLIC_KEY)
maAlert("Error", "You need to set developer key in Config.h ",
"OK", NULL, NULL);
}
else if ( platform == ANDROID &&
PurchaseManager::getInstance()->setPublicKey(DEVELOPER_PUBLIC_KEY)
== MA_PURCHASE_RES_MALFORMED_PUBLIC_KEY )
{
maAlert("Error", "Malformed developer key in Config.h ",
"OK", NULL, NULL);
}
else
{
mController = new ApplicationController();
}
{
maAlert("Error", "Malformed developer key in Config.h ",
"OK", NULL, NULL);
}
else
{
mController = new ApplicationController();
}
}
}
Expand Down

0 comments on commit f33c4c0

Please sign in to comment.