Skip to content

Commit 648e5f9

Browse files
Remove deprecated APIs (#499)
1 parent 0422acd commit 648e5f9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ android {
4141
repositories {
4242
maven {
4343
// TODO add this only if interested in getting SNAPSHOT releases
44-
url "https://oss.sonatype.org/content/repositories/snapshots"
44+
url "https://central.sonatype.com/repository/maven-snapshots/"
4545
}
4646
google()
4747
}

app/src/main/java/com/example/instabug/ui/activities/SettingsActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import com.instabug.library.Instabug;
1414
import com.instabug.library.InstabugColorTheme;
1515
import com.instabug.library.invocation.InstabugInvocationEvent;
16+
import com.instabug.library.model.IBGTheme;
1617
import com.skydoves.colorpickerview.ColorEnvelope;
1718
import com.skydoves.colorpickerview.ColorPickerDialog;
1819
import com.skydoves.colorpickerview.listeners.ColorEnvelopeListener;
@@ -101,7 +102,7 @@ public void onChangePrimaryColorClicked(View view) {
101102
new ColorEnvelopeListener() {
102103
@Override
103104
public void onColorSelected(ColorEnvelope envelope, boolean fromUser) {
104-
Instabug.setPrimaryColor(envelope.getColor());
105+
Instabug.setTheme(new IBGTheme.Builder().setPrimaryColor(envelope.getColor()).build());
105106
}
106107
})
107108
.setNegativeButton(getString(android.R.string.cancel),

0 commit comments

Comments
 (0)