Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Commit

Permalink
Added link to privacy policy
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Feb 18, 2017
1 parent d93b693 commit de21605
Show file tree
Hide file tree
Showing 59 changed files with 46 additions and 35 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apply plugin: 'android'
apply plugin: 'com.android.application'

android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
buildToolsVersion "25.0.2"

defaultConfig {
minSdkVersion 7
targetSdkVersion 19
versionCode 5
versionName "2.0.1"
versionCode 6
versionName "2.0.2"
}

buildTypes {
Expand Down
10 changes: 6 additions & 4 deletions app/src/main/AndroidManifest.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="eu.thedarken.audiobug">
xmlns:tools="http://schemas.android.com/tools"
package="eu.thedarken.audiobug">

<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand All @@ -17,7 +18,8 @@
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
android:theme="@android:style/Theme.NoTitleBar"
tools:ignore="GoogleAppIndexingWarning">
<activity
android:name=".MainActivity"
android:theme="@style/Theme.AppCompat">
Expand All @@ -30,9 +32,9 @@
<activity
android:name=".PreferencesActivity"
android:label="@string/settings"
android:theme="@style/Theme.AppCompat"></activity>
android:theme="@style/Theme.AppCompat"/>

<service android:name=".AudioBugService"></service>
<service android:name=".AudioBugService"/>

<receiver android:name=".RecorderWidget">
<intent-filter>
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/eu/thedarken/audiobug/AudioBugService.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ public class AudioBugService extends Service implements Recorder.RecorderCallbac
private Binder mBinder;

public class LocalBinder extends Binder {
public boolean isRecording() {
boolean isRecording() {
return mRecorder != null;
}

public void toggleRecorder() {
void toggleRecorder() {
toggleRecording();
}

public void setRecorderListener(Recorder.RecorderCallback callback) {
void setRecorderListener(Recorder.RecorderCallback callback) {
if (callback != null && isRecording())
callback.onRecordingStarted();

Expand Down
14 changes: 7 additions & 7 deletions app/src/main/java/eu/thedarken/audiobug/ConfigurationFragment.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void onStartTrackingTouch(SeekBar arg0) {

@Override
public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {
tvShakeThreshold.setText(getString(R.string.shake_slider_threshold, arg1));
tvShakeThreshold.setText(getString(R.string.shake_slider_threshold, String.valueOf(arg1)));
}
});
int shakeThreshold = mSettings.getInt(ShakeTrigger.KEY_SHAKE_THRESHOLD, 1000);
Expand All @@ -115,7 +115,7 @@ public void onStartTrackingTouch(SeekBar arg0) {

@Override
public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {
tvShakeCount.setText(getString(R.string.shake_slider_count, arg1));
tvShakeCount.setText(getString(R.string.shake_slider_count, String.valueOf(arg1)));
}
});
int shakeCount = mSettings.getInt(ShakeTrigger.KEY_SHAKE_COUNT, 3);
Expand All @@ -136,7 +136,7 @@ public void onStartTrackingTouch(SeekBar arg0) {

@Override
public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {
tvShakeTimeout.setText(getString(R.string.shake_slider_timeout, arg1));
tvShakeTimeout.setText(getString(R.string.shake_slider_timeout, String.valueOf(arg1)));
}
});
int shakeTimeout = mSettings.getInt(ShakeTrigger.KEY_SHAKE_TIMEOUT, 300);
Expand All @@ -157,7 +157,7 @@ public void onStartTrackingTouch(SeekBar arg0) {

@Override
public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {
tvProximityCount.setText(getString(R.string.proximity_slider_taps, arg1));
tvProximityCount.setText(getString(R.string.proximity_slider_taps, String.valueOf(arg1)));
}
});
int proximityCount = mSettings.getInt(ProximityTrigger.KEY_PROXIMITY_COUNT, 3);
Expand All @@ -178,7 +178,7 @@ public void onStartTrackingTouch(SeekBar arg0) {

@Override
public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {
tvProximityTimeout.setText(getString(R.string.proximity_slider_timeout, arg1));
tvProximityTimeout.setText(getString(R.string.proximity_slider_timeout, String.valueOf(arg1)));
}
});
int proximityTimeout = mSettings.getInt(ProximityTrigger.KEY_PROXIMITY_TIMEOUT, 500);
Expand Down Expand Up @@ -259,9 +259,9 @@ private void switchLayout(boolean recorder) {
layoutConfigParent.setVisibility(View.GONE);
layoutRunningParent.setVisibility(View.VISIBLE);
if (mBinder != null && mBinder.isRecording()) {
recorderToggleButton.setText("Stop recording");
recorderToggleButton.setText(R.string.action_stop_recording);
} else {
recorderToggleButton.setText("Start recording");
recorderToggleButton.setText(R.string.action_start_recording);
}
} else {
layoutConfigParent.setEnabled(true);
Expand Down
Empty file.
Empty file modified app/src/main/java/eu/thedarken/audiobug/InfoDialogFragment.java
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion app/src/main/java/eu/thedarken/audiobug/MainActivity.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarActivity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;

Expand Down
9 changes: 5 additions & 4 deletions app/src/main/java/eu/thedarken/audiobug/PreferencesActivity.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ protected void onCreate(Bundle savedInstanceState) {
@Override
public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
if (preference.getKey().equals("misc.github")) {
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/d4rken/audiobug"));
startActivity(browserIntent);
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/d4rken/audiobug")));
return true;
}
return super.onPreferenceTreeClick(preferenceScreen, preference);
} else if (preference.getKey().equals("misc.privacy")) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/d4rken/audiobug/blob/master/privacy_policy_for_gplay.md")));
return true;
} else return super.onPreferenceTreeClick(preferenceScreen, preference);
}
}
Empty file modified app/src/main/java/eu/thedarken/audiobug/RecorderWidget.java
100644 → 100755
Empty file.
Empty file.
Empty file.
8 changes: 4 additions & 4 deletions app/src/main/java/eu/thedarken/audiobug/trigger/Trigger.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum TYPE {
NONE, SHAKE, PROXIMITY
}

public Trigger(Context context, TriggerListener mListener) {
Trigger(Context context, TriggerListener mListener) {
this.mContext = context;
this.mListener = mListener;
}
Expand All @@ -20,17 +20,17 @@ public Trigger(Context context, TriggerListener mListener) {

public abstract void stop();

public TriggerListener getListener() {
TriggerListener getListener() {
return mListener;
}

protected Context getContext() {
Context getContext() {
return mContext;
}


public interface TriggerListener {
public void onTriggered();
void onTriggered();
}

}
Empty file modified app/src/main/res/drawable-hdpi/ic_action_github.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-hdpi/ic_action_playback_play.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-hdpi/ic_action_playback_stop.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-hdpi/ic_action_settings.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-hdpi/ic_action_twitter.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-hdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-mdpi/ic_action_github.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-mdpi/ic_action_playback_play.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-mdpi/ic_action_playback_stop.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-mdpi/ic_action_record.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-mdpi/ic_action_settings.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-mdpi/ic_action_twitter.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-mdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xhdpi/ic_action_github.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xhdpi/ic_action_playback_play.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xhdpi/ic_action_playback_stop.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xhdpi/ic_action_settings.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xhdpi/ic_action_twitter.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xhdpi/ic_launcher.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xxhdpi/ic_action_github.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xxhdpi/ic_action_playback_play.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xxhdpi/ic_action_playback_stop.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xxhdpi/ic_action_record.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xxhdpi/ic_action_settings.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xxhdpi/ic_action_twitter.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/src/main/res/drawable-xxhdpi/ic_launcher.png
100644 → 100755
Empty file modified app/src/main/res/drawable/widgetnorm.png
100644 → 100755
Empty file modified app/src/main/res/drawable/widgetpressed.png
100644 → 100755
Empty file modified app/src/main/res/drawable/widgetrec.png
100644 → 100755
Empty file modified app/src/main/res/layout/configuration_fragment_layout.xml
100644 → 100755
Empty file.
Empty file modified app/src/main/res/layout/main_activity_layout.xml
100644 → 100755
Empty file.
9 changes: 5 additions & 4 deletions app/src/main/res/layout/widget_layout.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">

<ImageButton
android:id="@+id/ib_widgetbutton"
Expand All @@ -11,5 +12,5 @@
android:background="@android:color/transparent"
android:src="@xml/widgetbutton"
android:clickable="true"
android:text="" />
tools:ignore="ContentDescription"/>
</LinearLayout>
Empty file modified app/src/main/res/menu/main_menu.xml
100644 → 100755
Empty file.
Empty file modified app/src/main/res/menu/service_menu.xml
100644 → 100755
Empty file.
Empty file modified app/src/main/res/values/colors.xml
100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions app/src/main/res/values/strings.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@
<string name="start_recording">Start recording</string>
<string name="stop_to_config">Stop the service to make configuration changes.</string>
<string name="info">Info</string>
<string name="privacy_summary">This app does not collect or share any user data.</string>
<string name="privacy_title">Privacy Policy</string>
<string name="action_stop_recording">Stop recording</string>
<string name="action_start_recording">Start recording</string>
</resources>
Empty file modified app/src/main/res/values/styles.xml
100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions app/src/main/res/xml/preferences.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
android:key="misc.github"
android:summary="@string/open_source_summary"
android:title="@string/sourcecode" />
<PreferenceScreen
android:key="misc.privacy"
android:summary="@string/privacy_summary"
android:title="@string/privacy_title"/>
</PreferenceCategory>

</PreferenceScreen>
Empty file modified app/src/main/res/xml/widgetbutton.xml
100644 → 100755
Empty file.
Empty file modified app/src/main/res/xml/widgetinfo.xml
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions build.gradle
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
classpath 'com.android.tools.build:gradle:2.2.3'
}
}

Expand Down
Empty file modified gradle/wrapper/gradle-wrapper.jar
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Apr 10 15:27:10 PDT 2013
#Sat Feb 18 17:39:53 CET 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
Empty file modified gradlew.bat
100644 → 100755
Empty file.
Empty file modified settings.gradle
100644 → 100755
Empty file.

0 comments on commit de21605

Please sign in to comment.