Skip to content

Commit 4e301db

Browse files
author
paolorotolo
committed
Rename Activity, hide history button (not implemented yet).
1 parent 73efd65 commit 4e301db

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
android:name="android.support.PARENT_ACTIVITY"
141141
android:value="org.glucosio.android.activity.MainActivity" />
142142
</activity>
143-
<activity android:name=".activity.FreestyleLibre">
143+
<activity android:name=".activity.FreestyleLibreActivity">
144144

145145
<!-- NFC for FreeStyle -->
146146
<intent-filter>

app/src/main/java/org/glucosio/android/activity/AddGlucoseActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public void onBackPressed() {
354354
}
355355

356356
public void startLibreActivity() {
357-
Intent intent = new Intent(this, FreestyleLibre.class);
357+
Intent intent = new Intent(this, FreestyleLibreActivity.class);
358358
startActivity(intent);
359359
}
360360

app/src/main/java/org/glucosio/android/activity/FreestyleLibre.java renamed to app/src/main/java/org/glucosio/android/activity/FreestyleLibreActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
import java.io.IOException;
4646
import java.util.Arrays;
4747

48-
public class FreestyleLibre extends Activity {
48+
public class FreestyleLibreActivity extends Activity {
4949

50-
private static final String TAG = "Glucosio:FreestyleLibre";
50+
private static final String TAG = "Glucosio:FreestyleLibreActivity";
5151
private NfcAdapter mNfcAdapter;
5252
private TextView readingTextView;
5353
private TextView unitTextView;
@@ -200,7 +200,7 @@ private void openAddGlucoseActivity() {
200200
bundle.putString("reading", currentGlucose + "");
201201
intent.putExtras(bundle);
202202
startActivity(intent);
203-
FreestyleLibre.this.finish();
203+
FreestyleLibreActivity.this.finish();
204204
} else {
205205
Intent intent = new Intent(getApplicationContext(), HelloActivity.class);
206206
startActivity(intent);

app/src/main/res/layout/activity_freestyle_libre.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
android:id="@+id/activity_freestyle_button_history"
8585
android:layout_width="wrap_content"
8686
android:layout_height="wrap_content"
87+
android:visibility="gone"
8788
android:background="?android:attr/selectableItemBackground"
8889
android:textColor="@color/white"
8990
android:text="@string/history"

0 commit comments

Comments
 (0)