Skip to content

Commit

Permalink
Build46 - Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza417 committed Nov 19, 2022
1 parent 75bce59 commit 84c83e9
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 33 deletions.
4 changes: 4 additions & 0 deletions .idea/dictionaries/PC.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
android {
compileSdkVersion 33

def appVersionCode = 45
def appVersionCode = 46
def appVersionName = "build_$appVersionCode (alpha)"

buildFeatures {
Expand Down Expand Up @@ -93,8 +93,8 @@ dependencies {

// Test
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'

// Kotlin
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1'
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/assets/html/translation.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ <h2>Russian</h2> <!-- Russian -->

<br>

<h2>Turkish</h2> <!-- Turkish -->
<sub>(tr)</sub>
<p>Kyoya • <a href="https://crowdin.com/profile/kyoya">kyoya</a></p>

<br>

<h2>Arabic</h2> <!-- Arabic -->
<sub>(ar) • <i>Not supported anymore</i></sub>
<p>أحمد البحيري • <a href="https://crowdin.com/profile/wowo774455">wowo774455</a></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import app.simple.inure.R
import app.simple.inure.database.instances.StackTraceDatabase
import app.simple.inure.decorations.transitions.compat.DetailsTransitionArc
import app.simple.inure.dialogs.miscellaneous.Error.Companion.showError
import app.simple.inure.dialogs.miscellaneous.Warning
import app.simple.inure.dialogs.miscellaneous.Warning.Companion.showWarning
import app.simple.inure.popups.behavior.PopupArcType
import app.simple.inure.popups.behavior.PopupTransitionType
import app.simple.inure.preferences.AppearancePreferences
Expand Down Expand Up @@ -289,23 +289,15 @@ open class BaseActivity : AppCompatActivity(), ThemeChangedListener, android.con
}

open fun showWarning(warning: String) {
val p0 = Warning.newInstance(warning)
p0.setOnWarningCallbackListener(object : Warning.Companion.WarningCallbacks {
override fun onDismiss() {
onBackPressedDispatcher.onBackPressed()
}
})
p0.show(supportFragmentManager, "warning")
supportFragmentManager.showWarning(warning).setOnWarningCallbackListener {
onBackPressedDispatcher.onBackPressed()
}
}

open fun showWarning(@StringRes warning: Int) {
val p0 = Warning.newInstance(warning)
p0.setOnWarningCallbackListener(object : Warning.Companion.WarningCallbacks {
override fun onDismiss() {
onBackPressedDispatcher.onBackPressed()
}
})
p0.show(supportFragmentManager, "warning")
supportFragmentManager.showWarning(warning).setOnWarningCallbackListener {
onBackPressedDispatcher.onBackPressed()
}
}

override fun onSharedPreferenceChanged(sharedPreferences: android.content.SharedPreferences?, key: String?) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import app.simple.inure.R
import app.simple.inure.constants.BundleConstants
import app.simple.inure.constants.Misc
import app.simple.inure.dialogs.miscellaneous.Error.Companion.showError
import app.simple.inure.dialogs.miscellaneous.Warning
import app.simple.inure.dialogs.miscellaneous.Warning.Companion.showWarning
import app.simple.inure.preferences.BehaviourPreferences
import app.simple.inure.preferences.SharedPreferences.getSharedPreferences
import app.simple.inure.preferences.SharedPreferences.registerSharedPreferenceChangeListener
Expand Down Expand Up @@ -174,22 +174,14 @@ abstract class ScopedBottomSheetFragment : BottomSheetDialogFragment(),
}

open fun showWarning(warning: String) {
val p0 = Warning.newInstance(warning)
p0.setOnWarningCallbackListener(object : Warning.Companion.WarningCallbacks {
override fun onDismiss() {
dismiss()
}
})
p0.show(parentFragmentManager, "warning")
childFragmentManager.showWarning(warning).setOnWarningCallbackListener {
dismiss()
}
}

open fun showWarning(@StringRes warning: Int) {
val p0 = Warning.newInstance(warning)
p0.setOnWarningCallbackListener(object : Warning.Companion.WarningCallbacks {
override fun onDismiss() {
dismiss()
}
})
p0.show(parentFragmentManager, "warning")
childFragmentManager.showWarning(warning).setOnWarningCallbackListener {
dismiss()
}
}
}

0 comments on commit 84c83e9

Please sign in to comment.