This repository has been archived by the owner on Nov 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace/delete things in MainActivity and App
- 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
Showing
3 changed files
with
9 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() { | ||
|
||
|
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 |
---|---|---|
|
@@ -56,7 +56,9 @@ class MainActivity : AppCompatActivity() { | |
updateLayout() | ||
|
||
dialogs.showSomeLoveDialogIfNecessary() | ||
dialogs.showSoLongAndThanksForAllTheFishDialog() | ||
// No Spoilers Please --> | ||
// dialogs.showSoLongAndThanksForAllTheFishDialog() | ||
// <-- No Spoilers Please | ||
|
||
showMiuiPermissionDialogIfNecessary() | ||
} | ||
|
@@ -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)") | ||
|
@@ -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 | ||
|
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