Skip to content

Commit

Permalink
removes donate option
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain committed Nov 7, 2018
1 parent eb1e702 commit 48d8893
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
applicationId "net.sylvek.itracing2"
minSdkVersion 18
targetSdkVersion 21
versionCode 72
targetSdkVersion 26
versionCode 74
versionName "2.4.2"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public void run()
public void onDevicesStarted()
{
if (random.nextInt(100) > 80 && !Preferences.isDonated(this)) { // displayed 20% time
ConfirmAlertDialogFragment.instance(R.string.donate, 0, R.string.donate_summary).show(getFragmentManager(), null);
//ConfirmAlertDialogFragment.instance(R.string.donate, 0, R.string.donate_summary).show(getFragmentManager(), null);
}

// bind service
Expand Down Expand Up @@ -323,10 +323,10 @@ public boolean onOptionsItemSelected(MenuItem item)
this.onFeedback();
return true;
}
if (item.getItemId() == R.id.action_donate) {
/*if (item.getItemId() == R.id.action_donate) {
this.onDonate();
return true;
}
}*/
if (item.getItemId() == R.id.action_preferences) {
startActivity(new Intent(this, PreferencesActivity.class));
return true;
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/menu/devices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
android:title="@string/feedback"
android:icon="@android:drawable/ic_menu_help"
android:id="@+id/action_feedback" tools:ignore="AppCompatResource"/>
<item
<!--item
android:title="@string/donate"
android:icon="@android:drawable/ic_menu_more"
android:id="@+id/action_donate" tools:ignore="AppCompatResource"/>
</menu>
android:id="@+id/action_donate" tools:ignore="AppCompatResource"/-->
</menu>

0 comments on commit 48d8893

Please sign in to comment.