Skip to content

Commit

Permalink
disable feature for beta tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djschilling committed Mar 13, 2015
1 parent 00394d1 commit 33ffd08
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/src/main/java/de/sopa/scene/menu/MainMenuScene.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.content.Intent;
import android.net.Uri;
import android.widget.Toast;

import de.sopa.scene.BaseScene;

Expand Down Expand Up @@ -88,11 +89,12 @@ public void onClick(ButtonSprite pButtonSprite, float pTouchAreaLocalX, float pT
final ButtonSprite shareLogo = new ButtonSprite(0, 0, resourcesManager.shareLogoTexture, vbom, new ButtonSprite.OnClickListener() {
@Override
public void onClick(ButtonSprite pButtonSprite, float pTouchAreaLocalX, float pTouchAreaLocalY) {
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_TEXT, "I played SOPA: " + LINK_TO_STORE);
activity.startActivity(Intent.createChooser(shareIntent, "Share your thoughts"));
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(activity.getApplicationContext(), "Feature disabled for beta tests.", Toast.LENGTH_LONG).show();
}
});
}
});

Expand Down

0 comments on commit 33ffd08

Please sign in to comment.