-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from kike-canaries/devel
[Devel] Power saving settings and Spanish version
- Loading branch information
Showing
23 changed files
with
625 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
app/src/main/java/hpsaturn/pollutionreporter/models/DeepSleepConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package hpsaturn.pollutionreporter.models; | ||
|
||
/** | ||
* Created by Antonio Vanegas @hpsaturn on 10/13/20. | ||
*/ | ||
public class DeepSleepConfig extends SensorConfig { | ||
|
||
public int deepSleep; //sample time | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
app/src/main/java/hpsaturn/pollutionreporter/models/SeaLevelConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package hpsaturn.pollutionreporter.models; | ||
|
||
/** | ||
* Created by Antonio Vanegas @hpsaturn on 6/22/21. | ||
*/ | ||
public class SeaLevelConfig extends SensorConfig { | ||
|
||
public float sealevel = 1013.25F; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,6 @@ public class SensorConfig { | |
|
||
public boolean i2conly; | ||
|
||
public boolean sse; | ||
|
||
} |
43 changes: 43 additions & 0 deletions
43
app/src/main/java/hpsaturn/pollutionreporter/view/AboutFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package hpsaturn.pollutionreporter.view; | ||
|
||
import android.os.Bundle; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
import android.view.animation.Animation; | ||
import android.view.animation.AnimationUtils; | ||
import android.widget.ScrollView; | ||
import android.widget.TextView; | ||
|
||
import androidx.fragment.app.DialogFragment; | ||
|
||
import com.hpsaturn.tools.DeviceUtil; | ||
|
||
import hpsaturn.pollutionreporter.R; | ||
|
||
/** | ||
* Created by izel on 9/11/15. | ||
*/ | ||
public class AboutFragment extends DialogFragment { | ||
public static final String TAG = AboutFragment.class.getSimpleName(); | ||
|
||
private ScrollView _sv_about; | ||
|
||
@Override | ||
public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){ | ||
|
||
View view = inflater.inflate(R.layout.about, container, false); | ||
TextView aboutText = view.findViewById(R.id.tv_about_version_revision); | ||
|
||
String version = DeviceUtil.getVersionName(requireActivity()); | ||
String revision = " r"+DeviceUtil.getVersionCode(requireActivity()); | ||
aboutText.setText("v"+version+revision); | ||
|
||
_sv_about = view.findViewById(R.id.sv_about); | ||
Animation translatebu= AnimationUtils.loadAnimation(getActivity(), R.anim.about); | ||
_sv_about.startAnimation(translatebu); | ||
|
||
return view; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.