Skip to content

Commit

Permalink
Change internal App Name from MyApplication to Webmon
Browse files Browse the repository at this point in the history
  • Loading branch information
theAkito committed Nov 11, 2021
1 parent c834131 commit ddf5c26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:usesCleartextTraffic="true"
android:name="ooo.akito.webmon.MyApplication"
android:name="ooo.akito.webmon.Webmon"
android:theme="@style/AppTheme"
tools:ignore="AllowBackup"
tools:targetApi="m">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import androidx.lifecycle.OnLifecycleEvent
import androidx.lifecycle.ProcessLifecycleOwner
import ooo.akito.webmon.utils.SharedPrefsManager

class MyApplication : Application(), LifecycleObserver {
class Webmon : Application(), LifecycleObserver {

object ActivityVisibility {
var appIsVisible: Boolean = false
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/kotlin/ooo/akito/webmon/utils/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ object Utils {
return this.associateBy { it.url }
}

fun appIsVisible(): Boolean = ooo.akito.webmon.MyApplication.ActivityVisibility.appIsVisible
fun appIsVisible(): Boolean = ooo.akito.webmon.Webmon.ActivityVisibility.appIsVisible

fun String.removeTrailingSlashes(): String = this.replace(Regex("""[/]*$"""), "")
fun String.removeUrlProto(): String = this.replace(Regex("""^http[s]?://"""), "")
Expand Down

0 comments on commit ddf5c26

Please sign in to comment.