Skip to content

Commit

Permalink
eeeeehhhhhh i treied adding in a menu but said fuck it
Browse files Browse the repository at this point in the history
  • Loading branch information
TIBTHINK committed Dec 19, 2019
1 parent 23b0718 commit a8f8db6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 29 deletions.
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".SecondActivity"></activity>
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public float getSpeed() {

if (!this.getUseMetricUnits()) {
//covert them meters a secound to them nice miles per syrup
nSpeed = super.getSpeed() * 3.2808398501312f;
nSpeed = super.getSpeed() * 2.23693629f;
}

return nSpeed;
Expand Down
14 changes: 2 additions & 12 deletions app/src/main/java/com/tibthink/science_thing5/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import android.media.MediaPlayer;
import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.widget.Button;
import android.widget.CompoundButton;
Expand Down Expand Up @@ -49,8 +47,6 @@ protected void onCreate(Bundle savedInstanceState) {
DoShit();
}



this.updateSpeed(null);

sw_metric.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
Expand All @@ -62,13 +58,6 @@ public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
});
}

public boolean onCreateOptionsMenu(Menu menu){
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu, menu);
return true;

}


public void playSound(View view) {
mp = MediaPlayer.create(this, R.raw.button);
Expand All @@ -87,6 +76,8 @@ public void onCompletion(MediaPlayer mediaPlayer) {
});
}



@Override
public void onLocationChanged(Location location){
if (location != null){
Expand Down Expand Up @@ -153,5 +144,4 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
}
}


}
4 changes: 0 additions & 4 deletions app/src/main/res/menu/creddit_menu.xml

This file was deleted.

12 changes: 0 additions & 12 deletions app/src/main/res/menu/menu.xml

This file was deleted.

4 changes: 4 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<resources>
<string name="app_name">science_thing5</string>

<string name="lostpassword">source code <a href="https://github.com/TIBTHINK/science_thing5" target="_top">Github repo page</a></string>


</resources>

0 comments on commit a8f8db6

Please sign in to comment.