<html>
<body>
<div id="body" style="background-color:#ffffff;" >
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head" style="border-bottom-width:1px;border-bottom-style:solid;" ><td class="headtd" style="padding:0;padding-top:.2em;" colspan="4">Commit in <b><tt>lxdream/android</tt></b></td></tr>
<tr><td><tt>gen/org/lxdream/<a href="#file1">R.java</a></tt></td><td id="added" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ddffdd;" align="right">+4</td><td id="removed" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ffdddd;" align="right">-3</td><td class="headtd2" style="padding-left:.3em;padding-right:.3em;" nowrap="nowrap">887f7b0ac7f3 -> e48ea82eb72c</td></tr>
<tr class="alt" style=";" ><td><tt>src/org/lxdream/<a href="#file2">LxdreamActivity.java</a></tt></td><td id="addedalt" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ccf7cc;" align="right">+15</td><td id="removed" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ffdddd;" align="right">-1</td><td class="headtd2" style="padding-left:.3em;padding-right:.3em;" nowrap="nowrap">887f7b0ac7f3 -> e48ea82eb72c</td></tr>
<tr><td></td><td id="added" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ddffdd;" align="right">+19</td><td id="removed" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ffdddd;" align="right">-4</td><td></td></tr>
</table>
<small id="info" style="color: #888888;" >2 modified files</small><br />
<pre class="comment" style="white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd;" >
Swap between run + pause icons when pressed
</pre>
<hr /><a name="file1" /><div class="file" style="border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;" >
<span class="pathname" style="font-family:monospace; float:right;" >lxdream/android/gen/org/lxdream</span><br />
<div class="fileheader" style="margin-bottom:.5em;" ><big><b>R.java</b></big> <small id="info" style="color: #888888;" >887f7b0ac7f3 -> e48ea82eb72c</small></div>
<pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >--- lxdream/android/gen/org/lxdream/R.java
+++ lxdream/android/gen/org/lxdream/R.java
@@ -12,9 +12,10 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > }
public static final class drawable {
public static final int tb_cdrom=0x7f020000;
</pre><pre id="removed" class="diff" style="margin:0; background-color:#ffdddd;" >- public static final int tb_preferences=0x7f020001;
- public static final int tb_reset=0x7f020002;
- public static final int tb_run=0x7f020003;
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+ public static final int tb_pause=0x7f020001;
+ public static final int tb_preferences=0x7f020002;
+ public static final int tb_reset=0x7f020003;
+ public static final int tb_run=0x7f020004;
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > }
public static final class id {
public static final int menu_reset=0x7f050001;
</pre></div>
<hr /><a name="file2" /><div class="file" style="border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;" >
<span class="pathname" style="font-family:monospace; float:right;" >lxdream/android/src/org/lxdream</span><br />
<div class="fileheader" style="margin-bottom:.5em;" ><big><b>LxdreamActivity.java</b></big> <small id="info" style="color: #888888;" >887f7b0ac7f3 -> e48ea82eb72c</small></div>
<pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >--- lxdream/android/src/org/lxdream/LxdreamActivity.java
+++ lxdream/android/src/org/lxdream/LxdreamActivity.java
@@ -20,6 +20,8 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >
import android.app.Activity;
import android.content.Context;
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+import android.content.res.Resources;
+import android.graphics.drawable.Drawable;
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
</pre><pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >@@ -32,11 +34,17 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >
public class LxdreamActivity extends Activity {
LxdreamView view;
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+ boolean isRunning = false;
+ Context ctx;
+ Drawable runIcon, pauseIcon;
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
</pre><pre id="removed" class="diff" style="margin:0; background-color:#ffdddd;" >- <span id="removedchars" style="background-color:#ff9999;font-weight:bolder;" >Context </span>ctx = getApplication();
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+ ctx = getApplication();
+ Resources res = ctx.getResources();
+ runIcon = res.getDrawable(R.drawable.tb_run);
+ pauseIcon = res.getDrawable(R.drawable.tb_pause);
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >
Log.i("LxdreamActivity", "Calling Dreamcast.init");
Dreamcast.init( ctx.getFilesDir().toString() );
</pre><pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >@@ -65,7 +73,13 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > }
public void onRunClicked( MenuItem item ) {
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+ if( isRunning ) {
+ item.setIcon( runIcon );
+ } else {
+ item.setIcon( pauseIcon );
+ }
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > Dreamcast.toggleRun();
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+ isRunning = !isRunning;
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > }
public void onResetClicked( MenuItem item ) {
</pre></div>
<center><small>Chaos Theory</small></center>
</div></body></html>