Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+ missed SelectActivity

  • Loading branch information...
commit 2721ad1c2e621de0286825e7c13ca6704a239325 1 parent 7d69db5
@demonview authored default_git_name committed
Showing with 32 additions and 0 deletions.
  1. +32 −0 src/me/rapacity/stitch/SelectActivity.java
View
32 src/me/rapacity/stitch/SelectActivity.java
@@ -0,0 +1,32 @@
+package me.rapacity.stitch;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.widget.Button;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.content.Intent;
+import android.widget.Toast;
+
+public class SelectActivity extends Activity {
+ @Override
+ public void onCreate(Bundle bundle) {
+ super.onCreate(bundle);
+ setContentView(R.layout.select);
+ }
+
+ public void onClick(View v) {
+ Intent intent = new Intent(this, StitchActivity.class);
+
+ for (int i = 0; i < Tilesets.buttons.length; i++)
+ if (v.getId() == Tilesets.buttons[i]) {
+ intent.putExtra("tileset", Tilesets.files[i]);
+ intent.putExtra("defaults", Tilesets.defaults[i]);
+ startActivity(intent);
+ return;
+ }
+
+ Toast.makeText(this, "internal error: bad button", Toast.LENGTH_SHORT).show();
+ finish();
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.