Skip to content

Commit 4c5cb31

Browse files
authored
Merge branch 'dev' into history_cache_compose
2 parents 0530a6b + 035c394 commit 4c5cb31

71 files changed

Lines changed: 193 additions & 138 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ The [ktlint](https://github.com/pinterest/ktlint) plugin does the same job as ch
7979

8080
## Communication
8181

82-
* The #newpipe channel on Libera Chat (`ircs://irc.libera.chat:6697/newpipe`) has the core team and other developers in it. [Click here for webchat](https://web.libera.chat/#newpipe)!
83-
* You can also use a Matrix account to join the NewPipe channel at [#newpipe:libera.chat](https://matrix.to/#/#newpipe:libera.chat). Some convenient clients, available both for phone and desktop, are listed at that link.
84-
* You can post your suggestions, changes, ideas etc. on either GitHub or IRC.
82+
* You can use a Matrix account to join the NewPipe channel at [#newpipe:matrix.newpipe-ev.de](https://matrix.to/#/#newpipe:matrix.newpipe-ev.de). Some convenient clients, available both for phone and desktop, are listed at that link.
83+
* Alternatively, the #newpipe channel on Libera Chat (`ircs://irc.libera.chat:6697/newpipe`) can also be joined, as it is bridged to the Matrix room. [Click here for webchat](https://web.libera.chat/#newpipe)!
84+
* You can post your suggestions, changes, ideas etc. on either GitHub or Matrix (including via IRC).

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ contact_links:
33
- name: ❓ Question
44
url: https://github.com/TeamNewPipe/NewPipe/discussions/new?category=questions
55
about: Ask about anything NewPipe-related
6+
- name: 💬 Matrix
7+
url: https://matrix.to/#/#newpipe:matrix.newpipe-ev.de
8+
about: Chat with us via Matrix for quick Q/A
69
- name: 💬 IRC
710
url: https://web.libera.chat/#newpipe
811
about: Chat with us via IRC for quick Q/A
9-
- name: 💬 Matrix
10-
url: https://matrix.to/#/#newpipe:libera.chat
11-
about: Chat with us via Matrix for quick Q/A

.idea/icon.svg

Lines changed: 21 additions & 0 deletions
Loading

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ android {
2121
resValue "string", "app_name", "NewPipe"
2222
minSdk 21
2323
targetSdk 33
24-
versionCode 997
25-
versionName "0.27.0"
24+
versionCode 999
25+
versionName "0.27.2"
2626

2727
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2828

app/proguard-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
-keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; }
88
-keep class org.mozilla.javascript.** { *; }
99
-keep class org.mozilla.classfile.ClassFileWriter
10+
-dontwarn org.mozilla.javascript.JavaToJSONConverters
1011
-dontwarn org.mozilla.javascript.tools.**
1112

1213
## Rules for ExoPlayer

app/src/main/java/org/schabi/newpipe/error/ErrorActivity.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import static org.schabi.newpipe.util.Localization.assureCorrectAppLanguage;
44

5-
import android.app.Activity;
65
import android.content.Context;
76
import android.content.Intent;
87
import android.net.Uri;
@@ -13,7 +12,6 @@
1312
import android.view.MenuInflater;
1413
import android.view.MenuItem;
1514

16-
import androidx.annotation.Nullable;
1715
import androidx.appcompat.app.ActionBar;
1816
import androidx.appcompat.app.AlertDialog;
1917
import androidx.appcompat.app.AppCompatActivity;
@@ -22,7 +20,6 @@
2220
import com.grack.nanojson.JsonWriter;
2321

2422
import org.schabi.newpipe.BuildConfig;
25-
import org.schabi.newpipe.MainActivity;
2623
import org.schabi.newpipe.R;
2724
import org.schabi.newpipe.databinding.ActivityErrorBinding;
2825
import org.schabi.newpipe.util.Localization;
@@ -187,25 +184,6 @@ private String formErrorText(final String[] el) {
187184
.collect(Collectors.joining(separator + "\n", separator + "\n", separator));
188185
}
189186

190-
/**
191-
* Get the checked activity.
192-
*
193-
* @param returnActivity the activity to return to
194-
* @return the casted return activity or null
195-
*/
196-
@Nullable
197-
static Class<? extends Activity> getReturnActivity(final Class<?> returnActivity) {
198-
Class<? extends Activity> checkedReturnActivity = null;
199-
if (returnActivity != null) {
200-
if (Activity.class.isAssignableFrom(returnActivity)) {
201-
checkedReturnActivity = returnActivity.asSubclass(Activity.class);
202-
} else {
203-
checkedReturnActivity = MainActivity.class;
204-
}
205-
}
206-
return checkedReturnActivity;
207-
}
208-
209187
private void buildInfo(final ErrorInfo info) {
210188
String text = "";
211189

app/src/main/java/org/schabi/newpipe/error/ReCaptchaActivity.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@ private void handleCookiesFromUrl(@Nullable final String url) {
190190
handleCookies(abuseCookie);
191191
} catch (final StringIndexOutOfBoundsException e) {
192192
if (MainActivity.DEBUG) {
193-
e.printStackTrace();
194-
Log.d(TAG, "handleCookiesFromUrl: invalid google abuse starting at "
195-
+ abuseStart + " and ending at " + abuseEnd + " for url " + url);
193+
Log.e(TAG, "handleCookiesFromUrl: invalid google abuse starting at "
194+
+ abuseStart + " and ending at " + abuseEnd + " for url " + url, e);
196195
}
197196
}
198197
}

app/src/main/java/org/schabi/newpipe/player/mediasession/MediaSessionPlayerUi.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ public class MediaSessionPlayerUi extends PlayerUi
3838
implements SharedPreferences.OnSharedPreferenceChangeListener {
3939
private static final String TAG = "MediaSessUi";
4040

41+
@Nullable
4142
private MediaSessionCompat mediaSession;
43+
@Nullable
4244
private MediaSessionConnector sessionConnector;
4345

4446
private final String ignoreHardwareMediaButtonsKey;
@@ -198,6 +200,11 @@ private void updateMediaSessionActions() {
198200
return;
199201
}
200202

203+
if (sessionConnector == null) {
204+
// sessionConnector will be null after destroyPlayer is called
205+
return;
206+
}
207+
201208
// only use the fourth and fifth actions (the settings page also shows only the last 2 on
202209
// Android 13+)
203210
final List<NotificationActionData> newNotificationActions = IntStream.of(3, 4)

app/src/main/java/org/schabi/newpipe/settings/DownloadSettingsFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ private void showPathInSummary(final String prefKey, @StringRes final int defaul
121121
target.setSummary(new File(URI.create(rawUri)).getPath());
122122
return;
123123
}
124-
125124
rawUri = decodeUrlUtf8(rawUri);
126125

126+
127127
target.setSummary(rawUri);
128128
}
129129

app/src/test/java/org/schabi/newpipe/error/ErrorActivityTest.java

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)