Skip to content

Commit 5ce0e5b

Browse files
committed
mminor change
2 parents 40b686c + 8049e62 commit 5ce0e5b

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies {
3636
implementation 'androidx.core:core-ktx:1.3.1'
3737
implementation 'androidx.appcompat:appcompat:1.2.0'
3838
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
39-
// implementation project(path: ':customcamera')
39+
implementation project(path: ':customcamera')
4040
testImplementation 'junit:junit:4.12'
4141
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
4242
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
@@ -51,5 +51,5 @@ dependencies {
5151
// implementation "androidx.camera:camera-view:1.0.0-alpha16"
5252

5353
// Custom Camera
54-
implementation 'com.github.Priyansh-Kedia:CustomCamera:1.1'
54+
// implementation 'com.github.Priyansh-Kedia:CustomCamera:1.1'
5555
}

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
android:roundIcon="@mipmap/ic_launcher_round"
1010
android:supportsRtl="true"
1111
android:theme="@style/AppTheme">
12-
<activity android:name=".MainActivity">
12+
<activity android:name=".Main2Activity">
1313
<intent-filter>
1414
<action android:name="android.intent.action.MAIN" />
15-
1615
<category android:name="android.intent.category.LAUNCHER" />
1716
</intent-filter>
1817
</activity>
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
package com.kedia.cameracustom
22

33
import android.graphics.Bitmap
4-
import android.os.Bundle
54
import androidx.appcompat.app.AppCompatActivity
5+
import android.os.Bundle
66
import com.kedia.customcamera.CCMultiple
7-
import kotlinx.android.synthetic.main.activity_main.*
87

9-
class MainActivity : AppCompatActivity(), CCMultiple.CustomCamera {
8+
class Main2Activity : AppCompatActivity(), CCMultiple.CustomMultiple {
109
override fun onCreate(savedInstanceState: Bundle?) {
1110
super.onCreate(savedInstanceState)
12-
setContentView(R.layout.activity_main)
13-
cc.setListener(this)
11+
setContentView(R.layout.activity_main2)
1412
}
1513

16-
override fun onConfirmImages(imageArrayList: MutableList<Bitmap?>) {
14+
override fun onConfirmImagesClicked(imageArrayList: MutableList<Bitmap?>) {
1715
TODO("Not yet implemented")
1816
}
1917

2018
override fun onGalleryClicked() {
2119
TODO("Not yet implemented")
2220
}
23-
}
21+
}

app/src/main/res/layout/activity_main.xml renamed to app/src/main/res/layout/activity_main2.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7-
tools:context=".MainActivity">
7+
tools:context=".Main2Activity">
8+
89

910
<com.kedia.customcamera.CCMultiple
1011
android:layout_width="match_parent"
1112
android:layout_height="match_parent"
12-
app:showSnapButton="true"
13-
app:showNoPermissionToast="true"
14-
android:id="@+id/cc"
15-
app:snapButtonColor="@color/colorAccent" />
13+
android:id="@+id/cc" />
1614

1715
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)