Skip to content

Commit 7da8a03

Browse files
committed
core & plugin sources, plugin assets
1 parent a1664b6 commit 7da8a03

File tree

2,954 files changed

+799303
-4
lines changed

Some content is hidden

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

2,954 files changed

+799303
-4
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ google-services.json
138138

139139

140140
# Exclude plugins since they take up lots of space.. use updatePlugins.sh to get them locally
141-
/BiglyBT/src/coreFlavor/assets/plugins/
142-
/BiglyBT/src/coreFlavor/assets/plugins.zip
143141
/BiglyBT/libs/*_*.*.*.jar
144142

145143

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BiglyBT/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ android {
1414
// Mjr, Mnr, Patch, BuildNo
1515
// Even patch #: Release
1616
// Odd patch #: WIP
17-
versionCode 1020502
17+
versionCode 1020504
1818
multiDexEnabled true
1919
vectorDrawables.useSupportLibrary = true
2020
}
@@ -182,6 +182,7 @@ dependencies {
182182
implementation project(':Android-DirectoryChooser')
183183

184184
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.2'
185+
implementation project(':core')
185186
}
186187

187188
afterEvaluate {
-8.7 MB
Binary file not shown.
390 KB
Binary file not shown.

BiglyBT/src/main/java/com/biglybt/android/client/fragment/TorrentListFragment.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
import androidx.appcompat.view.ActionMode.Callback;
3535
import androidx.appcompat.view.menu.MenuBuilder;
3636
import androidx.appcompat.widget.Toolbar;
37+
import androidx.core.content.ContextCompat;
38+
import androidx.core.view.MenuItemCompat;
3739
import androidx.fragment.app.FragmentActivity;
3840
import androidx.fragment.app.FragmentManager;
3941
import androidx.recyclerview.widget.RecyclerView;
@@ -1018,6 +1020,16 @@ public boolean onCreateActionMode(ActionMode mode, Menu menu) {
10181020
frag.onCreateActionMode(mode, menu);
10191021
}
10201022

1023+
int numItems = menu.size();
1024+
for (int i = 0; i < numItems; i++) {
1025+
MenuItem item = menu.getItem(i);
1026+
if (item != null && item.getIcon() != null) {
1027+
MenuItemCompat.setIconTintList(item,
1028+
ContextCompat.getColorStateList(requireContext(),
1029+
R.color.actionmode));
1030+
}
1031+
}
1032+
10211033
SubMenu subMenu = menu.addSubMenu(R.string.menu_global_actions);
10221034
subMenu.setIcon(R.drawable.ic_menu_white_24dp);
10231035
subMenu.getItem().setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);

BiglyBT/src/main/res.torrentdetails/menu/menu_context_torrent_files.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,48 @@
88
android:icon="@drawable/ic_launch"
99
android:showAsAction="ifRoom"
1010
android:title="@string/action_sel_launch"
11+
app:iconTint="?android:attr/textColorPrimary"
1112
app:showAsAction="ifRoom"/>
1213
<item
1314
android:id="@+id/action_sel_launch_stream"
1415
android:icon="@drawable/ic_stream"
1516
android:showAsAction="ifRoom"
1617
android:title="@string/action_sel_launch"
18+
app:iconTint="?android:attr/textColorPrimary"
1719
app:showAsAction="ifRoom"/>
1820
<item
1921
android:id="@+id/action_sel_save"
2022
android:icon="@drawable/ic_menu_save"
2123
android:showAsAction="ifRoom"
2224
android:title="@string/action_sel_save"
25+
app:iconTint="?android:attr/textColorPrimary"
2326
app:showAsAction="ifRoom"/>
2427
<item
2528
android:id="@+id/action_sel_priority_up"
2629
android:icon="@drawable/ic_speedometer"
2730
android:showAsAction="ifRoom"
2831
android:title="@string/action_sel_priority_up"
32+
app:iconTint="?android:attr/textColorPrimary"
2933
app:showAsAction="ifRoom"/>
3034
<item
3135
android:id="@+id/action_sel_priority_down"
3236
android:icon="@drawable/ic_slowometer"
3337
android:showAsAction="ifRoom"
3438
android:title="@string/action_sel_priority_down"
39+
app:iconTint="?android:attr/textColorPrimary"
3540
app:showAsAction="ifRoom"/>
3641
<item
3742
android:id="@+id/action_sel_file_unwanted"
3843
android:icon="@drawable/ic_trash_24dp"
3944
android:showAsAction="ifRoom"
4045
android:title="@string/action_set_unwanted"
46+
app:iconTint="?android:attr/textColorPrimary"
4147
app:showAsAction="ifRoom"/>
4248
<item
4349
android:id="@+id/action_sel_file_wanted"
4450
android:icon="@drawable/ic_download_white"
4551
android:showAsAction="ifRoom"
4652
android:title="@string/action_set_wanted"
53+
app:iconTint="?android:attr/textColorPrimary"
4754
app:showAsAction="ifRoom"/>
4855
</menu>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
~ This program is free software; you can redistribute it and/or
4+
~ modify it under the terms of the GNU General Public License
5+
~ as published by the Free Software Foundation; either version 2
6+
~ of the License, or (at your option) any later version.
7+
~
8+
~ This program is distributed in the hope that it will be useful,
9+
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
~ GNU General Public License for more details.
12+
~
13+
~ You should have received a copy of the GNU General Public License
14+
~ along with this program; if not, write to the Free Software
15+
~ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16+
-->
17+
18+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
19+
<item android:color="?android:attr/textColorPrimary"/>
20+
</selector>

core/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

core/build.gradle

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apply plugin: 'java-library'
2+
3+
sourceSets {
4+
main {
5+
6+
java {
7+
srcDirs = ['src','plugins']
8+
}
9+
10+
resources {
11+
includes = [ '**/*.properties' ]
12+
srcDirs = ['src','plugins']
13+
}
14+
}
15+
}
16+
17+
dependencies {
18+
implementation fileTree(dir: 'libs', include: ['*.jar'])
19+
//noinspection GradleDependency
20+
compile 'commons-cli:commons-cli:1.4'
21+
}
22+
23+
sourceCompatibility = "1.8"
24+
targetCompatibility = "1.8"

0 commit comments

Comments
 (0)