Skip to content

Commit

Permalink
added pending intent flags
Browse files Browse the repository at this point in the history
  • Loading branch information
zigaspica committed Mar 21, 2022
1 parent 9f4ef8f commit f9a67c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
android:name=".view.MainActivity"
android:screenOrientation="sensorPortrait"
android:windowSoftInputMode="stateHidden"
android:label="@string/app_name" />
android:label="@string/app_name"
android:exported="true"/>
<activity
android:name=".view.SplashActivity"
android:screenOrientation="portrait"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SplashActivity : AppCompatActivity() {
setContentView(R.layout.activity_splash)

timer.schedule(3000) {
var intent = Intent(this@SplashActivity, MainActivity::class.java)
val intent = Intent(this@SplashActivity, MainActivity::class.java)
startActivity(intent)
finish()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ abstract class NfcAct : AppCompatActivity(), CreateNdefMessageCallback {
this,
0,
Intent(this, javaClass).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP),
0
PendingIntent.FLAG_MUTABLE
)
mIntentFilters = arrayOf(IntentFilter(NfcAdapter.ACTION_NDEF_DISCOVERED))
mTechLists = arrayOf(
Expand Down

0 comments on commit f9a67c1

Please sign in to comment.