Skip to content

Commit 489be0a

Browse files
committed
Merge branch 'master' into jay/MOB-4439-update-email
2 parents 42ae015 + a6d07bc commit 489be0a

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

sample-apps/inbox-customization/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ apply plugin: 'kotlin-android'
55
apply plugin: 'kotlin-android-extensions'
66

77
android {
8-
compileSdkVersion 29
8+
compileSdkVersion 33
99
buildToolsVersion "29.0.3"
1010
defaultConfig {
1111
applicationId "com.iterable.inbox_customization"
1212
minSdkVersion 16
13-
targetSdkVersion 29
13+
targetSdkVersion 33
1414
versionCode 1
1515
versionName "1.0"
1616
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

sample-apps/inbox-customization/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
android:supportsRtl="true"
1212
android:usesCleartextTraffic="true"
1313
android:theme="@style/AppTheme">
14-
<activity android:name=".MainActivity">
14+
<activity android:name=".MainActivity" android:exported="true">
1515
<intent-filter>
1616
<action android:name="android.intent.action.MAIN" />
1717

sample-apps/inbox-customization/app/src/main/java/com/iterable/inbox_customization/util/SingleFragmentActivity.kt

+6-4
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ class SingleFragmentActivity : AppCompatActivity() {
1212
override fun onCreate(savedInstanceState: Bundle?) {
1313
super.onCreate(savedInstanceState)
1414
val fragmentName = intent.getStringExtra(FRAGMENT_NAME)
15-
val fragment: Fragment = Fragment.instantiate(this, fragmentName)
15+
val fragment: Fragment? = fragmentName?.let { Fragment.instantiate(this, it) }
1616
val fragmentArguments = intent.getBundleExtra(FRAGMENT_ARGUMENTS)
17-
fragment.arguments = fragmentArguments
18-
supportFragmentManager.beginTransaction()
19-
.replace(android.R.id.content, fragment, "fragment").commit()
17+
fragment?.arguments = fragmentArguments
18+
fragment?.let {
19+
supportFragmentManager.beginTransaction()
20+
.replace(android.R.id.content, it, "fragment").commit()
21+
}
2022
}
2123

2224
companion object {

sample-apps/inbox-customization/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88

99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.5.3'
11+
classpath 'com.android.tools.build:gradle:3.5.4'
1212
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1313
// NOTE: Do not place your application dependencies here; they belong
1414
// in the individual module build.gradle files

0 commit comments

Comments
 (0)