ソースを参照

Fix misuse of 1 and 2 states

tags/SensorLogger/0.2.3
Chris Smith 14年前
コミット
601e1e4758

+ 2
- 2
code/SensorLogger/src/uk/co/md87/android/sensorlogger/SensorLoggerService.java ファイルの表示

@@ -107,7 +107,7 @@ public class SensorLoggerService extends Service {
107 107
     String correction = "UNCLASSIFIED/NOTCORRECTED";
108 108
     int classCount = 0;
109 109
     int countdown = 10;
110
-    int state = 0;
110
+    int state = 1;
111 111
 
112 112
     public String getIMEI() {
113 113
         return ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId();
@@ -152,7 +152,7 @@ public class SensorLoggerService extends Service {
152 152
 
153 153
     void doSetState(final int newState) {
154 154
         switch (newState) {
155
-            case 1:
155
+            case 2:
156 156
                 countdown = 10;
157 157
 
158 158
                 handler.removeCallbacks(countdownTask);

+ 1
- 1
code/SensorLogger/src/uk/co/md87/android/sensorlogger/activities/IntroActivity.java ファイルの表示

@@ -54,7 +54,7 @@ public class IntroActivity extends BoundActivity implements OnClickListener {
54 54
     @Override
55 55
     public void onClick(final View arg0) {
56 56
         try {
57
-            service.setState(1);
57
+            service.setState(2);
58 58
             startActivity(new Intent(this, CountdownActivity.class));
59 59
             finish();
60 60
         } catch (RemoteException ex) {

読み込み中…
キャンセル
保存