Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
replace/delete things in MainActivity and App
Browse files Browse the repository at this point in the history
- add acra email id to mine so that I don't pollute the parent app crash
reports
- comment out things in MainActivity that I wont be using for now
  • Loading branch information
curche committed Jun 18, 2021
1 parent 22a8cd2 commit e629579
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import org.acra.annotation.AcraNotification
import timber.log.Timber

@AcraCore(buildConfigClass = BuildConfig::class)
@AcraMailSender(mailTo = "[email protected]")
@AcraMailSender(mailTo = "[email protected]")
@AcraNotification(resTitle = R.string.acra_notification_title, resText = R.string.acra_notification_text, resChannelName = R.string.acra_notification_channel_name, resSendButtonText = R.string.acra_notification_send, resDiscardButtonText = android.R.string.cancel)
class App : MultiDexApplication() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ class MainActivity : AppCompatActivity() {
updateLayout()

dialogs.showSomeLoveDialogIfNecessary()
dialogs.showSoLongAndThanksForAllTheFishDialog()
// No Spoilers Please -->
// dialogs.showSoLongAndThanksForAllTheFishDialog()
// <-- No Spoilers Please

showMiuiPermissionDialogIfNecessary()
}
Expand Down Expand Up @@ -86,14 +88,15 @@ class MainActivity : AppCompatActivity() {
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
when (item.itemId) {
R.id.privacy_policy_menu_item -> showPrivacyPolicyActivity()
// R.id.privacy_policy_menu_item -> showPrivacyPolicyActivity()
R.id.settings_menu_item -> startActivity(Intent(applicationContext, SettingsActivity::class.java))
R.id.licenses_menu_item -> showAboutLicensesActivity()
}

return super.onOptionsItemSelected(item)
}

/* No Spoilers Please -->
private fun showPrivacyPolicyActivity() {
PrivacyPolicyBuilder()
.withIntro(getString(R.string.app_name), "Juan García Basilio (juanitobananas)")
Expand All @@ -104,6 +107,7 @@ class MainActivity : AppCompatActivity() {
.withEmailSection("[email protected]")
.start(applicationContext)
}
<-- No Spoilers Please */

private fun showAboutLicensesActivity() {
var style = Libs.ActivityStyle.LIGHT_DARK_TOOLBAR
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/menu/menu_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.jarsilio.android.scrambledeggsif.MainActivity" >
<!--
<item android:id="@+id/privacy_policy_menu_item"
android:title="@string/privacy_policy_menu_item"
android:orderInCategory="1000"
app:showAsAction="never" />
-->
<item android:id="@+id/licenses_menu_item"
android:title="@string/licenses_menu_item"
android:orderInCategory="1100"
Expand Down

0 comments on commit e629579

Please sign in to comment.