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