Commit de09bc1a authored by pokkst's avatar pokkst

Fixes issue where pressing buttons really fast would open multiple of the same...

Fixes issue where pressing buttons really fast would open multiple of the same activity. Compiles new v1.10 .aab
parent a41a36ab
No preview for this file type
......@@ -35,82 +35,98 @@
<activity android:name=".activity.VerifySignatureActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.ViewTransactionActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.PaymentReceivedActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.SendActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.SendSLPActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.ReceiveActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.ReceiveSLPActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.SettingsActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.EncryptWalletActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.DecryptWalletActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.AdvancedSettingsActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.KeysListActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.UtxosListActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.ManageKeyActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.HistoryActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity android:name=".activity.TokensListActivity"
android:configChanges="orientation"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing">
android:windowSoftInputMode="adjustNothing"
android:launchMode="singleTop">
</activity>
<activity
android:name="com.journeyapps.barcodescanner.CaptureActivity"
......
......@@ -27,23 +27,8 @@ class PaymentReceivedActivity : AppCompatActivity() {
}
override fun onStart() {
super.onStart()
running = true
}
override fun onStop() {
super.onStop()
running = false
}
override fun onBackPressed() {
running = false
super.onBackPressed()
this.finish()
}
companion object {
var running: Boolean = false
}
}
......@@ -414,9 +414,7 @@ class WalletManager {
if (tx.purpose == Transaction.Purpose.UNKNOWN) {
UIManager.playAudio(activity, R.raw.coins_received)
if (!PaymentReceivedActivity.running)
UIManager.startActivity(activity, PaymentReceivedActivity::class.java)
UIManager.startActivity(activity, PaymentReceivedActivity::class.java)
}
val v = activity.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment