mirror of
https://github.com/nuclearfog/Shitter.git
synced 2024-12-29 02:50:21 +01:00
bug fix
This commit is contained in:
parent
a128002298
commit
7d95cd1832
@ -30,6 +30,10 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
ignore 'NotificationPermission'
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
jniLibs {
|
||||
excludes += ['/META-INF/androidx.*', '/META-INF/kotlin*', '/META-INF/com.*', '/META-INF/services/**', '/META-INF/com/**', '/kotlin/**', '/Debug*']
|
||||
@ -38,6 +42,8 @@ android {
|
||||
excludes += ['/META-INF/CHANGES', '/META-INF/DEPENDENCIES', '/META-INF/README.md', '/META-INF/androidx.*', '/META-INF/kotlin*', '/META-INF/com.*', '/META-INF/services/**', '/META-INF/com/**', '/kotlin/**', '/Debug*']
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
@ -11,6 +11,7 @@ import org.nuclearfog.twidda.backend.async.NotificationLoader.NotificationLoader
|
||||
import org.nuclearfog.twidda.backend.async.PushUpdater;
|
||||
import org.nuclearfog.twidda.backend.helper.update.PushUpdate;
|
||||
import org.nuclearfog.twidda.config.GlobalSettings;
|
||||
import org.unifiedpush.android.connector.ConstantsKt;
|
||||
import org.unifiedpush.android.connector.MessagingReceiver;
|
||||
|
||||
/**
|
||||
@ -37,9 +38,11 @@ public class PushNotificationReceiver extends MessagingReceiver implements Async
|
||||
|
||||
@Override
|
||||
public void onNewEndpoint(@NonNull Context context, @NonNull String endpoint, @NonNull String instance) {
|
||||
PushUpdater pushUpdater = new PushUpdater(context);
|
||||
PushUpdate update = new PushUpdate(endpoint);
|
||||
pushUpdater.execute(update, null);
|
||||
if (instance.equals(ConstantsKt.INSTANCE_DEFAULT)) {
|
||||
PushUpdater pushUpdater = new PushUpdater(context);
|
||||
PushUpdate update = new PushUpdate(endpoint);
|
||||
pushUpdater.execute(update, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user