Compare commits
237 Commits
Author | SHA1 | Date | |
---|---|---|---|
327f6f0e8d | |||
d6f1a360d2 | |||
24ec69d7f7 | |||
c80692bd34 | |||
b5e9f70be6 | |||
d446081331 | |||
8178cff72c | |||
950d99b5de | |||
b7855cb1a2 | |||
b298fbfa3e | |||
d83929f80a | |||
b932ed2c13 | |||
36073d340d | |||
0e14540b69 | |||
57327a8ad0 | |||
bbfa278d6b | |||
439decf6a9 | |||
2277cc5f05 | |||
4204ffccee | |||
31407e709d | |||
44d26bb1cf | |||
8a8a433023 | |||
5c27292543 | |||
e475348d39 | |||
9f8358e471 | |||
4fd8d42d85 | |||
498990c48a | |||
1cddf26c9a | |||
325a239b86 | |||
2c4ef9c3ce | |||
4dbd191c4f | |||
01e489da10 | |||
53a7062c6d | |||
3425e1e593 | |||
9970635ff8 | |||
c1f174a5b8 | |||
3587e7c524 | |||
3911ad15a6 | |||
d40b35da59 | |||
ccb6e184cc | |||
74e45b1820 | |||
0a1336f0e0 | |||
d5a0dcb980 | |||
83e7c41ca0 | |||
1d1b0c11a9 | |||
3b2c4e2ac6 | |||
2d77fe580f | |||
7ae20f43f8 | |||
f03c1b206b | |||
d99a58f2cf | |||
5aeaf7f34b | |||
af0b484d16 | |||
0a6791b752 | |||
e73e306d05 | |||
52189abbff | |||
d721f12d74 | |||
69f28bb647 | |||
2b2295d831 | |||
179586b8c4 | |||
1afad9e06a | |||
59c73fd864 | |||
6820344750 | |||
680504791c | |||
41e500a8f8 | |||
448af1ef9a | |||
041e8c0bd6 | |||
0b7300e93a | |||
94c5f5a705 | |||
fa2f8a7b05 | |||
aeb288142e | |||
635c43f458 | |||
d36138431b | |||
9cdf857730 | |||
52a6152af6 | |||
9d3312c081 | |||
1146236f46 | |||
ec19ee1e55 | |||
cc37e40158 | |||
bdd12de34d | |||
e64692d0d3 | |||
7da8c0f664 | |||
fc41c077dc | |||
50800da4b9 | |||
a9219e8a91 | |||
5eedadef47 | |||
14cde8e625 | |||
1f2ecd591d | |||
9a2eb6cd49 | |||
aa38514bcb | |||
f2fddfb16c | |||
05300682c1 | |||
a3714a4ecf | |||
500584b9ef | |||
33ac822957 | |||
1f6107e238 | |||
2b7639599c | |||
dedf7b0163 | |||
88b5a83fb1 | |||
efd6b0088f | |||
ccb5cd20b1 | |||
668e41bc9b | |||
46123fa7d6 | |||
b079965de8 | |||
842ab914a4 | |||
fcb93b7dc6 | |||
f1420fe29e | |||
23f8674adc | |||
76a4aa5ae6 | |||
85ffb4064b | |||
73c9e639b6 | |||
5172695784 | |||
fcc10f97b5 | |||
0a12020fd8 | |||
e9c10b17e0 | |||
f4698f1312 | |||
1690507a18 | |||
fbeb87e29e | |||
de14e95e90 | |||
35c5713b0a | |||
413792087e | |||
21c53d2b4d | |||
5757a8b1d8 | |||
680bdf7bd2 | |||
6911fbd124 | |||
9fdffc9709 | |||
0b722a5ecc | |||
6ae42ffefe | |||
3a8c82ce63 | |||
04c2b277ce | |||
962462ff84 | |||
964b0f2690 | |||
4b25b61680 | |||
61c3735e57 | |||
b0e29c0ba4 | |||
e7f55aace9 | |||
2955206b07 | |||
b59d97279d | |||
7d9e299940 | |||
e15252a0f8 | |||
e0907f1dc8 | |||
1107391c43 | |||
2500035c33 | |||
24ad4dbc0f | |||
550394a5e4 | |||
720c13fa2d | |||
a02b8b79c1 | |||
c2f99e130d | |||
250aa03e9a | |||
dd7d253a1b | |||
f2b46fffe0 | |||
60630cc4ea | |||
85164c18e9 | |||
3634e5e232 | |||
f7d44cb547 | |||
85b89507db | |||
7415b752cc | |||
0a52060223 | |||
1024b1e6f9 | |||
23fc061711 | |||
bfa3ede06b | |||
c7f6cdc8c6 | |||
58f280d347 | |||
0715824ae1 | |||
5540c8cacc | |||
14efbdd08f | |||
7ceb04d548 | |||
e9608f63db | |||
64e1c7ca81 | |||
7823b30900 | |||
1e45e4454c | |||
1dd3a193c5 | |||
30416837a9 | |||
363132d331 | |||
ebc0d744ed | |||
d685031ee8 | |||
3ea012f62e | |||
9a06f5660b | |||
dff76aada1 | |||
50a9f8a1b0 | |||
8ff3b81112 | |||
38f73a5d60 | |||
15f6835a0c | |||
84e3264726 | |||
dbd068d95f | |||
acba219e44 | |||
c8e7c23855 | |||
f0ff8a6feb | |||
91a1380fef | |||
3351ef7d91 | |||
564cda58a5 | |||
3233fe673d | |||
8cc8b284ce | |||
3ecdedc17c | |||
8f361c605a | |||
9d599e8b57 | |||
9c676d8002 | |||
d3ffc32d9b | |||
8c95554d8e | |||
3ed5248c2a | |||
32990932ad | |||
6d0a47903c | |||
05eaa196b4 | |||
2cd076bfb8 | |||
02cd267cae | |||
21394cb585 | |||
73cd48b94a | |||
ea2cf58e5f | |||
2f3e29b037 | |||
33d597c2c0 | |||
66afb3f4ee | |||
dad94d753d | |||
1727bebf58 | |||
37576c69ce | |||
b8f83a7227 | |||
3a14abaf2e | |||
0e03a55aef | |||
931fb30330 | |||
b893dc9c4f | |||
f6ddd99449 | |||
ddcbbfe670 | |||
0f7438fa54 | |||
fbbab1db68 | |||
15725dceb0 | |||
1bcbcec8b8 | |||
c3e475be6f | |||
150a81adc6 | |||
a984607ee8 | |||
2bf929986e | |||
860edec2e6 | |||
90cfcbb7ae | |||
c63048730f | |||
55bbafdbb5 | |||
0923a07e42 | |||
431c21e066 | |||
17c84f6c37 | |||
58f10d9372 | |||
a6dfd842e3 |
17
.github/stale.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Number of days of inactivity before an issue becomes stale
|
||||||
|
daysUntilStale: 60
|
||||||
|
# Number of days of inactivity before a stale issue is closed
|
||||||
|
daysUntilClose: 7
|
||||||
|
# Issues with these labels will never be considered stale
|
||||||
|
exemptLabels:
|
||||||
|
- pinned
|
||||||
|
- security
|
||||||
|
# Label to use when marking an issue as stale
|
||||||
|
staleLabel: inactive
|
||||||
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
|
markComment: >
|
||||||
|
This issue has been automatically marked as stale because it has not had
|
||||||
|
recent activity. It will be closed if no further activity occurs. Thank you
|
||||||
|
for your contributions.
|
||||||
|
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||||
|
closeComment: false
|
@ -68,7 +68,7 @@ assembleDebug:
|
|||||||
cache:
|
cache:
|
||||||
key: "${CI_COMMIT_TAG}"
|
key: "${CI_COMMIT_TAG}"
|
||||||
paths:
|
paths:
|
||||||
- app/build/outputs/apk/fdroid_acad/debug/app-fdroid_acad-debug.apk
|
- app/build/outputs/apk/fdroid_peertube_apps_educ/debug/app-fdroid_peertube_apps_educ-debug.apk
|
||||||
- app/build/outputs/apk/fdroid_full/debug/app-fdroid_full-debug.apk
|
- app/build/outputs/apk/fdroid_full/debug/app-fdroid_full-debug.apk
|
||||||
policy: push
|
policy: push
|
||||||
script:
|
script:
|
||||||
@ -76,11 +76,11 @@ assembleDebug:
|
|||||||
|
|
||||||
# Basic android and gradle stuff
|
# Basic android and gradle stuff
|
||||||
# Check linting
|
# Check linting
|
||||||
lintFdroid_acadDebug:
|
lintfdroid_peertube_apps_educDebug:
|
||||||
interruptible: true
|
interruptible: true
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- ./gradlew -Pci --console=plain :app:lintFdroid_acadDebug -PbuildDir=lint
|
- ./gradlew -Pci --console=plain :app:lintfdroid_peertube_apps_educDebug -PbuildDir=lint
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ putApkOnTags:
|
|||||||
cache:
|
cache:
|
||||||
key: "${CI_COMMIT_TAG}"
|
key: "${CI_COMMIT_TAG}"
|
||||||
paths:
|
paths:
|
||||||
- app/build/outputs/apk/fdroid_acad/debug/app-fdroid_acad-debug.apk
|
- app/build/outputs/apk/fdroid_peertube_apps_educ/debug/app-fdroid_peertube_apps_educ-debug.apk
|
||||||
- app/build/outputs/apk/fdroid_full/debug/app-fdroid_full-debug.apk
|
- app/build/outputs/apk/fdroid_full/debug/app-fdroid_full-debug.apk
|
||||||
policy: pull
|
policy: pull
|
||||||
script:
|
script:
|
||||||
@ -120,11 +120,11 @@ putApkOnTags:
|
|||||||
- export NC_UPLOAD_URL="${NC_REMOTE_DIR}/${CI_COMMIT_TAG}"
|
- export NC_UPLOAD_URL="${NC_REMOTE_DIR}/${CI_COMMIT_TAG}"
|
||||||
- export NC_DOWNLOAD_URL="${NC_SHARE_URL}/download?path=%2F${CI_COMMIT_TAG}%2F&files="
|
- export NC_DOWNLOAD_URL="${NC_SHARE_URL}/download?path=%2F${CI_COMMIT_TAG}%2F&files="
|
||||||
- 'export HEADER="Private-Token: ${GITLAB_API_TOKEN}"'
|
- 'export HEADER="Private-Token: ${GITLAB_API_TOKEN}"'
|
||||||
- export acadUrl="${NC_DOWNLOAD_URL}app-fdroid_acad-debug.apk"
|
- export acadUrl="${NC_DOWNLOAD_URL}app-fdroid_peertube_apps_educ-debug.apk"
|
||||||
- export fullUrl="${NC_DOWNLOAD_URL}app-fdroid_full-debug.apk"
|
- export fullUrl="${NC_DOWNLOAD_URL}app-fdroid_full-debug.apk"
|
||||||
- 'curl -s -u "${NC_USER}:${NC_PASSWORD}" -X MKCOL "${NC_UPLOAD_URL}"'
|
- 'curl -s -u "${NC_USER}:${NC_PASSWORD}" -X MKCOL "${NC_UPLOAD_URL}"'
|
||||||
- 'curl -s -u "${NC_USER}:${NC_PASSWORD}" -T app/build/outputs/apk/fdroid_full/debug/app-fdroid_full-debug.apk "${NC_UPLOAD_URL}/app-fdroid_full-debug.apk"'
|
- 'curl -s -u "${NC_USER}:${NC_PASSWORD}" -T app/build/outputs/apk/fdroid_full/debug/app-fdroid_full-debug.apk "${NC_UPLOAD_URL}/app-fdroid_full-debug.apk"'
|
||||||
- 'curl -s -u "${NC_USER}:${NC_PASSWORD}" -T app/build/outputs/apk/fdroid_acad/debug/app-fdroid_acad-debug.apk "${NC_UPLOAD_URL}/app-fdroid_acad-debug.apk"'
|
- 'curl -s -u "${NC_USER}:${NC_PASSWORD}" -T app/build/outputs/apk/fdroid_peertube_apps_educ/debug/app-fdroid_peertube_apps_educ-debug.apk "${NC_UPLOAD_URL}/app-fdroid_peertube_apps_educ-debug.apk"'
|
||||||
- export description=$(curl -s --header "${HEADER}" "${DESCRIPTION_URL}" | jq .release.description | sed -e 's@"@@g')
|
- export description=$(curl -s --header "${HEADER}" "${DESCRIPTION_URL}" | jq .release.description | sed -e 's@"@@g')
|
||||||
- if [[ $description == 'null' ]]; then export METHOD="POST"; echo -e "[Get the acad version](${acadUrl})\n\n[Get the full version](${fullUrl})" > /tmp/text; fi
|
- if [[ $description == 'null' ]]; then export METHOD="POST"; echo -e "[Get the acad version](${acadUrl})\n\n[Get the full version](${fullUrl})" > /tmp/text; fi
|
||||||
- if [[ $description != 'null' ]]; then export METHOD="PUT"; echo -e "${description}\n\n[Get the acad version](${acadUrl})\n\n[Get the full version](${fullUrl})" > /tmp/text; fi
|
- if [[ $description != 'null' ]]; then export METHOD="PUT"; echo -e "${description}\n\n[Get the acad version](${acadUrl})\n\n[Get the full version](${fullUrl})" > /tmp/text; fi
|
||||||
|
@ -6,7 +6,7 @@ The other app is **[TubeLab](#TubeLab)** a Peertube Android app working for all
|
|||||||
|
|
||||||
## <a name="TubeLab">TubeLab</a>
|
## <a name="TubeLab">TubeLab</a>
|
||||||
|
|
||||||
Tubelab is an Android app for Peertube (GNU GPLv3).
|
Tubelab is an Android app for Peertube (GNU GPLv3). <img src='https://img.shields.io/f-droid/v/app.fedilab.tubelab?include_prereleases' />
|
||||||
|
|
||||||
[<img alt='Get it on Google Play' src='./images/get-it-on-play.png' height="80"/>](https://play.google.com/store/apps/details?id=app.fedilab.tubelab)
|
[<img alt='Get it on Google Play' src='./images/get-it-on-play.png' height="80"/>](https://play.google.com/store/apps/details?id=app.fedilab.tubelab)
|
||||||
[<img alt='Get it on F-Droid' src='./images/get-it-on-fdroid.png' height="80"/>](https://f-droid.org/packages/app.fedilab.tubelab/)
|
[<img alt='Get it on F-Droid' src='./images/get-it-on-fdroid.png' height="80"/>](https://f-droid.org/packages/app.fedilab.tubelab/)
|
||||||
|
108
app/build.gradle
@ -1,18 +1,16 @@
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|
||||||
apply plugin: "androidx.navigation.safeargs"
|
apply plugin: "androidx.navigation.safeargs"
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 30
|
compileSdkVersion 30
|
||||||
buildToolsVersion "30.0.2"
|
buildToolsVersion "30.0.2"
|
||||||
|
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
|
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 24
|
versionCode 34
|
||||||
versionName "1.6.0"
|
versionName "1.11.0"
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
@ -40,45 +38,106 @@ android {
|
|||||||
checkReleaseBuilds false
|
checkReleaseBuilds false
|
||||||
abortOnError false
|
abortOnError false
|
||||||
}
|
}
|
||||||
|
//boolean full_instances if set to false means TubeAcad
|
||||||
productFlavors {
|
productFlavors {
|
||||||
fdroid_acad {
|
fdroid_peertube_apps_educ {
|
||||||
applicationId "app.fedilab.fedilabtube"
|
applicationId "app.fedilab.fedilabtube"
|
||||||
|
resValue "string", "app_name", "TubeAcad"
|
||||||
|
resValue "string", "app_id", "app.fedilab.fedilabtube"
|
||||||
buildConfigField "String", "version", "\"fdroid_acad\""
|
buildConfigField "String", "version", "\"fdroid_acad\""
|
||||||
buildConfigField "boolean", "full_instances", "false"
|
buildConfigField "boolean", "full_instances", "false"
|
||||||
buildConfigField "boolean", "google_restriction", "false"
|
buildConfigField "boolean", "google_restriction", "false"
|
||||||
|
buildConfigField "boolean", "surfing_mode", "false"
|
||||||
|
buildConfigField "boolean", "sepia_search", "false"
|
||||||
|
buildConfigField "boolean", "instance_switcher", "true"
|
||||||
|
buildConfigField "boolean", "allow_remote_connections", "false"
|
||||||
}
|
}
|
||||||
google_acad {
|
google_peertube_apps_educ {
|
||||||
applicationId "app.fedilab.fedilabtube"
|
applicationId "app.fedilab.fedilabtube"
|
||||||
|
resValue "string", "app_name", "TubeAcad"
|
||||||
|
resValue "string", "app_id", "app.fedilab.fedilabtube"
|
||||||
buildConfigField "String", "version", "\"google_acad\""
|
buildConfigField "String", "version", "\"google_acad\""
|
||||||
buildConfigField "boolean", "full_instances", "false"
|
buildConfigField "boolean", "full_instances", "false"
|
||||||
buildConfigField "boolean", "google_restriction", "true"
|
buildConfigField "boolean", "google_restriction", "true"
|
||||||
|
buildConfigField "boolean", "surfing_mode", "false"
|
||||||
|
buildConfigField "boolean", "sepia_search", "false"
|
||||||
|
buildConfigField "boolean", "instance_switcher", "true"
|
||||||
|
buildConfigField "boolean", "allow_remote_connections", "false"
|
||||||
}
|
}
|
||||||
fdroid_full {
|
fdroid_full {
|
||||||
applicationId "app.fedilab.tubelab"
|
applicationId "app.fedilab.tubelab"
|
||||||
|
resValue "string", "app_name", "TubeLab"
|
||||||
|
resValue "string", "app_id", "app.fedilab.tubelab"
|
||||||
buildConfigField "String", "version", "\"fdroid_full\""
|
buildConfigField "String", "version", "\"fdroid_full\""
|
||||||
buildConfigField "boolean", "full_instances", "true"
|
buildConfigField "boolean", "full_instances", "true"
|
||||||
buildConfigField "boolean", "google_restriction", "false"
|
buildConfigField "boolean", "google_restriction", "false"
|
||||||
|
buildConfigField "boolean", "surfing_mode", "true"
|
||||||
|
buildConfigField "boolean", "sepia_search", "true"
|
||||||
|
buildConfigField "boolean", "instance_switcher", "true"
|
||||||
|
buildConfigField "boolean", "allow_remote_connections", "true"
|
||||||
}
|
}
|
||||||
google_full {
|
google_full {
|
||||||
applicationId "app.fedilab.tubelab"
|
applicationId "app.fedilab.tubelab"
|
||||||
|
resValue "string", "app_name", "TubeLab"
|
||||||
|
resValue "string", "app_id", "app.fedilab.tubelab"
|
||||||
buildConfigField "String", "version", "\"google_full\""
|
buildConfigField "String", "version", "\"google_full\""
|
||||||
buildConfigField "boolean", "full_instances", "true"
|
buildConfigField "boolean", "full_instances", "true"
|
||||||
buildConfigField "boolean", "google_restriction", "true"
|
buildConfigField "boolean", "google_restriction", "true"
|
||||||
|
buildConfigField "boolean", "surfing_mode", "true"
|
||||||
|
buildConfigField "boolean", "sepia_search", "true"
|
||||||
|
buildConfigField "boolean", "instance_switcher", "true"
|
||||||
|
buildConfigField "boolean", "allow_remote_connections", "true"
|
||||||
|
}
|
||||||
|
queermotion {
|
||||||
|
applicationId "org.queermotion.peertube"
|
||||||
|
resValue "string", "app_name", "QueerMotion"
|
||||||
|
resValue "string", "app_id", "org.queermotion.peertube"
|
||||||
|
buildConfigField "String", "version", "\"queermotion\""
|
||||||
|
buildConfigField "boolean", "full_instances", "true"
|
||||||
|
buildConfigField "boolean", "google_restriction", "false"
|
||||||
|
buildConfigField "boolean", "surfing_mode", "false"
|
||||||
|
buildConfigField "boolean", "sepia_search", "false"
|
||||||
|
buildConfigField "boolean", "instance_switcher", "false"
|
||||||
|
buildConfigField "boolean", "allow_remote_connections", "false"
|
||||||
|
}
|
||||||
|
bittube {
|
||||||
|
applicationId "app.fedilab.bittube"
|
||||||
|
resValue "string", "app_name", "Bittube"
|
||||||
|
resValue "string", "app_id", "app.fedilab.bittube"
|
||||||
|
buildConfigField "String", "version", "\"bittube\""
|
||||||
|
buildConfigField "boolean", "full_instances", "true"
|
||||||
|
buildConfigField "boolean", "google_restriction", "true"
|
||||||
|
buildConfigField "boolean", "surfing_mode", "false"
|
||||||
|
buildConfigField "boolean", "sepia_search", "false"
|
||||||
|
buildConfigField "boolean", "instance_switcher", "true"
|
||||||
|
buildConfigField "boolean", "allow_remote_connections", "false"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
fdroid_acad {
|
fdroid_peertube_apps_educ {
|
||||||
res.srcDirs = ['src/main/res', 'src/acad/res']
|
res.srcDirs = ['src/main/res', 'src/acad/res']
|
||||||
|
java.srcDirs = ['src/main/java', 'src/acad/java']
|
||||||
}
|
}
|
||||||
google_acad {
|
google_peertube_apps_educ {
|
||||||
res.srcDirs = ['src/main/res', 'src/acad/res']
|
res.srcDirs = ['src/main/res', 'src/acad/res']
|
||||||
|
java.srcDirs = ['src/main/java', 'src/acad/java']
|
||||||
}
|
}
|
||||||
fdroid_full {
|
fdroid_full {
|
||||||
res.srcDirs = ['src/main/res', 'src/full/res']
|
res.srcDirs = ['src/main/res', 'src/full/res']
|
||||||
|
java.srcDirs = ['src/main/java', 'src/full/java']
|
||||||
}
|
}
|
||||||
google_full {
|
google_full {
|
||||||
res.srcDirs = ['src/main/res', 'src/full/res']
|
res.srcDirs = ['src/main/res', 'src/full/res']
|
||||||
|
java.srcDirs = ['src/main/java', 'src/full/java']
|
||||||
|
}
|
||||||
|
queermotion {
|
||||||
|
res.srcDirs = ['src/main/res', 'src/queermotion/res']
|
||||||
|
java.srcDirs = ['src/main/java', 'src/full/java']
|
||||||
|
}
|
||||||
|
bittube {
|
||||||
|
res.srcDirs = ['src/main/res', 'src/bittube/res']
|
||||||
|
java.srcDirs = ['src/main/java', 'src/full/java']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -99,42 +158,51 @@ dependencies {
|
|||||||
implementation 'com.google.android.material:material:1.2.1'
|
implementation 'com.google.android.material:material:1.2.1'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
||||||
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
|
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
|
||||||
implementation 'androidx.navigation:navigation-fragment:2.3.1'
|
implementation 'androidx.navigation:navigation-fragment:2.3.2'
|
||||||
implementation "androidx.fragment:fragment:1.2.5"
|
implementation "androidx.fragment:fragment:1.2.5"
|
||||||
implementation 'androidx.navigation:navigation-ui:2.3.1'
|
implementation 'androidx.navigation:navigation-ui:2.3.2'
|
||||||
implementation ("androidx.navigation:navigation-dynamic-features-fragment:2.3.1")
|
implementation ("androidx.navigation:navigation-dynamic-features-fragment:2.3.2")
|
||||||
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
||||||
implementation 'androidx.browser:browser:1.2.0'
|
implementation 'androidx.browser:browser:1.3.0'
|
||||||
implementation 'androidx.documentfile:documentfile:1.0.1'
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
||||||
testImplementation 'junit:junit:4.13'
|
implementation project(path: ':torrentStream')
|
||||||
|
testImplementation 'junit:junit:4.13.1'
|
||||||
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
||||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
||||||
|
|
||||||
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
|
||||||
implementation 'com.github.GrenderG:Toasty:1.4.2'
|
implementation 'com.github.GrenderG:Toasty:1.4.2'
|
||||||
implementation 'com.google.android.exoplayer:exoplayer:2.12.1'
|
implementation 'com.google.android.exoplayer:exoplayer:2.12.2'
|
||||||
implementation 'com.google.android.exoplayer:extension-mediasession:2.12.1'
|
implementation 'com.google.android.exoplayer:extension-mediasession:2.12.2'
|
||||||
implementation "com.github.mabbas007:TagsEditText:1.0.5"
|
implementation "com.github.mabbas007:TagsEditText:1.0.5"
|
||||||
implementation "com.github.bumptech.glide:glide:4.11.0"
|
implementation "com.github.bumptech.glide:glide:4.11.0"
|
||||||
annotationProcessor "com.github.bumptech.glide:compiler:4.11.0"
|
annotationProcessor "com.github.bumptech.glide:compiler:4.11.0"
|
||||||
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
||||||
implementation "net.gotev:uploadservice:3.5.2"
|
implementation "net.gotev:uploadservice:4.5.1"
|
||||||
implementation "net.gotev:uploadservice-okhttp:3.5.2"
|
implementation "net.gotev:uploadservice-okhttp:4.5.1"
|
||||||
implementation "com.google.code.gson:gson:2.8.6"
|
implementation "com.google.code.gson:gson:2.8.6"
|
||||||
implementation 'androidx.media:media:1.2.0'
|
implementation 'androidx.media:media:1.2.1'
|
||||||
implementation 'com.github.ybq:Android-SpinKit:1.4.0'
|
implementation 'com.github.ybq:Android-SpinKit:1.4.0'
|
||||||
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
||||||
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
||||||
implementation 'com.github.mancj:MaterialSearchBar:0.8.5'
|
implementation 'com.github.mancj:MaterialSearchBar:0.8.5'
|
||||||
|
|
||||||
implementation "com.github.TorrentStream:TorrentStream-Android:2.7.0"
|
|
||||||
|
|
||||||
implementation "io.github.kobakei:ratethisapp:1.2.0"
|
implementation "io.github.kobakei:ratethisapp:1.2.0"
|
||||||
implementation 'com.github.HITGIF:TextFieldBoxes:1.4.5'
|
|
||||||
implementation 'com.github.vkay94:DoubleTapPlayerView:1.0.0'
|
implementation 'com.github.vkay94:DoubleTapPlayerView:1.0.0'
|
||||||
|
|
||||||
implementation "androidx.work:work-runtime:2.4.0"
|
implementation "androidx.work:work-runtime:2.4.0"
|
||||||
implementation "androidx.work:work-runtime-ktx:2.4.0"
|
implementation "androidx.work:work-runtime-ktx:2.4.0"
|
||||||
|
|
||||||
|
//custom cast feature
|
||||||
implementation 'jp.wasabeef:glide-transformations:4.0.0'
|
implementation 'jp.wasabeef:glide-transformations:4.0.0'
|
||||||
|
implementation 'su.litvak.chromecast:api-v2:0.11.3'
|
||||||
|
implementation 'com.fasterxml.jackson.core:jackson-core:2.12.0'
|
||||||
|
implementation 'org.slf4j:slf4j-simple:1.7.30'
|
||||||
|
|
||||||
|
|
||||||
|
fdroid_peertube_apps_educImplementation 'org.matomo.sdk:tracker:4.1.2'
|
||||||
|
google_peertube_apps_educImplementation 'org.matomo.sdk:tracker:4.1.2'
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
35
app/src/acad/java/app/fedilab/fedilabtube/FedilabTube.java
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
package app.fedilab.fedilabtube;
|
||||||
|
/* Copyright 2020 Thomas Schneider
|
||||||
|
*
|
||||||
|
* This file is a part of TubeLab
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
||||||
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* TubeLab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||||||
|
* Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
||||||
|
* see <http://www.gnu.org/licenses>. */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import org.matomo.sdk.Matomo;
|
||||||
|
import org.matomo.sdk.Tracker;
|
||||||
|
import org.matomo.sdk.TrackerBuilder;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public class FedilabTube extends BaseFedilabTube {
|
||||||
|
|
||||||
|
private Tracker mMatomoTracker;
|
||||||
|
|
||||||
|
public synchronized Tracker getTracker() {
|
||||||
|
if (mMatomoTracker != null) return mMatomoTracker;
|
||||||
|
mMatomoTracker = TrackerBuilder.createDefault("https://wa.phm.education.gouv.fr/snp/matomo.php", 11).build(Matomo.getInstance(this));
|
||||||
|
return mMatomoTracker;
|
||||||
|
}
|
||||||
|
}
|
47
app/src/acad/java/app/fedilab/fedilabtube/Matomo.java
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
package app.fedilab.fedilabtube;
|
||||||
|
/* Copyright 2020 Thomas Schneider
|
||||||
|
*
|
||||||
|
* This file is a part of TubeLab
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
||||||
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* TubeLab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||||||
|
* Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
||||||
|
* see <http://www.gnu.org/licenses>. */
|
||||||
|
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
import android.content.Context;
|
||||||
|
|
||||||
|
import org.matomo.sdk.Tracker;
|
||||||
|
import org.matomo.sdk.extra.TrackHelper;
|
||||||
|
|
||||||
|
public class Matomo {
|
||||||
|
|
||||||
|
public static void sendScreen(Context _mcontext, String path, String title) {
|
||||||
|
Tracker tracker = ((FedilabTube) ((Activity) _mcontext).getApplication()).getTracker();
|
||||||
|
TrackHelper.track().screen(path).title(title).with(tracker);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void sendEvent(Context _mcontext, String category, String action, String label, float value) {
|
||||||
|
Tracker tracker = ((FedilabTube) ((Activity) _mcontext).getApplication()).getTracker();
|
||||||
|
TrackHelper.track().event(category, action).name(label).value(value).with(tracker);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void sendValue(Context _mcontext, String path, int index, String dimensionValue) {
|
||||||
|
Tracker tracker = ((FedilabTube) ((Activity) _mcontext).getApplication()).getTracker();
|
||||||
|
TrackHelper.track().screen(path).dimension(index, dimensionValue).with(tracker);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void trackInstall(Context _mcontext) {
|
||||||
|
Tracker tracker = ((FedilabTube) ((Activity) _mcontext).getApplication()).getTracker();
|
||||||
|
TrackHelper.track().download().with(tracker);
|
||||||
|
}
|
||||||
|
}
|
Before Width: | Height: | Size: 720 B After Width: | Height: | Size: 720 B |
Before Width: | Height: | Size: 491 B After Width: | Height: | Size: 491 B |
Before Width: | Height: | Size: 937 B After Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@ -7,7 +7,10 @@
|
|||||||
<color name="tag_color">#bbF2690D</color>
|
<color name="tag_color">#bbF2690D</color>
|
||||||
<color name="tag_color_text">#FAFAFA</color>
|
<color name="tag_color_text">#FAFAFA</color>
|
||||||
<color name="positive_thumbs">#2b90d9</color>
|
<color name="positive_thumbs">#2b90d9</color>
|
||||||
|
<color name="favorite">#ca8f04</color>
|
||||||
|
<color name="bookmark">#795548</color>
|
||||||
<color name="negative_thumbs">#F44336</color>
|
<color name="negative_thumbs">#F44336</color>
|
||||||
|
<color name="backgroundDark">#DD000000</color>
|
||||||
<color name="red_1">#F44336</color>
|
<color name="red_1">#F44336</color>
|
||||||
|
<color name="gray_light">#80808080</color>
|
||||||
</resources>
|
</resources>
|
6
app/src/acad/res/xml/file_paths.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<paths>
|
||||||
|
<external-path
|
||||||
|
name="my_images"
|
||||||
|
path="/TubeAcad/" />
|
||||||
|
</paths>
|
BIN
app/src/bittube/ic_launcher-playstore.png
Normal file
After Width: | Height: | Size: 169 KiB |
5
app/src/bittube/res/color/bottom_nav_color.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:color="@color/colorAccent" android:state_checked="true" />
|
||||||
|
<item android:color="@android:color/tab_indicator_text" />
|
||||||
|
</selector>
|
@ -0,0 +1,864 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:aapt="http://schemas.android.com/aapt"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportWidth="108"
|
||||||
|
android:viewportHeight="108">
|
||||||
|
<group
|
||||||
|
android:scaleX="0.66"
|
||||||
|
android:scaleY="0.66"
|
||||||
|
android:translateX="21"
|
||||||
|
android:translateY="21">
|
||||||
|
<path android:pathData="M85.355,14.645C75.91,5.201 63.354,0 50,0C36.644,0 24.088,5.201 14.645,14.645S0,36.644 0,50c0,13.357 5.201,25.913 14.645,35.355C24.087,94.799 36.643,100 50,100c13.357,0 25.913,-5.201 35.355,-14.645C94.799,75.912 100,63.356 100,50C100,36.646 94.799,24.09 85.355,14.645z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="15.7699"
|
||||||
|
android:endY="86.8818"
|
||||||
|
android:startX="83.2562"
|
||||||
|
android:startY="14.1677"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FF28D1BC"
|
||||||
|
android:offset="0" />
|
||||||
|
<item
|
||||||
|
android:color="#FF00ABFF"
|
||||||
|
android:offset="0.6" />
|
||||||
|
<item
|
||||||
|
android:color="#FF2A5ED6"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M3.151,32.464L13.3,46.493L30.239,4.045c-5.75,2.474 -11.035,6.041 -15.595,10.6C9.504,19.786 5.623,25.851 3.151,32.464z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="24.2938"
|
||||||
|
android:endY="39.2239"
|
||||||
|
android:startX="-4.1098"
|
||||||
|
android:startY="-39.1612"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.5762" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M2.3,34.893c-1.5,4.8 -2.3,9.8 -2.3,15c0,2.8 0.2,5.5 0.7,8.2l7.8,10l36.878,-26.896L2.3,34.893z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="26.5038"
|
||||||
|
android:endY="54.332794"
|
||||||
|
android:startX="-2.655"
|
||||||
|
android:startY="33.41799"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.006" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M40.8,5.893l27.6,28.3l8.9,-26.2c-5.8,-3.8 -12.3,-6.3 -19.2,-7.4L40.8,5.893z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="62.8149"
|
||||||
|
android:endY="14.768093"
|
||||||
|
android:startX="84.794"
|
||||||
|
android:startY="0.65519285"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0013" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M42.79,46.347l25.8,0.6l-27.6,-28.3z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="45.013"
|
||||||
|
android:endY="42.08"
|
||||||
|
android:startX="59.9387"
|
||||||
|
android:startY="27.9081"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M96.88,67.451C98.928,61.941 100,56.054 100,50c0,-0.202 -0.005,-0.402 -0.007,-0.604L68.806,34.399L96.88,67.451z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="79.7008"
|
||||||
|
android:endY="33.716"
|
||||||
|
android:startX="107.2237"
|
||||||
|
android:startY="81.6425"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0029" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M27.8,15.893l17.4,11.8l3.7,-21.1z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.8608"
|
||||||
|
android:endY="17.1429"
|
||||||
|
android:startX="27.8"
|
||||||
|
android:startY="17.1429"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="8.440641E-4" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M97.976,35.848l-5.312,-1.255l3.7,24l3.329,-3.044C99.895,53.719 100,51.868 100,50C100,45.14 99.308,40.386 97.976,35.848z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="93.5393"
|
||||||
|
android:endY="46.7512"
|
||||||
|
android:startX="101.8224"
|
||||||
|
android:startY="45.4073"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0017" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M72.998,85.447l2.742,7.442c2.87,-1.729 5.579,-3.761 8.092,-6.075L72.998,85.447z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="77.1128"
|
||||||
|
android:endY="79.7658"
|
||||||
|
android:startX="81.8324"
|
||||||
|
android:startY="102.8394"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0013" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="0.9982" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M87.435,83.143c2.349,-2.646 4.393,-5.5 6.108,-8.522l-28.357,2.776L87.435,83.143z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="65.4945"
|
||||||
|
android:endY="79.3595"
|
||||||
|
android:startX="123.109"
|
||||||
|
android:startY="78.2586"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0022" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="0.9966" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M72.9,85.193l-56.3,-11.1l7.2,18.4c1.6,1 3.3,1.9 5.1,2.7L72.9,85.193z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="38.2047"
|
||||||
|
android:endY="89.4249"
|
||||||
|
android:startX="58.4365"
|
||||||
|
android:startY="59.1884"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0015" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M79.09,58.897l-21,1.5l10.3,18.9z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="61.745285"
|
||||||
|
android:endY="71.03565"
|
||||||
|
android:startX="78.23818"
|
||||||
|
android:startY="57.920563"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="0.9993" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<group>
|
||||||
|
<clip-path android:pathData="M50,50m-50,0a50,50 0,1 1,100 0a50,50 0,1 1,-100 0" />
|
||||||
|
<path android:pathData="M31.304,22.589v0.7c0,0.1 0,0.1 -0.1,0.2l-1.9,0.8c0,0 0,0 -0.1,0s0,0 -0.1,0l-0.4,-0.2l19.7,27l2.4,-1.7L31.304,22.589z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.7969"
|
||||||
|
android:endY="36.839092"
|
||||||
|
android:startX="28.7808"
|
||||||
|
android:startY="36.839092"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.006" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M65.409,20.005l-0.005,-1.116l-17,30.7l2.5,1.4l16.722,-30.026L65.409,20.005z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.3499"
|
||||||
|
android:endY="34.939095"
|
||||||
|
android:startX="67.5984"
|
||||||
|
android:startY="34.939095"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0013" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M79.625,18.344l-0.021,-1.254l-31.3,32.1l2.1,2l31.2,-32L79.625,18.344z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.3039"
|
||||||
|
android:endY="34.138992"
|
||||||
|
android:startX="81.6039"
|
||||||
|
android:startY="34.138992"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="7.851759E-5" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M90.104,35.389c-0.1,0 -0.1,-0.1 -0.1,-0.2v-2l-41.1,15.7l1,2.7l41.3,-15.8L90.104,35.389z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.8205"
|
||||||
|
android:endY="42.388992"
|
||||||
|
android:startX="91.2039"
|
||||||
|
android:startY="42.388992"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0038" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M11.804,27.989v1.8c0,0.1 -0.1,0.2 -0.1,0.2l-1.2,0.5l38.5,20.9l1.4,-2.6L11.804,27.989z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.3298"
|
||||||
|
android:endY="39.689095"
|
||||||
|
android:startX="10.4298"
|
||||||
|
android:startY="39.689095"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0025" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M17.265,50.089c0.1,0 0.1,0.2 0.1,0.2v2.5c0,0.1 -0.1,0.2 -0.1,0.2l32.439,-1.3l-0.1,-2.9L17.265,50.089z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="49.6603"
|
||||||
|
android:endY="50.888992"
|
||||||
|
android:startX="17.2212"
|
||||||
|
android:startY="50.888992"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="3.140703E-4" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M7.668,60.675c0.036,0.014 0.234,0.056 0.236,0.214l0,0l0,0v1.9l42.1,-11.2l-0.9,-2.8l-42.8,11.4C6.304,60.189 7.632,60.661 7.668,60.675z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.0039"
|
||||||
|
android:endY="55.789093"
|
||||||
|
android:startX="6.304"
|
||||||
|
android:startY="55.789093"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0047" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M33.904,62.147v1.942l16.7,-11.95l-1.8,-2.3L32.611,61.406L33.904,62.147z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.5851"
|
||||||
|
android:endY="56.964092"
|
||||||
|
android:startX="32.571"
|
||||||
|
android:startY="56.964092"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.003" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M35.804,35.789v1.2c0,0.1 -0.1,0.2 -0.1,0.2l-1.8,0.8l14.5,13.4l2,-2.1L35.804,35.789z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.3668"
|
||||||
|
android:endY="43.589092"
|
||||||
|
android:startX="33.8669"
|
||||||
|
android:startY="43.589092"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0048" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M55.804,33.089C55.804,33.089 55.704,33.089 55.804,33.089c-0.1,0 -0.1,0 -0.2,0l-1.9,-0.8l0,0l-5.4,17.5l2.8,0.9l5.5,-17.9L55.804,33.089z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.2319"
|
||||||
|
android:endY="41.489094"
|
||||||
|
android:startX="56.5588"
|
||||||
|
android:startY="41.489094"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M64.804,45.489l-13.8,3.2l0.7,2.8l13.8,-3.2L64.804,45.489z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.9512"
|
||||||
|
android:endY="48.489094"
|
||||||
|
android:startX="65.4322"
|
||||||
|
android:startY="48.489094"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0032" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M74.107,63.536L74.107,63.536L74.107,63.536c0,-0.098 0,-0.098 0.098,-0.195l0,0l0,0l0,0l1.172,-0.391L50.571,49.278l-1.367,2.441l24.903,13.77C74.107,65.489 74.107,63.536 74.107,63.536z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="49.2177"
|
||||||
|
android:endY="57.3833"
|
||||||
|
android:startX="75.4526"
|
||||||
|
android:startY="57.3833"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="5.496231E-4" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M81.904,79.089L81.904,79.089L81.904,79.089L81.904,79.089l2,-0.6c0,0 0,0 0.1,0l-33.7,-29.4l-1.9,2.2l33.3,29v-1C81.704,79.289 81.694,79.141 81.904,79.089z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.4039"
|
||||||
|
android:endY="64.689095"
|
||||||
|
android:startX="84.0039"
|
||||||
|
android:startY="64.689095"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0012" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M54.404,79.689l2,-0.6h0.1l0.7,0.2l-6.2,-29.7l-2.8,0.6L54.404,79.689L54.404,79.689z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.1377"
|
||||||
|
android:endY="64.63899"
|
||||||
|
android:startX="57.3221"
|
||||||
|
android:startY="64.63899"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0025" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M64.804,46.689l-15.6,2.1l0.4,2.9l30.2,-4.1l-0.4,-0.1c-0.1,0 -0.1,-0.1 -0.1,-0.2v-2.5l0,0l0,0l0,0L64.804,46.689">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="49.1732"
|
||||||
|
android:endY="48.239094"
|
||||||
|
android:startX="79.7731"
|
||||||
|
android:startY="48.239094"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.003" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
</group>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M51.639,0.029l-10.172,9.922l38.598,0.091"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M65.366,2.397L67.311,16.642"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M77.224,8.046L71.304,14.042"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M79.609,16.642L69.609,17.642"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M83.78,13.139L82.883,14.965"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M85.325,14.615c0.096,0.097 -3.374,29.468 -3.374,29.468"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M89.811,35.231L68.98,45.442"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M81.157,19.065L67.957,44.865"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M89.66,32.342l-48.193,-22.391l23.922,7.289"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M69.592,19.841L93.523,25.345"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M91.096,21.502L91.699,31.585"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M95.08,28.318L93.554,32.271"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M92.657,35.991L91.055,78.558"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M78.616,65.137L96.149,69.308"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M99.904,46.935L78.571,63.748"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M99.296,41.575c-0.585,0.17 -15.743,4.529 -15.743,4.529l16.414,5.629"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M99.766,54.87l-15.164,16.679l5.749,7.991"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M77.456,66.713L83.427,78.637"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M84.31,82.536L83.75,86.889"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M85.28,82.142L86.327,84.354"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M81.12,48.139l-4.73,14.382l-8.132,-14.106"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M79.18,45.887L68.951,46.291"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M79.305,47.596L17.837,88.283"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.335,79.846L33.835,64.846"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M65.137,48.23L16.967,87.533"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M75.145,66.556c-0.008,0.074 -16.683,13.266 -16.683,13.266"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M74.354,66.171L62.454,98.371"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M67.749,96.77L22.551,91.808"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.293,81.937L19.29,89.467"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.846,82.756l-18.767,15.187l48.523,-26.394"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M25.193,93.341L55.115,99.637"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M31.046,65.521L15.515,86.205"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.466,32.642L33.573,61.932"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M34.116,62.841L64.78,47.542"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M64.799,46.436L17.528,51.124"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M17.481,52.92L29.665,61.822"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M7.972,61.193L64.229,47.287"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M29.602,63.342L8.042,62.247"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M32.453,37.508L14.288,84.989"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M28.519,23.938L11.678,82.116"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M6.456,64.297L5.153,72.159"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M3.605,62.036L1.439,61.984"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M0.08,52.807L13.108,51.842"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M9.157,30.693L6.857,59.693"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M14.243,53.353L6.765,60.325"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M27.926,23.641L16.156,49.667"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M16.351,27.987L15.502,49.442"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M31.704,37.136L17.432,50.364"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M1.452,37.962L13.741,49.851"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M8.149,30.316L0.472,43.105"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M0.306,44.454L13.082,50.537"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M14.188,15.113L10.004,26.542"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M11.786,27.339L14.886,26.239"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M16.953,12.477L16.651,24.087"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M19.154,24.807L27.254,21.972"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M20.361,9.72L28.536,20.331"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.069,29.329L27.064,5.547"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M31.287,22.039L53.587,29.739"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M53.593,30.937L35.793,34.637"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M64.821,45.539L35.934,36.076"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M81.802,15.419l-1.317,0.456l1.327,0.511l1.327,-0.511L81.802,15.419zM80.162,18.059l1.476,0.588v-1.92l-1.476,-0.588V18.059zM82.004,16.705v1.942l1.441,-0.584v-1.924L82.004,16.705z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M67.443,17.033l-1.317,0.456L67.453,18l1.327,-0.511L67.443,17.033zM65.804,19.673l1.476,0.588v-1.92l-1.476,-0.588V19.673zM67.646,18.319v1.942l1.441,-0.584v-1.924L67.646,18.319z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M55.737,29.211l-1.317,0.456l1.327,0.511l1.327,-0.511L55.737,29.211zM54.098,31.851l1.476,0.588v-1.92l-1.476,-0.588V31.851zM55.94,30.497v1.942l1.441,-0.584v-1.924L55.94,30.497z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M29.251,20.523l-1.317,0.456l1.327,0.511l1.327,-0.511L29.251,20.523zM27.611,23.164l1.476,0.588v-1.92l-1.476,-0.588V23.164zM29.453,21.81v1.942l1.441,-0.584v-1.924L29.453,21.81z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M15.227,49.775l-1.317,0.456l1.327,0.511l1.327,-0.511L15.227,49.775zM13.587,52.415l1.476,0.588v-1.92l-1.476,-0.588V52.415zM15.429,51.062v1.942l1.441,-0.584v-1.924L15.429,51.062z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M9.601,26.95l-1.317,0.456l1.327,0.511l1.327,-0.511L9.601,26.95zM7.962,29.59l1.476,0.588v-1.92L7.962,27.67V29.59zM9.804,28.236v1.942l1.441,-0.584V27.67L9.804,28.236z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M56.429,79.561l-1.317,0.456l1.327,0.511l1.327,-0.511L56.429,79.561zM54.79,82.201l1.476,0.588v-1.92l-1.476,-0.588V82.201zM56.632,80.847v1.942l1.441,-0.584v-1.924L56.632,80.847z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M33.602,34.175l-1.317,0.456l1.327,0.511l1.327,-0.511L33.602,34.175zM31.963,36.815l1.476,0.588v-1.92l-1.476,-0.588V36.815zM33.804,35.462v1.942l1.441,-0.584v-1.924L33.804,35.462z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M31.796,61.722l-1.317,0.456l1.327,0.511l1.327,-0.511L31.796,61.722zM30.156,64.362l1.476,0.588v-1.92l-1.476,-0.588V64.362zM31.998,63.009v1.942l1.441,-0.584v-1.924L31.998,63.009z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M83.96,79.141l-1.317,0.456l1.327,0.511l1.327,-0.511L83.96,79.141zM82.321,81.781l1.476,0.588v-1.92l-1.476,-0.588V81.781zM84.162,80.428v1.942l1.441,-0.584v-1.924L84.162,80.428z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M76.393,63.075l-1.317,0.456l1.327,0.511l1.327,-0.511L76.393,63.075zM74.754,65.715l1.476,0.588v-1.92l-1.476,-0.588V65.715zM76.596,64.362v1.942l1.441,-0.584v-1.924L76.596,64.362z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M81.202,44.475l-1.317,0.456l1.327,0.511l1.327,-0.511L81.202,44.475zM79.563,47.115l1.476,0.588v-1.92l-1.476,-0.588V47.115zM81.404,45.762v1.942l1.441,-0.584v-1.924L81.404,45.762z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M92.296,32.228l-1.317,0.456l1.327,0.511l1.327,-0.511L92.296,32.228zM90.656,34.868l1.476,0.588v-1.92l-1.476,-0.588V34.868zM92.498,33.515v1.942l1.441,-0.584v-1.924L92.498,33.515z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M5.806,60.518l-1.317,0.456l1.327,0.511l1.327,-0.511L5.806,60.518zM4.167,63.158l1.476,0.588v-1.92l-1.476,-0.588V63.158zM6.009,61.804v1.942l1.441,-0.584v-1.924L6.009,61.804z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M24.691,30.255c-0.615,0.788 -0.538,1.99 0.329,2.667c0.867,0.677 1.99,0.538 2.667,-0.329c6.397,-8.2 16.796,-12.263 27.125,-10.546c0.658,0.133 1.342,-0.095 1.773,-0.646c0.185,-0.237 0.29,-0.535 0.396,-0.833c0.088,-0.438 0.019,-1 -0.314,-1.386s-0.727,-0.694 -1.165,-0.782C43.638,16.373 31.949,20.952 24.691,30.255z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M71.1,47.4L41.3,29.2c-1,-0.5 -2.2,-0.5 -3.2,0.1s-1.6,1.6 -1.6,2.8v36.2c0,1.1 0.6,2.2 1.6,2.8c0.5,0.3 1.1,0.5 1.6,0.5s1.1,-0.1 1.6,-0.4L71.1,53c1,-0.6 1.6,-1.6 1.6,-2.8C72.7,49.1 72.1,48 71.1,47.4zM68.5,50.2L40.3,67.4V33L68.5,50.2z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M79.6,20.4C71.7,12.6 61.2,8.2 50,8.2s-21.7,4.3 -29.6,12.2C12.6,28.3 8.2,38.8 8.2,50s4.3,21.7 12.2,29.6S38.8,91.8 50,91.8s21.7,-4.3 29.6,-12.2S91.8,61.2 91.8,50S87.4,28.3 79.6,20.4zM88.1,50c0,10.2 -4,19.7 -11.2,26.9C69.7,84.1 60.2,88.1 50,88.1s-19.7,-4 -26.9,-11.2C15.9,69.7 11.9,60.2 11.9,50s4,-19.7 11.2,-26.9S39.9,11.9 50,11.9c10.2,0 19.7,4 26.9,11.2C84.1,30.3 88.1,39.8 88.1,50z" />
|
||||||
|
</group>
|
||||||
|
</vector>
|
||||||
|
|
BIN
app/src/bittube/res/drawable-hdpi/ic_notification_tubelab.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
app/src/bittube/res/drawable-mdpi/ic_notification_tubelab.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
862
app/src/bittube/res/drawable-v24/ic_launcher_foreground.xml
Normal file
@ -0,0 +1,862 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:aapt="http://schemas.android.com/aapt"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportWidth="108"
|
||||||
|
android:viewportHeight="108">
|
||||||
|
<group
|
||||||
|
android:scaleX="0.66"
|
||||||
|
android:scaleY="0.66"
|
||||||
|
android:translateX="21"
|
||||||
|
android:translateY="21">
|
||||||
|
<path android:pathData="M85.355,14.645C75.91,5.201 63.354,0 50,0C36.644,0 24.088,5.201 14.645,14.645S0,36.644 0,50c0,13.357 5.201,25.913 14.645,35.355C24.087,94.799 36.643,100 50,100c13.357,0 25.913,-5.201 35.355,-14.645C94.799,75.912 100,63.356 100,50C100,36.646 94.799,24.09 85.355,14.645z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="15.7699"
|
||||||
|
android:endY="86.8818"
|
||||||
|
android:startX="83.2562"
|
||||||
|
android:startY="14.1677"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FF28D1BC"
|
||||||
|
android:offset="0" />
|
||||||
|
<item
|
||||||
|
android:color="#FF00ABFF"
|
||||||
|
android:offset="0.6" />
|
||||||
|
<item
|
||||||
|
android:color="#FF2A5ED6"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M3.151,32.464L13.3,46.493L30.239,4.045c-5.75,2.474 -11.035,6.041 -15.595,10.6C9.504,19.786 5.623,25.851 3.151,32.464z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="24.2938"
|
||||||
|
android:endY="39.2239"
|
||||||
|
android:startX="-4.1098"
|
||||||
|
android:startY="-39.1612"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.5762" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M2.3,34.893c-1.5,4.8 -2.3,9.8 -2.3,15c0,2.8 0.2,5.5 0.7,8.2l7.8,10l36.878,-26.896L2.3,34.893z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="26.5038"
|
||||||
|
android:endY="54.332794"
|
||||||
|
android:startX="-2.655"
|
||||||
|
android:startY="33.41799"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.006" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M40.8,5.893l27.6,28.3l8.9,-26.2c-5.8,-3.8 -12.3,-6.3 -19.2,-7.4L40.8,5.893z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="62.8149"
|
||||||
|
android:endY="14.768093"
|
||||||
|
android:startX="84.794"
|
||||||
|
android:startY="0.65519285"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0013" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M42.79,46.347l25.8,0.6l-27.6,-28.3z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="45.013"
|
||||||
|
android:endY="42.08"
|
||||||
|
android:startX="59.9387"
|
||||||
|
android:startY="27.9081"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M96.88,67.451C98.928,61.941 100,56.054 100,50c0,-0.202 -0.005,-0.402 -0.007,-0.604L68.806,34.399L96.88,67.451z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="79.7008"
|
||||||
|
android:endY="33.716"
|
||||||
|
android:startX="107.2237"
|
||||||
|
android:startY="81.6425"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0029" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M27.8,15.893l17.4,11.8l3.7,-21.1z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.8608"
|
||||||
|
android:endY="17.1429"
|
||||||
|
android:startX="27.8"
|
||||||
|
android:startY="17.1429"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="8.440641E-4" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M97.976,35.848l-5.312,-1.255l3.7,24l3.329,-3.044C99.895,53.719 100,51.868 100,50C100,45.14 99.308,40.386 97.976,35.848z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="93.5393"
|
||||||
|
android:endY="46.7512"
|
||||||
|
android:startX="101.8224"
|
||||||
|
android:startY="45.4073"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0017" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M72.998,85.447l2.742,7.442c2.87,-1.729 5.579,-3.761 8.092,-6.075L72.998,85.447z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="77.1128"
|
||||||
|
android:endY="79.7658"
|
||||||
|
android:startX="81.8324"
|
||||||
|
android:startY="102.8394"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0013" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="0.9982" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M87.435,83.143c2.349,-2.646 4.393,-5.5 6.108,-8.522l-28.357,2.776L87.435,83.143z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="65.4945"
|
||||||
|
android:endY="79.3595"
|
||||||
|
android:startX="123.109"
|
||||||
|
android:startY="78.2586"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0022" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="0.9966" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M72.9,85.193l-56.3,-11.1l7.2,18.4c1.6,1 3.3,1.9 5.1,2.7L72.9,85.193z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="38.2047"
|
||||||
|
android:endY="89.4249"
|
||||||
|
android:startX="58.4365"
|
||||||
|
android:startY="59.1884"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0015" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M79.09,58.897l-21,1.5l10.3,18.9z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="61.745285"
|
||||||
|
android:endY="71.03565"
|
||||||
|
android:startX="78.23818"
|
||||||
|
android:startY="57.920563"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="0.9993" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<group>
|
||||||
|
<clip-path android:pathData="M50,50m-50,0a50,50 0,1 1,100 0a50,50 0,1 1,-100 0" />
|
||||||
|
<path android:pathData="M31.304,22.589v0.7c0,0.1 0,0.1 -0.1,0.2l-1.9,0.8c0,0 0,0 -0.1,0s0,0 -0.1,0l-0.4,-0.2l19.7,27l2.4,-1.7L31.304,22.589z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.7969"
|
||||||
|
android:endY="36.839092"
|
||||||
|
android:startX="28.7808"
|
||||||
|
android:startY="36.839092"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.006" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M65.409,20.005l-0.005,-1.116l-17,30.7l2.5,1.4l16.722,-30.026L65.409,20.005z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.3499"
|
||||||
|
android:endY="34.939095"
|
||||||
|
android:startX="67.5984"
|
||||||
|
android:startY="34.939095"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0013" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M79.625,18.344l-0.021,-1.254l-31.3,32.1l2.1,2l31.2,-32L79.625,18.344z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.3039"
|
||||||
|
android:endY="34.138992"
|
||||||
|
android:startX="81.6039"
|
||||||
|
android:startY="34.138992"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="7.851759E-5" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M90.104,35.389c-0.1,0 -0.1,-0.1 -0.1,-0.2v-2l-41.1,15.7l1,2.7l41.3,-15.8L90.104,35.389z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.8205"
|
||||||
|
android:endY="42.388992"
|
||||||
|
android:startX="91.2039"
|
||||||
|
android:startY="42.388992"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0038" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M11.804,27.989v1.8c0,0.1 -0.1,0.2 -0.1,0.2l-1.2,0.5l38.5,20.9l1.4,-2.6L11.804,27.989z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.3298"
|
||||||
|
android:endY="39.689095"
|
||||||
|
android:startX="10.4298"
|
||||||
|
android:startY="39.689095"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0025" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M17.265,50.089c0.1,0 0.1,0.2 0.1,0.2v2.5c0,0.1 -0.1,0.2 -0.1,0.2l32.439,-1.3l-0.1,-2.9L17.265,50.089z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="49.6603"
|
||||||
|
android:endY="50.888992"
|
||||||
|
android:startX="17.2212"
|
||||||
|
android:startY="50.888992"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="3.140703E-4" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M7.668,60.675c0.036,0.014 0.234,0.056 0.236,0.214l0,0l0,0v1.9l42.1,-11.2l-0.9,-2.8l-42.8,11.4C6.304,60.189 7.632,60.661 7.668,60.675z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.0039"
|
||||||
|
android:endY="55.789093"
|
||||||
|
android:startX="6.304"
|
||||||
|
android:startY="55.789093"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0047" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M33.904,62.147v1.942l16.7,-11.95l-1.8,-2.3L32.611,61.406L33.904,62.147z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.5851"
|
||||||
|
android:endY="56.964092"
|
||||||
|
android:startX="32.571"
|
||||||
|
android:startY="56.964092"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.003" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M35.804,35.789v1.2c0,0.1 -0.1,0.2 -0.1,0.2l-1.8,0.8l14.5,13.4l2,-2.1L35.804,35.789z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.3668"
|
||||||
|
android:endY="43.589092"
|
||||||
|
android:startX="33.8669"
|
||||||
|
android:startY="43.589092"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0048" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M55.804,33.089C55.804,33.089 55.704,33.089 55.804,33.089c-0.1,0 -0.1,0 -0.2,0l-1.9,-0.8l0,0l-5.4,17.5l2.8,0.9l5.5,-17.9L55.804,33.089z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.2319"
|
||||||
|
android:endY="41.489094"
|
||||||
|
android:startX="56.5588"
|
||||||
|
android:startY="41.489094"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M64.804,45.489l-13.8,3.2l0.7,2.8l13.8,-3.2L64.804,45.489z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.9512"
|
||||||
|
android:endY="48.489094"
|
||||||
|
android:startX="65.4322"
|
||||||
|
android:startY="48.489094"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0032" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M74.107,63.536L74.107,63.536L74.107,63.536c0,-0.098 0,-0.098 0.098,-0.195l0,0l0,0l0,0l1.172,-0.391L50.571,49.278l-1.367,2.441l24.903,13.77C74.107,65.489 74.107,63.536 74.107,63.536z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="49.2177"
|
||||||
|
android:endY="57.3833"
|
||||||
|
android:startX="75.4526"
|
||||||
|
android:startY="57.3833"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="5.496231E-4" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M81.904,79.089L81.904,79.089L81.904,79.089L81.904,79.089l2,-0.6c0,0 0,0 0.1,0l-33.7,-29.4l-1.9,2.2l33.3,29v-1C81.704,79.289 81.694,79.141 81.904,79.089z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.4039"
|
||||||
|
android:endY="64.689095"
|
||||||
|
android:startX="84.0039"
|
||||||
|
android:startY="64.689095"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0012" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M54.404,79.689l2,-0.6h0.1l0.7,0.2l-6.2,-29.7l-2.8,0.6L54.404,79.689L54.404,79.689z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.1377"
|
||||||
|
android:endY="64.63899"
|
||||||
|
android:startX="57.3221"
|
||||||
|
android:startY="64.63899"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0025" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M64.804,46.689l-15.6,2.1l0.4,2.9l30.2,-4.1l-0.4,-0.1c-0.1,0 -0.1,-0.1 -0.1,-0.2v-2.5l0,0l0,0l0,0L64.804,46.689">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="49.1732"
|
||||||
|
android:endY="48.239094"
|
||||||
|
android:startX="79.7731"
|
||||||
|
android:startY="48.239094"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.003" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
</group>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M51.639,0.029l-10.172,9.922l38.598,0.091"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M65.366,2.397L67.311,16.642"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M77.224,8.046L71.304,14.042"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M79.609,16.642L69.609,17.642"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M83.78,13.139L82.883,14.965"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M85.325,14.615c0.096,0.097 -3.374,29.468 -3.374,29.468"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M89.811,35.231L68.98,45.442"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M81.157,19.065L67.957,44.865"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M89.66,32.342l-48.193,-22.391l23.922,7.289"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M69.592,19.841L93.523,25.345"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M91.096,21.502L91.699,31.585"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M95.08,28.318L93.554,32.271"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M92.657,35.991L91.055,78.558"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M78.616,65.137L96.149,69.308"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M99.904,46.935L78.571,63.748"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M99.296,41.575c-0.585,0.17 -15.743,4.529 -15.743,4.529l16.414,5.629"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M99.766,54.87l-15.164,16.679l5.749,7.991"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M77.456,66.713L83.427,78.637"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M84.31,82.536L83.75,86.889"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M85.28,82.142L86.327,84.354"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M81.12,48.139l-4.73,14.382l-8.132,-14.106"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M79.18,45.887L68.951,46.291"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M79.305,47.596L17.837,88.283"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.335,79.846L33.835,64.846"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M65.137,48.23L16.967,87.533"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M75.145,66.556c-0.008,0.074 -16.683,13.266 -16.683,13.266"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M74.354,66.171L62.454,98.371"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M67.749,96.77L22.551,91.808"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.293,81.937L19.29,89.467"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.846,82.756l-18.767,15.187l48.523,-26.394"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M25.193,93.341L55.115,99.637"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M31.046,65.521L15.515,86.205"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.466,32.642L33.573,61.932"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M34.116,62.841L64.78,47.542"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M64.799,46.436L17.528,51.124"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M17.481,52.92L29.665,61.822"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M7.972,61.193L64.229,47.287"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M29.602,63.342L8.042,62.247"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M32.453,37.508L14.288,84.989"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M28.519,23.938L11.678,82.116"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M6.456,64.297L5.153,72.159"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M3.605,62.036L1.439,61.984"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M0.08,52.807L13.108,51.842"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M9.157,30.693L6.857,59.693"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M14.243,53.353L6.765,60.325"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M27.926,23.641L16.156,49.667"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M16.351,27.987L15.502,49.442"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M31.704,37.136L17.432,50.364"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M1.452,37.962L13.741,49.851"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M8.149,30.316L0.472,43.105"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M0.306,44.454L13.082,50.537"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M14.188,15.113L10.004,26.542"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M11.786,27.339L14.886,26.239"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M16.953,12.477L16.651,24.087"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M19.154,24.807L27.254,21.972"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M20.361,9.72L28.536,20.331"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.069,29.329L27.064,5.547"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M31.287,22.039L53.587,29.739"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M53.593,30.937L35.793,34.637"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M64.821,45.539L35.934,36.076"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M81.802,15.419l-1.317,0.456l1.327,0.511l1.327,-0.511L81.802,15.419zM80.162,18.059l1.476,0.588v-1.92l-1.476,-0.588V18.059zM82.004,16.705v1.942l1.441,-0.584v-1.924L82.004,16.705z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M67.443,17.033l-1.317,0.456L67.453,18l1.327,-0.511L67.443,17.033zM65.804,19.673l1.476,0.588v-1.92l-1.476,-0.588V19.673zM67.646,18.319v1.942l1.441,-0.584v-1.924L67.646,18.319z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M55.737,29.211l-1.317,0.456l1.327,0.511l1.327,-0.511L55.737,29.211zM54.098,31.851l1.476,0.588v-1.92l-1.476,-0.588V31.851zM55.94,30.497v1.942l1.441,-0.584v-1.924L55.94,30.497z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M29.251,20.523l-1.317,0.456l1.327,0.511l1.327,-0.511L29.251,20.523zM27.611,23.164l1.476,0.588v-1.92l-1.476,-0.588V23.164zM29.453,21.81v1.942l1.441,-0.584v-1.924L29.453,21.81z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M15.227,49.775l-1.317,0.456l1.327,0.511l1.327,-0.511L15.227,49.775zM13.587,52.415l1.476,0.588v-1.92l-1.476,-0.588V52.415zM15.429,51.062v1.942l1.441,-0.584v-1.924L15.429,51.062z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M9.601,26.95l-1.317,0.456l1.327,0.511l1.327,-0.511L9.601,26.95zM7.962,29.59l1.476,0.588v-1.92L7.962,27.67V29.59zM9.804,28.236v1.942l1.441,-0.584V27.67L9.804,28.236z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M56.429,79.561l-1.317,0.456l1.327,0.511l1.327,-0.511L56.429,79.561zM54.79,82.201l1.476,0.588v-1.92l-1.476,-0.588V82.201zM56.632,80.847v1.942l1.441,-0.584v-1.924L56.632,80.847z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M33.602,34.175l-1.317,0.456l1.327,0.511l1.327,-0.511L33.602,34.175zM31.963,36.815l1.476,0.588v-1.92l-1.476,-0.588V36.815zM33.804,35.462v1.942l1.441,-0.584v-1.924L33.804,35.462z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M31.796,61.722l-1.317,0.456l1.327,0.511l1.327,-0.511L31.796,61.722zM30.156,64.362l1.476,0.588v-1.92l-1.476,-0.588V64.362zM31.998,63.009v1.942l1.441,-0.584v-1.924L31.998,63.009z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M83.96,79.141l-1.317,0.456l1.327,0.511l1.327,-0.511L83.96,79.141zM82.321,81.781l1.476,0.588v-1.92l-1.476,-0.588V81.781zM84.162,80.428v1.942l1.441,-0.584v-1.924L84.162,80.428z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M76.393,63.075l-1.317,0.456l1.327,0.511l1.327,-0.511L76.393,63.075zM74.754,65.715l1.476,0.588v-1.92l-1.476,-0.588V65.715zM76.596,64.362v1.942l1.441,-0.584v-1.924L76.596,64.362z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M81.202,44.475l-1.317,0.456l1.327,0.511l1.327,-0.511L81.202,44.475zM79.563,47.115l1.476,0.588v-1.92l-1.476,-0.588V47.115zM81.404,45.762v1.942l1.441,-0.584v-1.924L81.404,45.762z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M92.296,32.228l-1.317,0.456l1.327,0.511l1.327,-0.511L92.296,32.228zM90.656,34.868l1.476,0.588v-1.92l-1.476,-0.588V34.868zM92.498,33.515v1.942l1.441,-0.584v-1.924L92.498,33.515z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M5.806,60.518l-1.317,0.456l1.327,0.511l1.327,-0.511L5.806,60.518zM4.167,63.158l1.476,0.588v-1.92l-1.476,-0.588V63.158zM6.009,61.804v1.942l1.441,-0.584v-1.924L6.009,61.804z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M24.691,30.255c-0.615,0.788 -0.538,1.99 0.329,2.667c0.867,0.677 1.99,0.538 2.667,-0.329c6.397,-8.2 16.796,-12.263 27.125,-10.546c0.658,0.133 1.342,-0.095 1.773,-0.646c0.185,-0.237 0.29,-0.535 0.396,-0.833c0.088,-0.438 0.019,-1 -0.314,-1.386s-0.727,-0.694 -1.165,-0.782C43.638,16.373 31.949,20.952 24.691,30.255z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M71.1,47.4L41.3,29.2c-1,-0.5 -2.2,-0.5 -3.2,0.1s-1.6,1.6 -1.6,2.8v36.2c0,1.1 0.6,2.2 1.6,2.8c0.5,0.3 1.1,0.5 1.6,0.5s1.1,-0.1 1.6,-0.4L71.1,53c1,-0.6 1.6,-1.6 1.6,-2.8C72.7,49.1 72.1,48 71.1,47.4zM68.5,50.2L40.3,67.4V33L68.5,50.2z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M79.6,20.4C71.7,12.6 61.2,8.2 50,8.2s-21.7,4.3 -29.6,12.2C12.6,28.3 8.2,38.8 8.2,50s4.3,21.7 12.2,29.6S38.8,91.8 50,91.8s21.7,-4.3 29.6,-12.2S91.8,61.2 91.8,50S87.4,28.3 79.6,20.4zM88.1,50c0,10.2 -4,19.7 -11.2,26.9C69.7,84.1 60.2,88.1 50,88.1s-19.7,-4 -26.9,-11.2C15.9,69.7 11.9,60.2 11.9,50s4,-19.7 11.2,-26.9S39.9,11.9 50,11.9c10.2,0 19.7,4 26.9,11.2C84.1,30.3 88.1,39.8 88.1,50z" />
|
||||||
|
</group>
|
||||||
|
</vector>
|
BIN
app/src/bittube/res/drawable-xhdpi/ic_notification_tubelab.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
app/src/bittube/res/drawable-xxhdpi/ic_notification_tubelab.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
app/src/bittube/res/drawable-xxxhdpi/ic_notification_tubelab.png
Normal file
After Width: | Height: | Size: 9.2 KiB |
856
app/src/bittube/res/drawable/bittube.xml
Normal file
@ -0,0 +1,856 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:aapt="http://schemas.android.com/aapt"
|
||||||
|
android:width="100dp"
|
||||||
|
android:height="100dp"
|
||||||
|
android:viewportWidth="100"
|
||||||
|
android:viewportHeight="100">
|
||||||
|
<path android:pathData="M85.355,14.645C75.91,5.201 63.354,0 50,0C36.644,0 24.088,5.201 14.645,14.645S0,36.644 0,50c0,13.357 5.201,25.913 14.645,35.355C24.087,94.799 36.643,100 50,100c13.357,0 25.913,-5.201 35.355,-14.645C94.799,75.912 100,63.356 100,50C100,36.646 94.799,24.09 85.355,14.645z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="15.7699"
|
||||||
|
android:endY="86.8818"
|
||||||
|
android:startX="83.2562"
|
||||||
|
android:startY="14.1677"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FF28D1BC"
|
||||||
|
android:offset="0" />
|
||||||
|
<item
|
||||||
|
android:color="#FF00ABFF"
|
||||||
|
android:offset="0.6" />
|
||||||
|
<item
|
||||||
|
android:color="#FF2A5ED6"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M3.151,32.464L13.3,46.493L30.239,4.045c-5.75,2.474 -11.035,6.041 -15.595,10.6C9.504,19.786 5.623,25.851 3.151,32.464z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="24.2938"
|
||||||
|
android:endY="39.2239"
|
||||||
|
android:startX="-4.1098"
|
||||||
|
android:startY="-39.1612"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.5762" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M2.3,34.893c-1.5,4.8 -2.3,9.8 -2.3,15c0,2.8 0.2,5.5 0.7,8.2l7.8,10l36.878,-26.896L2.3,34.893z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="26.5038"
|
||||||
|
android:endY="54.332794"
|
||||||
|
android:startX="-2.655"
|
||||||
|
android:startY="33.41799"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.006" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M40.8,5.893l27.6,28.3l8.9,-26.2c-5.8,-3.8 -12.3,-6.3 -19.2,-7.4L40.8,5.893z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="62.8149"
|
||||||
|
android:endY="14.768093"
|
||||||
|
android:startX="84.794"
|
||||||
|
android:startY="0.65519285"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0013" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M42.79,46.347l25.8,0.6l-27.6,-28.3z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="45.013"
|
||||||
|
android:endY="42.08"
|
||||||
|
android:startX="59.9387"
|
||||||
|
android:startY="27.9081"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M96.88,67.451C98.928,61.941 100,56.054 100,50c0,-0.202 -0.005,-0.402 -0.007,-0.604L68.806,34.399L96.88,67.451z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="79.7008"
|
||||||
|
android:endY="33.716"
|
||||||
|
android:startX="107.2237"
|
||||||
|
android:startY="81.6425"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0029" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M27.8,15.893l17.4,11.8l3.7,-21.1z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.8608"
|
||||||
|
android:endY="17.1429"
|
||||||
|
android:startX="27.8"
|
||||||
|
android:startY="17.1429"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="8.440641E-4" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M97.976,35.848l-5.312,-1.255l3.7,24l3.329,-3.044C99.895,53.719 100,51.868 100,50C100,45.14 99.308,40.386 97.976,35.848z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="93.5393"
|
||||||
|
android:endY="46.7512"
|
||||||
|
android:startX="101.8224"
|
||||||
|
android:startY="45.4073"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0017" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M72.998,85.447l2.742,7.442c2.87,-1.729 5.579,-3.761 8.092,-6.075L72.998,85.447z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="77.1128"
|
||||||
|
android:endY="79.7658"
|
||||||
|
android:startX="81.8324"
|
||||||
|
android:startY="102.8394"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0013" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="0.9982" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M87.435,83.143c2.349,-2.646 4.393,-5.5 6.108,-8.522l-28.357,2.776L87.435,83.143z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="65.4945"
|
||||||
|
android:endY="79.3595"
|
||||||
|
android:startX="123.109"
|
||||||
|
android:startY="78.2586"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0022" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="0.9966" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M72.9,85.193l-56.3,-11.1l7.2,18.4c1.6,1 3.3,1.9 5.1,2.7L72.9,85.193z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="38.2047"
|
||||||
|
android:endY="89.4249"
|
||||||
|
android:startX="58.4365"
|
||||||
|
android:startY="59.1884"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0015" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.71"
|
||||||
|
android:pathData="M79.09,58.897l-21,1.5l10.3,18.9z"
|
||||||
|
android:strokeAlpha="0.71">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="61.745285"
|
||||||
|
android:endY="71.03565"
|
||||||
|
android:startX="78.23818"
|
||||||
|
android:startY="57.920563"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="0.9993" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<group>
|
||||||
|
<clip-path android:pathData="M50,50m-50,0a50,50 0,1 1,100 0a50,50 0,1 1,-100 0" />
|
||||||
|
<path android:pathData="M31.304,22.589v0.7c0,0.1 0,0.1 -0.1,0.2l-1.9,0.8c0,0 0,0 -0.1,0s0,0 -0.1,0l-0.4,-0.2l19.7,27l2.4,-1.7L31.304,22.589z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.7969"
|
||||||
|
android:endY="36.839092"
|
||||||
|
android:startX="28.7808"
|
||||||
|
android:startY="36.839092"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.006" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M65.409,20.005l-0.005,-1.116l-17,30.7l2.5,1.4l16.722,-30.026L65.409,20.005z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.3499"
|
||||||
|
android:endY="34.939095"
|
||||||
|
android:startX="67.5984"
|
||||||
|
android:startY="34.939095"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0013" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M79.625,18.344l-0.021,-1.254l-31.3,32.1l2.1,2l31.2,-32L79.625,18.344z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.3039"
|
||||||
|
android:endY="34.138992"
|
||||||
|
android:startX="81.6039"
|
||||||
|
android:startY="34.138992"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="7.851759E-5" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M90.104,35.389c-0.1,0 -0.1,-0.1 -0.1,-0.2v-2l-41.1,15.7l1,2.7l41.3,-15.8L90.104,35.389z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.8205"
|
||||||
|
android:endY="42.388992"
|
||||||
|
android:startX="91.2039"
|
||||||
|
android:startY="42.388992"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0038" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M11.804,27.989v1.8c0,0.1 -0.1,0.2 -0.1,0.2l-1.2,0.5l38.5,20.9l1.4,-2.6L11.804,27.989z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.3298"
|
||||||
|
android:endY="39.689095"
|
||||||
|
android:startX="10.4298"
|
||||||
|
android:startY="39.689095"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0025" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M17.265,50.089c0.1,0 0.1,0.2 0.1,0.2v2.5c0,0.1 -0.1,0.2 -0.1,0.2l32.439,-1.3l-0.1,-2.9L17.265,50.089z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="49.6603"
|
||||||
|
android:endY="50.888992"
|
||||||
|
android:startX="17.2212"
|
||||||
|
android:startY="50.888992"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="3.140703E-4" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M7.668,60.675c0.036,0.014 0.234,0.056 0.236,0.214l0,0l0,0v1.9l42.1,-11.2l-0.9,-2.8l-42.8,11.4C6.304,60.189 7.632,60.661 7.668,60.675z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.0039"
|
||||||
|
android:endY="55.789093"
|
||||||
|
android:startX="6.304"
|
||||||
|
android:startY="55.789093"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0047" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M33.904,62.147v1.942l16.7,-11.95l-1.8,-2.3L32.611,61.406L33.904,62.147z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.5851"
|
||||||
|
android:endY="56.964092"
|
||||||
|
android:startX="32.571"
|
||||||
|
android:startY="56.964092"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.003" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M35.804,35.789v1.2c0,0.1 -0.1,0.2 -0.1,0.2l-1.8,0.8l14.5,13.4l2,-2.1L35.804,35.789z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.3668"
|
||||||
|
android:endY="43.589092"
|
||||||
|
android:startX="33.8669"
|
||||||
|
android:startY="43.589092"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0048" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M55.804,33.089C55.804,33.089 55.704,33.089 55.804,33.089c-0.1,0 -0.1,0 -0.2,0l-1.9,-0.8l0,0l-5.4,17.5l2.8,0.9l5.5,-17.9L55.804,33.089z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.2319"
|
||||||
|
android:endY="41.489094"
|
||||||
|
android:startX="56.5588"
|
||||||
|
android:startY="41.489094"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M64.804,45.489l-13.8,3.2l0.7,2.8l13.8,-3.2L64.804,45.489z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="50.9512"
|
||||||
|
android:endY="48.489094"
|
||||||
|
android:startX="65.4322"
|
||||||
|
android:startY="48.489094"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0032" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M74.107,63.536L74.107,63.536L74.107,63.536c0,-0.098 0,-0.098 0.098,-0.195l0,0l0,0l0,0l1.172,-0.391L50.571,49.278l-1.367,2.441l24.903,13.77C74.107,65.489 74.107,63.536 74.107,63.536z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="49.2177"
|
||||||
|
android:endY="57.3833"
|
||||||
|
android:startX="75.4526"
|
||||||
|
android:startY="57.3833"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="5.496231E-4" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M81.904,79.089L81.904,79.089L81.904,79.089L81.904,79.089l2,-0.6c0,0 0,0 0.1,0l-33.7,-29.4l-1.9,2.2l33.3,29v-1C81.704,79.289 81.694,79.141 81.904,79.089z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.4039"
|
||||||
|
android:endY="64.689095"
|
||||||
|
android:startX="84.0039"
|
||||||
|
android:startY="64.689095"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0012" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M54.404,79.689l2,-0.6h0.1l0.7,0.2l-6.2,-29.7l-2.8,0.6L54.404,79.689L54.404,79.689z">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="48.1377"
|
||||||
|
android:endY="64.63899"
|
||||||
|
android:startX="57.3221"
|
||||||
|
android:startY="64.63899"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.0025" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path android:pathData="M64.804,46.689l-15.6,2.1l0.4,2.9l30.2,-4.1l-0.4,-0.1c-0.1,0 -0.1,-0.1 -0.1,-0.2v-2.5l0,0l0,0l0,0L64.804,46.689">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="49.1732"
|
||||||
|
android:endY="48.239094"
|
||||||
|
android:startX="79.7731"
|
||||||
|
android:startY="48.239094"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#FFFFFFFF"
|
||||||
|
android:offset="0.003" />
|
||||||
|
<item
|
||||||
|
android:color="#00FFFFFF"
|
||||||
|
android:offset="1" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
</group>
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M51.639,0.029l-10.172,9.922l38.598,0.091"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M65.366,2.397L67.311,16.642"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M77.224,8.046L71.304,14.042"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M79.609,16.642L69.609,17.642"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M83.78,13.139L82.883,14.965"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M85.325,14.615c0.096,0.097 -3.374,29.468 -3.374,29.468"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M89.811,35.231L68.98,45.442"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M81.157,19.065L67.957,44.865"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M89.66,32.342l-48.193,-22.391l23.922,7.289"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M69.592,19.841L93.523,25.345"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M91.096,21.502L91.699,31.585"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M95.08,28.318L93.554,32.271"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M92.657,35.991L91.055,78.558"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M78.616,65.137L96.149,69.308"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M99.904,46.935L78.571,63.748"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M99.296,41.575c-0.585,0.17 -15.743,4.529 -15.743,4.529l16.414,5.629"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M99.766,54.87l-15.164,16.679l5.749,7.991"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M77.456,66.713L83.427,78.637"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M84.31,82.536L83.75,86.889"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M85.28,82.142L86.327,84.354"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M81.12,48.139l-4.73,14.382l-8.132,-14.106"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M79.18,45.887L68.951,46.291"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M79.305,47.596L17.837,88.283"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.335,79.846L33.835,64.846"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M65.137,48.23L16.967,87.533"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M75.145,66.556c-0.008,0.074 -16.683,13.266 -16.683,13.266"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M74.354,66.171L62.454,98.371"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M67.749,96.77L22.551,91.808"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.293,81.937L19.29,89.467"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.846,82.756l-18.767,15.187l48.523,-26.394"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M25.193,93.341L55.115,99.637"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M31.046,65.521L15.515,86.205"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.466,32.642L33.573,61.932"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M34.116,62.841L64.78,47.542"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M64.799,46.436L17.528,51.124"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M17.481,52.92L29.665,61.822"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M7.972,61.193L64.229,47.287"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M29.602,63.342L8.042,62.247"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M32.453,37.508L14.288,84.989"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M28.519,23.938L11.678,82.116"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M6.456,64.297L5.153,72.159"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M3.605,62.036L1.439,61.984"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M0.08,52.807L13.108,51.842"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M9.157,30.693L6.857,59.693"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M14.243,53.353L6.765,60.325"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M27.926,23.641L16.156,49.667"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M16.351,27.987L15.502,49.442"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M31.704,37.136L17.432,50.364"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M1.452,37.962L13.741,49.851"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M8.149,30.316L0.472,43.105"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M0.306,44.454L13.082,50.537"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M14.188,15.113L10.004,26.542"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M11.786,27.339L14.886,26.239"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M16.953,12.477L16.651,24.087"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M19.154,24.807L27.254,21.972"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M20.361,9.72L28.536,20.331"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M54.069,29.329L27.064,5.547"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M31.287,22.039L53.587,29.739"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M53.593,30.937L35.793,34.637"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillAlpha="0.6"
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M64.821,45.539L35.934,36.076"
|
||||||
|
android:strokeAlpha="0.6" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M81.802,15.419l-1.317,0.456l1.327,0.511l1.327,-0.511L81.802,15.419zM80.162,18.059l1.476,0.588v-1.92l-1.476,-0.588V18.059zM82.004,16.705v1.942l1.441,-0.584v-1.924L82.004,16.705z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M67.443,17.033l-1.317,0.456L67.453,18l1.327,-0.511L67.443,17.033zM65.804,19.673l1.476,0.588v-1.92l-1.476,-0.588V19.673zM67.646,18.319v1.942l1.441,-0.584v-1.924L67.646,18.319z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M55.737,29.211l-1.317,0.456l1.327,0.511l1.327,-0.511L55.737,29.211zM54.098,31.851l1.476,0.588v-1.92l-1.476,-0.588V31.851zM55.94,30.497v1.942l1.441,-0.584v-1.924L55.94,30.497z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M29.251,20.523l-1.317,0.456l1.327,0.511l1.327,-0.511L29.251,20.523zM27.611,23.164l1.476,0.588v-1.92l-1.476,-0.588V23.164zM29.453,21.81v1.942l1.441,-0.584v-1.924L29.453,21.81z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M15.227,49.775l-1.317,0.456l1.327,0.511l1.327,-0.511L15.227,49.775zM13.587,52.415l1.476,0.588v-1.92l-1.476,-0.588V52.415zM15.429,51.062v1.942l1.441,-0.584v-1.924L15.429,51.062z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M9.601,26.95l-1.317,0.456l1.327,0.511l1.327,-0.511L9.601,26.95zM7.962,29.59l1.476,0.588v-1.92L7.962,27.67V29.59zM9.804,28.236v1.942l1.441,-0.584V27.67L9.804,28.236z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M56.429,79.561l-1.317,0.456l1.327,0.511l1.327,-0.511L56.429,79.561zM54.79,82.201l1.476,0.588v-1.92l-1.476,-0.588V82.201zM56.632,80.847v1.942l1.441,-0.584v-1.924L56.632,80.847z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M33.602,34.175l-1.317,0.456l1.327,0.511l1.327,-0.511L33.602,34.175zM31.963,36.815l1.476,0.588v-1.92l-1.476,-0.588V36.815zM33.804,35.462v1.942l1.441,-0.584v-1.924L33.804,35.462z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M31.796,61.722l-1.317,0.456l1.327,0.511l1.327,-0.511L31.796,61.722zM30.156,64.362l1.476,0.588v-1.92l-1.476,-0.588V64.362zM31.998,63.009v1.942l1.441,-0.584v-1.924L31.998,63.009z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M83.96,79.141l-1.317,0.456l1.327,0.511l1.327,-0.511L83.96,79.141zM82.321,81.781l1.476,0.588v-1.92l-1.476,-0.588V81.781zM84.162,80.428v1.942l1.441,-0.584v-1.924L84.162,80.428z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M76.393,63.075l-1.317,0.456l1.327,0.511l1.327,-0.511L76.393,63.075zM74.754,65.715l1.476,0.588v-1.92l-1.476,-0.588V65.715zM76.596,64.362v1.942l1.441,-0.584v-1.924L76.596,64.362z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M81.202,44.475l-1.317,0.456l1.327,0.511l1.327,-0.511L81.202,44.475zM79.563,47.115l1.476,0.588v-1.92l-1.476,-0.588V47.115zM81.404,45.762v1.942l1.441,-0.584v-1.924L81.404,45.762z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M92.296,32.228l-1.317,0.456l1.327,0.511l1.327,-0.511L92.296,32.228zM90.656,34.868l1.476,0.588v-1.92l-1.476,-0.588V34.868zM92.498,33.515v1.942l1.441,-0.584v-1.924L92.498,33.515z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M5.806,60.518l-1.317,0.456l1.327,0.511l1.327,-0.511L5.806,60.518zM4.167,63.158l1.476,0.588v-1.92l-1.476,-0.588V63.158zM6.009,61.804v1.942l1.441,-0.584v-1.924L6.009,61.804z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M24.691,30.255c-0.615,0.788 -0.538,1.99 0.329,2.667c0.867,0.677 1.99,0.538 2.667,-0.329c6.397,-8.2 16.796,-12.263 27.125,-10.546c0.658,0.133 1.342,-0.095 1.773,-0.646c0.185,-0.237 0.29,-0.535 0.396,-0.833c0.088,-0.438 0.019,-1 -0.314,-1.386s-0.727,-0.694 -1.165,-0.782C43.638,16.373 31.949,20.952 24.691,30.255z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M71.1,47.4L41.3,29.2c-1,-0.5 -2.2,-0.5 -3.2,0.1s-1.6,1.6 -1.6,2.8v36.2c0,1.1 0.6,2.2 1.6,2.8c0.5,0.3 1.1,0.5 1.6,0.5s1.1,-0.1 1.6,-0.4L71.1,53c1,-0.6 1.6,-1.6 1.6,-2.8C72.7,49.1 72.1,48 71.1,47.4zM68.5,50.2L40.3,67.4V33L68.5,50.2z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M79.6,20.4C71.7,12.6 61.2,8.2 50,8.2s-21.7,4.3 -29.6,12.2C12.6,28.3 8.2,38.8 8.2,50s4.3,21.7 12.2,29.6S38.8,91.8 50,91.8s21.7,-4.3 29.6,-12.2S91.8,61.2 91.8,50S87.4,28.3 79.6,20.4zM88.1,50c0,10.2 -4,19.7 -11.2,26.9C69.7,84.1 60.2,88.1 50,88.1s-19.7,-4 -26.9,-11.2C15.9,69.7 11.9,60.2 11.9,50s4,-19.7 11.2,-26.9S39.9,11.9 50,11.9c10.2,0 19.7,4 26.9,11.2C84.1,30.3 88.1,39.8 88.1,50z" />
|
||||||
|
</vector>
|
5
app/src/bittube/res/mipmap-anydpi-v26/ic_launcher.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background" />
|
||||||
|
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||||
|
</adaptive-icon>
|
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background" />
|
||||||
|
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||||
|
</adaptive-icon>
|
BIN
app/src/bittube/res/mipmap-hdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
app/src/bittube/res/mipmap-hdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
app/src/bittube/res/mipmap-mdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
app/src/bittube/res/mipmap-mdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
app/src/bittube/res/mipmap-xhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
app/src/bittube/res/mipmap-xhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
app/src/bittube/res/mipmap-xxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
app/src/bittube/res/mipmap-xxhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
app/src/bittube/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
app/src/bittube/res/mipmap-xxxhdpi/ic_launcher_round.png
Normal file
After Width: | Height: | Size: 45 KiB |
16
app/src/bittube/res/values/colors.xml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<color name="colorPrimary">#343434</color>
|
||||||
|
<color name="colorPrimaryDark">#343434</color>
|
||||||
|
<color name="colorAccent">#00abff</color>
|
||||||
|
|
||||||
|
<color name="tag_color">#bbF2690D</color>
|
||||||
|
<color name="tag_color_text">#FAFAFA</color>
|
||||||
|
<color name="positive_thumbs">#2b90d9</color>
|
||||||
|
<color name="favorite">#ca8f04</color>
|
||||||
|
<color name="bookmark">#795548</color>
|
||||||
|
<color name="negative_thumbs">#F44336</color>
|
||||||
|
<color name="backgroundDark">#DD000000</color>
|
||||||
|
<color name="red_1">#F44336</color>
|
||||||
|
<color name="gray_light">#80808080</color>
|
||||||
|
</resources>
|
4
app/src/bittube/res/values/ic_launcher_background.xml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<color name="ic_launcher_background">#FFFFFF</color>
|
||||||
|
</resources>
|
7
app/src/bittube/res/xml/file_paths.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<external-path
|
||||||
|
name="my_images"
|
||||||
|
path="/Bittube/" />
|
||||||
|
|
||||||
|
</paths>
|
37
app/src/fdroid_acad/AndroidManifest.xml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
package="app.fedilab.fedilabtube">
|
||||||
|
|
||||||
|
|
||||||
|
<application
|
||||||
|
android:name=".FedilabTube"
|
||||||
|
android:allowBackup="false"
|
||||||
|
android:icon="@mipmap/ic_launcher"
|
||||||
|
android:label="@string/app_name"
|
||||||
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
|
android:supportsRtl="true"
|
||||||
|
android:theme="@style/AppTheme"
|
||||||
|
tools:replace="android:allowBackup">
|
||||||
|
|
||||||
|
<activity
|
||||||
|
android:name=".MainActivity"
|
||||||
|
tools:node="merge">
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
|
<data android:scheme="content" />
|
||||||
|
<data android:scheme="file" />
|
||||||
|
<data android:mimeType="*/*" />
|
||||||
|
<data android:pathPattern=".*\\.tubelab" />
|
||||||
|
<data android:pathPattern=".*\\..*\\.tubelab" />
|
||||||
|
<data android:pathPattern=".*\\..*\\..*\\.tubelab" />
|
||||||
|
<data android:pathPattern=".*\\..*\\..*\\..*\\.tubelab" />
|
||||||
|
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.tubelab" />
|
||||||
|
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.tubelab" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
|
||||||
|
</application>
|
||||||
|
</manifest>
|
@ -1 +0,0 @@
|
|||||||
https://fedilab.app
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1,5 +0,0 @@
|
|||||||
- Nouvelles options :
|
|
||||||
- Mode plein écran automatique
|
|
||||||
- Désactiver la lecture automatique des vidéos
|
|
||||||
|
|
||||||
- Quelques corrections de bugs
|
|
@ -1 +0,0 @@
|
|||||||
https://fedilab.app
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1 +0,0 @@
|
|||||||
TubeLab est une application Peertube pour les instances académiques.
|
|
@ -1,22 +0,0 @@
|
|||||||
*Not authenticated mode*
|
|
||||||
|
|
||||||
It's a limited mode where you can do some actions:
|
|
||||||
|
|
||||||
- Switch instance,
|
|
||||||
- Share videos,
|
|
||||||
- Download videos.
|
|
||||||
|
|
||||||
|
|
||||||
*Authenticated mode*
|
|
||||||
|
|
||||||
Many features are available with this mode:
|
|
||||||
|
|
||||||
- Write/delete comments
|
|
||||||
- Upload/remove/edit videos
|
|
||||||
- Manage (create/edit/remove) channels and playlists
|
|
||||||
- Follow/unfollow channels
|
|
||||||
- Thumbs-up/down
|
|
||||||
- Check notifications
|
|
||||||
- Mute/unmute channels
|
|
||||||
- Report videos/accounts
|
|
||||||
- Check your history
|
|
@ -1,25 +0,0 @@
|
|||||||
Added:
|
|
||||||
- Device notifications (refresh time can be set in settings or disabled)
|
|
||||||
- Double tap video left/right to seek - or + 10 seconds
|
|
||||||
- Display video in a list with small thumbnails (default: disabled)
|
|
||||||
- Automatically adapt full-screen in portrait or landscape
|
|
||||||
- Incognito: Enable/disable reccords in history
|
|
||||||
- Video suggestions
|
|
||||||
- Enable/Disable playback when screen is off (default: disabled)
|
|
||||||
- Add support for Torrent URLs
|
|
||||||
- Toggle full video description when available
|
|
||||||
- Channel can be visited from playing video activity
|
|
||||||
- Play videos from URL search
|
|
||||||
- Allow to set behavior in settings for sensitive media
|
|
||||||
- Remember last play position
|
|
||||||
- Honor don't download videos when forbidden
|
|
||||||
- Share channel or account links when visiting profiles
|
|
||||||
|
|
||||||
Changed:
|
|
||||||
- Video mode (Normal, webview, magnet and torrent)
|
|
||||||
- Accept URLs for instances
|
|
||||||
|
|
||||||
Fix:
|
|
||||||
- Enable to end playing with top back button
|
|
||||||
- Fix FP message with token
|
|
||||||
- Share the page on Peertube and not the video file.
|
|
20
app/src/full/java/app/fedilab/fedilabtube/FedilabTube.java
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package app.fedilab.fedilabtube;
|
||||||
|
/* Copyright 2020 Thomas Schneider
|
||||||
|
*
|
||||||
|
* This file is a part of TubeLab
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
||||||
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* TubeLab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||||||
|
* Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
||||||
|
* see <http://www.gnu.org/licenses>. */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public class FedilabTube extends BaseFedilabTube {
|
||||||
|
}
|
41
app/src/full/java/app/fedilab/fedilabtube/Matomo.java
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
package app.fedilab.fedilabtube;
|
||||||
|
/* Copyright 2020 Thomas Schneider
|
||||||
|
*
|
||||||
|
* This file is a part of TubeLab
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
||||||
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* TubeLab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||||||
|
* Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
||||||
|
* see <http://www.gnu.org/licenses>. */
|
||||||
|
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
|
||||||
|
|
||||||
|
@SuppressWarnings({"unused", "RedundantSuppression"})
|
||||||
|
public class Matomo {
|
||||||
|
|
||||||
|
public static void sendScreen(Context _mcontext, String path, String title) {
|
||||||
|
//Do nothing
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void sendEvent(Context _mcontext, String category, String action, String label, float value) {
|
||||||
|
//Do nothing
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void sendValue(Context _mcontext, String path, int index, String dimensionValue) {
|
||||||
|
//Do nothing
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void trackInstall(Context _mcontext) {
|
||||||
|
//Do nothing
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:tint="#FFFFFF"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<group
|
||||||
|
android:scaleX="1.104"
|
||||||
|
android:scaleY="1.104"
|
||||||
|
android:translateX="-1.248"
|
||||||
|
android:translateY="-1.248">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M10,16.5l6,-4.5 -6,-4.5v9zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8z" />
|
||||||
|
</group>
|
||||||
|
</vector>
|
BIN
app/src/full/res/drawable-hdpi/ic_notification_tubelab.png
Normal file
After Width: | Height: | Size: 720 B |
BIN
app/src/full/res/drawable-mdpi/ic_notification_tubelab.png
Normal file
After Width: | Height: | Size: 491 B |
BIN
app/src/full/res/drawable-xhdpi/ic_notification_tubelab.png
Normal file
After Width: | Height: | Size: 937 B |
BIN
app/src/full/res/drawable-xxhdpi/ic_notification_tubelab.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
app/src/full/res/drawable-xxxhdpi/ic_notification_tubelab.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
@ -1,314 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
|
||||||
<string name="set_video_in_list">Videos in list</string>
|
|
||||||
<string name="set_video_in_list_description">Change the layout for displaying videos in a list</string>
|
|
||||||
<string name="show_more">Show more</string>
|
|
||||||
<string name="show_less">Show less</string>
|
|
||||||
<string name="set_play_screen_lock">Screen lock</string>
|
|
||||||
<string name="set_play_screen_lock_description">Keep playing videos when the screen is locked</string>
|
|
||||||
<string name="save">Save</string>
|
|
||||||
<string name="enable_history">Enable history</string>
|
|
||||||
<string name="change_profile_picture">Change profile picture</string>
|
|
||||||
<string name="set_autoplay">Automatic playback</string>
|
|
||||||
<string name="set_autoplay_description">If enabled, videos will be played automatically</string>
|
|
||||||
<string name="set_fullscreen">Fullscreen</string>
|
|
||||||
<string name="set_fullscreen_description">Automatically open videos in fullscreen</string>
|
|
||||||
<string name="set_autoplay_next_video">Automatically start playing the next video</string>
|
|
||||||
<string name="set_autoplay_next_video_description">When a video ends, follow up with the next suggested video.</string>
|
|
||||||
<string name="add_public_reply">Ajouter une réponse publique</string>
|
|
||||||
<string name="activity">Activity</string>
|
|
||||||
<string name="app">App</string>
|
|
||||||
<string name="notif_new_video">New video from your subscriptions</string>
|
|
||||||
<string name="notif_new_comment">New comment on your video</string>
|
|
||||||
<string name="notif_blocked">One of your video is blocked/unblocked</string>
|
|
||||||
<string name="notif_video_published">Video published (after transcoding/scheduled update)</string>
|
|
||||||
<string name="notif_video_imported">Video import finished</string>
|
|
||||||
<string name="notif_new_followers">You or your channel(s) has a new follower</string>
|
|
||||||
<string name="notif_video_mention">Someone mentioned you in video comments</string>
|
|
||||||
<string name="notif_abuse_received">An abuse report received a new message</string>
|
|
||||||
<string name="notif_abuse_accepted">One of your abuse reports has been accepted or rejected by moderators</string>
|
|
||||||
<plurals name="number_of_replies">
|
|
||||||
<item quantity="one">%d réponse</item>
|
|
||||||
<item quantity="other">%d réponses</item>
|
|
||||||
</plurals>
|
|
||||||
<string name="reply">Réponse</string>
|
|
||||||
<string name="set_theme">Thème</string>
|
|
||||||
<string name="set_theme_description">Permet de changer le thème de l\'application</string>
|
|
||||||
<string name="federation_issue">La vidéo ne peut pas être fédérée !</string>
|
|
||||||
<string name="title_home">Locale</string>
|
|
||||||
<string name="title_local">Locale</string>
|
|
||||||
<string name="title_discover">Découvrir</string>
|
|
||||||
<string name="title_notifications">Notifications</string>
|
|
||||||
<string name="title_recently_added">Nouveautés</string>
|
|
||||||
<string name="title_trending">Tendances</string>
|
|
||||||
<string name="title_most_liked">Plus aimées</string>
|
|
||||||
<string name="toast_error">Une erreur s\'est produite !</string>
|
|
||||||
<string name="title_muted">Sourdine</string>
|
|
||||||
<string name="title_channel">Chaînes</string>
|
|
||||||
<string name="do_not_list">Ne pas lister</string>
|
|
||||||
<string name="blur">Estomper</string>
|
|
||||||
<string name="display">Afficher</string>
|
|
||||||
<string name="no_opinion">Pas d\'opinion</string>
|
|
||||||
<string name="instance_choice">Choisissez une instance</string>
|
|
||||||
<string name="not_valide_instance">Cette instance ne semble pas être valide !</string>
|
|
||||||
<string name="no_videos">Aucune vidéo !</string>
|
|
||||||
<string name="no_notifications">Aucune notification !</string>
|
|
||||||
<string name="favicon">Favicon</string>
|
|
||||||
<string name="open_with">Ouvrir avec</string>
|
|
||||||
<string name="action_playlist_edit">Modifier une liste de lecture</string>
|
|
||||||
<string name="close">Fermer</string>
|
|
||||||
<string name="upload_video">Téléverser</string>
|
|
||||||
<string name="image_preview">Aperçu de l\'image</string>
|
|
||||||
<string name="file_to_upload">Sélectionnez un fichier à transférer</string>
|
|
||||||
<string name="new_video">New video</string>
|
|
||||||
<string name="new_blacklist">New blacklist info</string>
|
|
||||||
<string name="new_my_video_published">Your video is published</string>
|
|
||||||
<string name="new_my_video_error">Error when publishing your video</string>
|
|
||||||
<string name="new_comment">New comment</string>
|
|
||||||
<string name="new_follow">New follow</string>
|
|
||||||
<string name="channel">Chaîne</string>
|
|
||||||
<string name="videos">Vidéos</string>
|
|
||||||
<string name="channels">Chaînes</string>
|
|
||||||
<string name="refresh_every">Fetch every:</string>
|
|
||||||
<string-array name="refresh_time">
|
|
||||||
<item>Never</item>
|
|
||||||
<item>15 minutes</item>
|
|
||||||
<item>30 minutes</item>
|
|
||||||
<item>1 hour</item>
|
|
||||||
<item>2 hours</item>
|
|
||||||
<item>6 hours</item>
|
|
||||||
<item>12 hours</item>
|
|
||||||
</string-array>
|
|
||||||
<string name="yes">Oui</string>
|
|
||||||
<string name="no">Non</string>
|
|
||||||
<string name="cancel">Annuler</string>
|
|
||||||
<string name="download">Télécharger</string>
|
|
||||||
<string name="profile_picture">Photo du profil</string>
|
|
||||||
<string name="update_video">Mettre à jour la vidéo</string>
|
|
||||||
<string name="remove_from_playlist">Supprimer de la liste de lecture</string>
|
|
||||||
<string name="date_seconds">%d s</string>
|
|
||||||
<string name="date_minutes">%d min</string>
|
|
||||||
<string name="date_hours">%d h</string>
|
|
||||||
<string name="date_day">%d j</string>
|
|
||||||
<string name="number_view_video">%s vues</string>
|
|
||||||
<string name="title_instance_login">Domaine de l\'instance</string>
|
|
||||||
<string name="uploading">Transfert en cours, veuillez patienter …</string>
|
|
||||||
<string name="upload_video_success">La vidéo a été transférée !</string>
|
|
||||||
<string name="toast_cancelled">Transfert annulé !</string>
|
|
||||||
<string name="video_uploaded_action">Cliquez ici pour éditer les données de la vidéo.</string>
|
|
||||||
<string name="toot_select_image_error">Une erreur s’est produite lors de la sélection du média !</string>
|
|
||||||
<string name="download_file">Télécharger %1$s</string>
|
|
||||||
<string name="account_updated">The account has been updated!</string>
|
|
||||||
<string name="action_privacy">Confidentialité</string>
|
|
||||||
<string name="action_logout">Déconnexion</string>
|
|
||||||
<string name="login">Connexion</string>
|
|
||||||
<string name="password">Mot de passe</string>
|
|
||||||
<string name="email">Courriel</string>
|
|
||||||
<string name="tags">Étiquettes</string>
|
|
||||||
<string name="validate">Valider</string>
|
|
||||||
<string name="share_with">Partager avec</string>
|
|
||||||
<string name="shared_via">Partagé via TubeLab</string>
|
|
||||||
<string name="username">Nom d’utilisateur</string>
|
|
||||||
<string name="settings">Paramètres</string>
|
|
||||||
<string name="logout_account_confirmation">Voulez-vous vraiment déconnecter le compte @%1$s@%2$s ?</string>
|
|
||||||
<string name="following">Suit</string>
|
|
||||||
<string name="followers">Abonné·e·s</string>
|
|
||||||
<string name="client_error">Impossible d’obtenir l’id du client !</string>
|
|
||||||
<string name="toast_error_loading_account">Une erreur s’est produite pendant le chargement du compte !</string>
|
|
||||||
<string name="toast_error_search">Une erreur s’est produite lors de la recherche !</string>
|
|
||||||
<string name="nothing_to_do">Aucune action ne peut être réalisée</string>
|
|
||||||
<string name="action_follow">S\'abonner</string>
|
|
||||||
<string name="action_mute">Mettre en sourdine</string>
|
|
||||||
<string name="search">Chercher</string>
|
|
||||||
<string name="delete">Supprimer</string>
|
|
||||||
<string name="action_lists_confirm_delete">Êtes-vous sûr de vouloir supprimer définitivement cette liste de lecture ?</string>
|
|
||||||
<string name="action_lists_delete">Supprimer la liste de lecture</string>
|
|
||||||
<string name="no_comments">Soyez le·a premier·ère à laisser un commentaire sur cette vidéo en utilisant le bouton supérieur droit !</string>
|
|
||||||
<string name="comment_no_allowed_peertube">Les commentaires sur cette vidéos ont été désactivés !</string>
|
|
||||||
<string name="pickup_resolution">Choisissez une résolution</string>
|
|
||||||
<string name="bookmark_add_peertube">La vidéo est rajoutée aux favoris !</string>
|
|
||||||
<string name="bookmark_remove_peertube">La vidéo a été retirée de vos favoris !</string>
|
|
||||||
<string name="information" tools:ignore="UnusedResources">Information</string>
|
|
||||||
<string name="app_logo">Logo de l’application</string>
|
|
||||||
<!-- languages not translated -->
|
|
||||||
<string name="subscriptions">Abonnements</string>
|
|
||||||
<string name="delete_comment">Supprimer le commentaire</string>
|
|
||||||
<string name="delete_comment_confirm">Etes-vous sûr de vouloir supprimer ce commentaire ?</string>
|
|
||||||
<string name="set_video_mode">Mode pour les vidéos</string>
|
|
||||||
<string name="filter">Filtrer</string>
|
|
||||||
<string name="sepia_search">Recherche sépia</string>
|
|
||||||
<string name="sepia_element_nsfw">Afficher le contenu sensible</string>
|
|
||||||
<string name="sepia_element_published_date">Date de publication</string>
|
|
||||||
<string name="any">Toutes</string>
|
|
||||||
<string name="today">Aujourd\'hui</string>
|
|
||||||
<string name="last_7_days">Les 7 derniers jours</string>
|
|
||||||
<string name="last_30_days">Les 30 derniers jours</string>
|
|
||||||
<string name="last_365_days">Les 365 derniers jours</string>
|
|
||||||
<string name="sepia_element_duration">Durée</string>
|
|
||||||
<string name="duration_short"><![CDATA[Courte (<4 min)]]></string>
|
|
||||||
<string name="duration_medium"><![CDATA[Moyenne (4-10 min)]]></string>
|
|
||||||
<string name="duration_long"><![CDATA[Longue (> 10 min)]]></string>
|
|
||||||
<string name="display_all_categories">Afficher toutes les catégories</string>
|
|
||||||
<string name="display_all_licenses">Afficher toutes les licences</string>
|
|
||||||
<string name="display_all_languages">Afficher toutes les langues</string>
|
|
||||||
<string name="all_of_these_tags">Tous ces labels</string>
|
|
||||||
<string name="one_of_these_tags">Un de ces labels</string>
|
|
||||||
<string name="apply_filter">Appliquer le filtre</string>
|
|
||||||
<string-array name="sort_by_array">
|
|
||||||
<item>Meilleurs résultats</item>
|
|
||||||
<item>Les plus récentes</item>
|
|
||||||
<item>Les moins récentes</item>
|
|
||||||
</string-array>
|
|
||||||
<string name="sort_by">Trier par</string>
|
|
||||||
<string name="sepia_search_hint">Mot-clé, chaîne, vidéo, etc.</string>
|
|
||||||
<string name="sepia_indication">La recherche Sepia affiche les vidéos et les chaînes qui correspondent à votre recherche mais qui n\'est pas l\'éditeur, ni le propriétaire. Si vous remarquez des problèmes avec une vidéo, signalez-la aux administrateurs sur le site Web de PeerTube où la vidéo est publiée.</string>
|
|
||||||
<string name="my_videos">Mes vidéos</string>
|
|
||||||
<string name="title">Titre</string>
|
|
||||||
<string name="license">Licence</string>
|
|
||||||
<string name="category">Catégorie</string>
|
|
||||||
<string name="language">Langue</string>
|
|
||||||
<string name="peertube_nsfw">Cette vidéo contient du contenu pour adultes</string>
|
|
||||||
<string name="peertube_enable_comments">Activer les commentaires</string>
|
|
||||||
<string name="description">Libellé</string>
|
|
||||||
<string name="toast_peertube_video_updated">La vidéo a été mise à jour !</string>
|
|
||||||
<string name="register_account">Créer un compte</string>
|
|
||||||
<string name="email_address">Adresse mèl</string>
|
|
||||||
<string name="preview">Aperçu</string>
|
|
||||||
<string name="change_preview">Modifier l\'aperçu</string>
|
|
||||||
<string name="name">Nom</string>
|
|
||||||
<string name="display_more">Afficher plus</string>
|
|
||||||
<string name="no_channels">Aucune chaîne !</string>
|
|
||||||
<string name="report_helper">Quelques explications concernant votre signalement…</string>
|
|
||||||
<string name="report_video">Signaler la vidéo</string>
|
|
||||||
<string name="report">Signaler</string>
|
|
||||||
<string name="change_instance">Changer d\'instance</string>
|
|
||||||
<string name="my_history">Historique</string>
|
|
||||||
<string name="edit">Modifier</string>
|
|
||||||
<string name="video_settings">Réglages des vidéos</string>
|
|
||||||
<string name="app_interface">Interface</string>
|
|
||||||
<string name="set_cache_mode">Cache</string>
|
|
||||||
<string name="set_video_cache_description">Définir le cache pour les vidéos (par défaut 100Mo)</string>
|
|
||||||
<string name="set_video_quality_description">Définir une qualité par défaut pour les vidéos</string>
|
|
||||||
<string name="set_quality_mode">Résolution pour les vidéos</string>
|
|
||||||
<string name="video_cache_value">Cache vidéo : %d Mo</string>
|
|
||||||
<string name="captions">Légendes</string>
|
|
||||||
<string name="pickup_captions">Options d\'envoi</string>
|
|
||||||
<string name="none">Aucune</string>
|
|
||||||
<string name="set_video_mode_description">Permet de changer le mode de lecture pour les vidéos (normal, streaming ou via un navigateur).</string>
|
|
||||||
<string name="delete_account_comment">Supprimer les commentaires du compte</string>
|
|
||||||
<string name="delete_account_comment_confirm">Êtes-vous sûr de vouloir supprimer tous les commentaires de ce compte ?</string>
|
|
||||||
<string name="delete_video">Supprimer la vidéo</string>
|
|
||||||
<string name="delete_video_confirmation">Êtes-vous sûr de vouloir supprimer cette vidéo ?</string>
|
|
||||||
<string name="no_video_to_display">Aucune vidéo n’est disponible !</string>
|
|
||||||
<string name="share">Partager</string>
|
|
||||||
<string name="peertube_comment_on_video"><![CDATA[<b>%1$s</b> a commenté votre vidéo <b>%2$s</b>]]></string>
|
|
||||||
<string name="peertube_follow_channel"><![CDATA[<b>%1$s</b> suit votre chaîne <b>%2$s</b>]]></string>
|
|
||||||
<string name="peertube_follow_account"><![CDATA[<b>%1$s</b> suit votre compte]]></string>
|
|
||||||
<string name="peertube_video_published"><![CDATA[Votre vidéo <b>%1$s</b> a été publiée]]></string>
|
|
||||||
<string name="peertube_video_import_success"><![CDATA[L’importation de votre vidéo <b>%1$s</b> a réussi]]></string>
|
|
||||||
<string name="peertube_video_import_error"><![CDATA[Échec lors de l’importation de votre vidéo <b>%1$s</b>]]></string>
|
|
||||||
<string name="peertube_video_from_subscription"><![CDATA[<b>%1$s</b> a publié une nouvelle vidéo : <b>%2$s</b>]]></string>
|
|
||||||
<string name="peertube_video_blacklist"><![CDATA[Votre vidéo <b>%1$s</b> a été blacklisté]]></string>
|
|
||||||
<string name="peertube_video_unblacklist"><![CDATA[Votre vidéo <b>%1$s</b> n’est plus blacklisté]]></string>
|
|
||||||
<string name="peertube_video_report_success"><![CDATA[Your abuse report <b>%1$s</b> has been accepted]]></string>
|
|
||||||
<string name="peertube_video_abuse"><![CDATA[Nouveau signalement pour la vidéo : <b>%1$s</b>]]></string>
|
|
||||||
<string name="add_public_comment">Ajouter un commentaire public</string>
|
|
||||||
<string name="send_comment">Envoyer un commentaire</string>
|
|
||||||
<string name="all">Tout</string>
|
|
||||||
<!-- end languages -->
|
|
||||||
<string name="playlists">Listes de lecture</string>
|
|
||||||
<string name="display_name">Nom d\'affichage</string>
|
|
||||||
<string name="action_playlist_add">Vous n\'avez aucune liste de lecture. Cliquez sur l\'icône « + » pour en ajouter une</string>
|
|
||||||
<string name="error_display_name">Vous devez fournir un nom d\'affichage !</string>
|
|
||||||
<string name="error_channel_mandatory">Une chaîne est requise lorsque la liste de lecture est publique.</string>
|
|
||||||
<string name="action_playlist_create">Créer une liste de lecture</string>
|
|
||||||
<string name="action_playlist_empty_content">Cette liste de lecture est vide.</string>
|
|
||||||
<string name="password_confirm">Confirmer le mot de passe</string>
|
|
||||||
<string name="agreement_check">J\'accepte les %1$s et les %2$s</string>
|
|
||||||
<string name="server_rules">règles du serveur</string>
|
|
||||||
<string name="tos">conditions de service</string>
|
|
||||||
<string name="sign_up">S’inscrire</string>
|
|
||||||
<string name="all_field_filled">Veuillez remplir tous les champs !</string>
|
|
||||||
<string name="password_error">Les mots de passe ne sont pas identiques !</string>
|
|
||||||
<string name="email_error">L\'e-mail ne semble pas être valide !</string>
|
|
||||||
<string name="email_indicator">Vous recevrez un e-mail de confirmation</string>
|
|
||||||
<string name="password_indicator">Utilisez au moins 8 caractères</string>
|
|
||||||
<string name="password_too_short">Le mot de passe doit contenir au moins 8 caractères</string>
|
|
||||||
<string name="username_error">Le nom d\'utilisateur·rice doit être en minuscule, contenir uniquement des lettres, des chiffres, des points et des caractères de soulignement</string>
|
|
||||||
<string name="account_created">Compte créé !</string>
|
|
||||||
<string name="account_created_message">Votre compte est créé !\n\nVous allez recevoir un email de confirmation à l\'adresse <b>%1$s</b>.\n\nCliquez sur le lien présent dans le mail pour valider votre compte.</string>
|
|
||||||
<string name="account">Compte</string>
|
|
||||||
<string name="report_account">Signaler le compte</string>
|
|
||||||
<string-array name="settings_video_mode">
|
|
||||||
<item>Normal</item>
|
|
||||||
<item>Streaming</item>
|
|
||||||
<item>Magnet</item>
|
|
||||||
<item>Torrent</item>
|
|
||||||
</string-array>
|
|
||||||
<string-array name="settings_theme">
|
|
||||||
<item>Lumière</item>
|
|
||||||
<item>Foncé</item>
|
|
||||||
<item>Automatique</item>
|
|
||||||
</string-array>
|
|
||||||
<string-array name="settings_video_quality">
|
|
||||||
<item>Élevée</item>
|
|
||||||
<item>Moyenne</item>
|
|
||||||
<item>Faible</item>
|
|
||||||
</string-array>
|
|
||||||
<string name="unfollow_confirm">Voulez-vous vous désabonner de ce compte ?</string>
|
|
||||||
<string name="title_video_peertube">Titre de la vidéo</string>
|
|
||||||
<string name="join_peertube">Rejoignez Peertube</string>
|
|
||||||
<string name="agreement_check_peertube">J\'ai au moins 16 ans et je suis d\'accord avec les %1$s de cette instance</string>
|
|
||||||
<string name="edit_profile">Éditer le profil</string>
|
|
||||||
<string name="make_an_action">Faire une action</string>
|
|
||||||
<string name="action_unfollow">Se désabonner</string>
|
|
||||||
<string name="display_nsfw_videos">Afficher les vidéos sensibles</string>
|
|
||||||
<string name="fullscreen">Vidéo plein écran</string>
|
|
||||||
<string name="bookmark_peertube_empty">Il n’y a aucune vidéo Peertube dans vos favoris !</string>
|
|
||||||
<string name="delete_channel">Supprimer la chaîne</string>
|
|
||||||
<string name="action_channel_confirm_delete">Êtes-vous sûr de vouloir supprimer définitivement cette chaîne ?</string>
|
|
||||||
<string name="modify_playlists">Vidéo dans les listes de lecture</string>
|
|
||||||
<string name="no_muted">Aucun compte en sourdine !</string>
|
|
||||||
<string name="error_display_name_channel">Vous devez fournir un nom d\'affichage et un nom pour la chaîne!</string>
|
|
||||||
<string name="action_channel_create">Créer une chaîne</string>
|
|
||||||
<string name="action_channel_edit">Modifier une chaîne</string>
|
|
||||||
<string name="email_error_domain">Les adresses mails %1$s ne sont pas autorisées !</string>
|
|
||||||
<string name="report_comment_size">Veuillez préciser les raisons.</string>
|
|
||||||
<string name="not_logged_in">Vous devez être connecté.e pour effectuer cette action !</string>
|
|
||||||
<string name="successful_report">Le compte a été signalé !</string>
|
|
||||||
<string name="successful_report_comment">Le commentaire a été signalé !</string>
|
|
||||||
<string name="successful_video_report">La vidéo a été signalée !</string>
|
|
||||||
<string name="password_length_error">Le mot de passe doit contenir 6 caractères !</string>
|
|
||||||
<string name="muted_done">Le compte a été mis en sourdine !</string>
|
|
||||||
<string name="edit_video">Modifier une vidéo</string>
|
|
||||||
<string name="create_an_account">Créer un compte</string>
|
|
||||||
<string name="followers_count">%1$s Abonné·e·s</string>
|
|
||||||
<string name="developer">Développeur</string>
|
|
||||||
<string name="about_vesrion">Version %1$s</string>
|
|
||||||
<string name="about_the_app">À propos de l’application</string>
|
|
||||||
<string name="Donate">Faire un don</string>
|
|
||||||
<string name="source_code">Code source</string>
|
|
||||||
<string name="issue_tracker">Suivi des tickets</string>
|
|
||||||
<string name="action_instance_empty_content">Aucune instance ne correspond à ces critères</string>
|
|
||||||
<string name="instances_picker">Sélecteur d\'instances</string>
|
|
||||||
<string name="pickup_instance">Choisissez une instance</string>
|
|
||||||
<string name="sensitive_video"> Vidéos sensibles</string>
|
|
||||||
<string name="sensitive_content">Contenu sensible : %1$s</string>
|
|
||||||
<string name="followers_instance">%1$s instances suiveuses</string>
|
|
||||||
<string name="help">Aide</string>
|
|
||||||
<string name="pickup_categories">Sélection des catégories</string>
|
|
||||||
<string name="pickup_languages">Sélection des langues</string>
|
|
||||||
<string name="notification_channel_name">Mise à jour des informations</string>
|
|
||||||
<string name="fetch_notification_channel_name">Fetch notifications</string>
|
|
||||||
<string name="add_account">Ajouter un compte</string>
|
|
||||||
<string name="list_of_accounts">Liste des comptes</string>
|
|
||||||
<string name="pause">Pause</string>
|
|
||||||
<string name="play">Jouer</string>
|
|
||||||
<string name="minimize">Minimiser</string>
|
|
||||||
<string name="fast_rewind">Rembobinage rapide</string>
|
|
||||||
<string name="fast_forward">Avance rapide</string>
|
|
||||||
<string name="set_video_minimize">Minimiser la taille des vidéos</string>
|
|
||||||
<string name="set_video_minimize_description">Minimiser la taille des vidéos lorsque l\'application est en arrière-plan (Android N+)</string>
|
|
||||||
<string name="set_video_language">Filtre de langue</string>
|
|
||||||
<string name="set_video_language_description">Filtrer les vidéos avec différentes langues</string>
|
|
||||||
</resources>
|
|
@ -7,6 +7,9 @@
|
|||||||
<color name="tag_color_text">#FAFAFA</color>
|
<color name="tag_color_text">#FAFAFA</color>
|
||||||
<color name="positive_thumbs">#2b90d9</color>
|
<color name="positive_thumbs">#2b90d9</color>
|
||||||
<color name="negative_thumbs">#F44336</color>
|
<color name="negative_thumbs">#F44336</color>
|
||||||
|
<color name="favorite">#ca8f04</color>
|
||||||
|
<color name="bookmark">#795548</color>
|
||||||
|
<color name="backgroundDark">#DD000000</color>
|
||||||
<color name="red_1">#F44336</color>
|
<color name="red_1">#F44336</color>
|
||||||
|
<color name="gray_light">#80808080</color>
|
||||||
</resources>
|
</resources>
|
7
app/src/full/res/xml/file_paths.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<external-path
|
||||||
|
name="my_images"
|
||||||
|
path="/TubeLab/" />
|
||||||
|
|
||||||
|
</paths>
|
37
app/src/google_acad/AndroidManifest.xml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
package="app.fedilab.fedilabtube">
|
||||||
|
|
||||||
|
|
||||||
|
<application
|
||||||
|
android:name=".FedilabTube"
|
||||||
|
android:allowBackup="false"
|
||||||
|
android:icon="@mipmap/ic_launcher"
|
||||||
|
android:label="@string/app_name"
|
||||||
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
|
android:supportsRtl="true"
|
||||||
|
android:theme="@style/AppTheme"
|
||||||
|
tools:replace="android:allowBackup">
|
||||||
|
|
||||||
|
<activity
|
||||||
|
android:name=".MainActivity"
|
||||||
|
tools:node="merge">
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
|
<data android:scheme="content" />
|
||||||
|
<data android:scheme="file" />
|
||||||
|
<data android:mimeType="*/*" />
|
||||||
|
<data android:pathPattern=".*\\.tubelab" />
|
||||||
|
<data android:pathPattern=".*\\..*\\.tubelab" />
|
||||||
|
<data android:pathPattern=".*\\..*\\..*\\.tubelab" />
|
||||||
|
<data android:pathPattern=".*\\..*\\..*\\..*\\.tubelab" />
|
||||||
|
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.tubelab" />
|
||||||
|
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.tubelab" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
|
||||||
|
</application>
|
||||||
|
</manifest>
|
@ -10,7 +10,9 @@
|
|||||||
|
|
||||||
-->
|
-->
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
<uses-permission
|
||||||
|
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
|
||||||
|
tools:ignore="ScopedStorage" />
|
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||||
@ -83,7 +85,11 @@
|
|||||||
android:configChanges="orientation|screenSize"
|
android:configChanges="orientation|screenSize"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:windowSoftInputMode="stateAlwaysHidden" />
|
android:windowSoftInputMode="stateAlwaysHidden" />
|
||||||
|
<activity
|
||||||
|
android:name=".AllLocalPlaylistsActivity"
|
||||||
|
android:configChanges="orientation|screenSize"
|
||||||
|
android:label="@string/app_name"
|
||||||
|
android:windowSoftInputMode="stateAlwaysHidden" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".InstancePickerActivity"
|
android:name=".InstancePickerActivity"
|
||||||
android:configChanges="orientation|screenSize"
|
android:configChanges="orientation|screenSize"
|
||||||
@ -95,6 +101,11 @@
|
|||||||
android:configChanges="orientation|screenSize"
|
android:configChanges="orientation|screenSize"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:windowSoftInputMode="stateAlwaysHidden" />
|
android:windowSoftInputMode="stateAlwaysHidden" />
|
||||||
|
<activity
|
||||||
|
android:name=".LocalPlaylistsActivity"
|
||||||
|
android:configChanges="orientation|screenSize"
|
||||||
|
android:label="@string/app_name"
|
||||||
|
android:windowSoftInputMode="stateAlwaysHidden" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".VideosTimelineActivity"
|
android:name=".VideosTimelineActivity"
|
||||||
android:configChanges="orientation|screenSize"
|
android:configChanges="orientation|screenSize"
|
||||||
@ -105,6 +116,11 @@
|
|||||||
android:configChanges="orientation|screenSize"
|
android:configChanges="orientation|screenSize"
|
||||||
android:label="@string/sepia_search"
|
android:label="@string/sepia_search"
|
||||||
android:windowSoftInputMode="stateAlwaysHidden" />
|
android:windowSoftInputMode="stateAlwaysHidden" />
|
||||||
|
<activity
|
||||||
|
android:name=".ManageInstancesActivity"
|
||||||
|
android:configChanges="orientation|screenSize"
|
||||||
|
android:label="@string/instances_picker"
|
||||||
|
android:windowSoftInputMode="stateAlwaysHidden" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".WebviewActivity"
|
android:name=".WebviewActivity"
|
||||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||||
@ -113,11 +129,26 @@
|
|||||||
android:name=".WebviewConnectActivity"
|
android:name=".WebviewConnectActivity"
|
||||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||||
android:label="@string/app_name" />
|
android:label="@string/app_name" />
|
||||||
|
<activity
|
||||||
|
android:name=".MastodonWebviewConnectActivity"
|
||||||
|
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||||
|
android:label="@string/app_name" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".LoginActivity"
|
android:name=".LoginActivity"
|
||||||
android:configChanges="orientation|screenSize"
|
android:configChanges="orientation|screenSize"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:windowSoftInputMode="stateAlwaysHidden" />
|
android:windowSoftInputMode="stateAlwaysHidden">
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
|
|
||||||
|
<data
|
||||||
|
android:host="backtotubelab"
|
||||||
|
android:scheme="tubelab" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".SettingsActivity"
|
android:name=".SettingsActivity"
|
||||||
@ -143,19 +174,23 @@
|
|||||||
<service
|
<service
|
||||||
android:name=".services.RetrieveInfoService"
|
android:name=".services.RetrieveInfoService"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
<receiver
|
|
||||||
android:name=".services.PeertubeUploadReceiver"
|
|
||||||
android:exported="false">
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="app.fedilab.fedilabtube.uploadservice.broadcast.status" />
|
|
||||||
</intent-filter>
|
|
||||||
</receiver>
|
|
||||||
|
|
||||||
<provider
|
<provider
|
||||||
android:name="androidx.work.impl.WorkManagerInitializer"
|
android:name="androidx.work.impl.WorkManagerInitializer"
|
||||||
android:authorities="${applicationId}.workmanager-init"
|
android:authorities="${applicationId}.workmanager-init"
|
||||||
tools:node="remove"
|
tools:node="remove"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
|
|
||||||
|
|
||||||
|
<provider
|
||||||
|
android:name="androidx.core.content.FileProvider"
|
||||||
|
android:authorities="${applicationId}.fileProvider"
|
||||||
|
android:exported="false"
|
||||||
|
android:grantUriPermissions="true">
|
||||||
|
<meta-data
|
||||||
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||||
|
android:resource="@xml/file_paths" />
|
||||||
|
</provider>
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
@ -115,15 +115,27 @@ public class AboutActivity extends AppCompatActivity {
|
|||||||
donation_container.setVisibility(View.GONE);
|
donation_container.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Developer donation
|
//Developer donation
|
||||||
Button donatePaypal = findViewById(R.id.donate_paypal);
|
Button donatePaypal = findViewById(R.id.donate_paypal);
|
||||||
donatePaypal.setOnClickListener(v -> {
|
donatePaypal.setOnClickListener(v -> {
|
||||||
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.paypal.me/Mastalab"));
|
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.paypal.me/Mastalab"));
|
||||||
startActivity(browserIntent);
|
startActivity(browserIntent);
|
||||||
});
|
});
|
||||||
|
if (BuildConfig.FLAVOR.equals("queermotion")) {
|
||||||
|
donatePaypal.setVisibility(View.GONE);
|
||||||
|
LinearLayout dev_info = findViewById(R.id.dev_info);
|
||||||
|
dev_info.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
Button donateLiberapay = findViewById(R.id.donate_liberapay);
|
Button donateLiberapay = findViewById(R.id.donate_liberapay);
|
||||||
donateLiberapay.setOnClickListener(v -> {
|
donateLiberapay.setOnClickListener(v -> {
|
||||||
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://liberapay.com/tom79"));
|
Intent browserIntent;
|
||||||
|
if (BuildConfig.FLAVOR.equals("queermotion")) {
|
||||||
|
browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://soutenir.queermotion.org"));
|
||||||
|
} else {
|
||||||
|
browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://liberapay.com/tom79"));
|
||||||
|
}
|
||||||
|
|
||||||
startActivity(browserIntent);
|
startActivity(browserIntent);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -17,16 +17,16 @@ package app.fedilab.fedilabtube;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.database.sqlite.SQLiteDatabase;
|
import android.database.sqlite.SQLiteDatabase;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.text.Html;
|
||||||
import android.text.SpannableString;
|
import android.text.SpannableString;
|
||||||
import android.text.Spanned;
|
import android.text.Spanned;
|
||||||
import android.text.style.ForegroundColorSpan;
|
import android.text.style.ForegroundColorSpan;
|
||||||
import android.text.style.UnderlineSpan;
|
import android.text.style.UnderlineSpan;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.widget.Button;
|
import android.view.View;
|
||||||
import android.widget.ImageView;
|
|
||||||
import android.widget.TextView;
|
|
||||||
|
|
||||||
import androidx.appcompat.app.AlertDialog;
|
import androidx.appcompat.app.AlertDialog;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
@ -41,15 +41,14 @@ import com.google.android.material.tabs.TabLayout;
|
|||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import app.fedilab.fedilabtube.client.RetrofitPeertubeAPI;
|
import app.fedilab.fedilabtube.client.RetrofitPeertubeAPI;
|
||||||
import app.fedilab.fedilabtube.client.data.AccountData.Account;
|
import app.fedilab.fedilabtube.client.data.AccountData.Account;
|
||||||
import app.fedilab.fedilabtube.drawer.OwnAccountsAdapter;
|
import app.fedilab.fedilabtube.databinding.ActivityAccountBinding;
|
||||||
import app.fedilab.fedilabtube.fragment.DisplayAccountsFragment;
|
import app.fedilab.fedilabtube.fragment.DisplayAccountsFragment;
|
||||||
import app.fedilab.fedilabtube.fragment.DisplayChannelsFragment;
|
import app.fedilab.fedilabtube.fragment.DisplayChannelsFragment;
|
||||||
import app.fedilab.fedilabtube.fragment.DisplayNotificationsFragment;
|
import app.fedilab.fedilabtube.fragment.DisplayNotificationsFragment;
|
||||||
import app.fedilab.fedilabtube.helper.Helper;
|
import app.fedilab.fedilabtube.helper.Helper;
|
||||||
|
import app.fedilab.fedilabtube.helper.SwitchAccountHelper;
|
||||||
import app.fedilab.fedilabtube.sqlite.AccountDAO;
|
import app.fedilab.fedilabtube.sqlite.AccountDAO;
|
||||||
import app.fedilab.fedilabtube.sqlite.Sqlite;
|
import app.fedilab.fedilabtube.sqlite.Sqlite;
|
||||||
|
|
||||||
@ -57,15 +56,14 @@ import app.fedilab.fedilabtube.sqlite.Sqlite;
|
|||||||
public class AccountActivity extends AppCompatActivity {
|
public class AccountActivity extends AppCompatActivity {
|
||||||
|
|
||||||
|
|
||||||
private ViewPager mPager;
|
private ActivityAccountBinding binding;
|
||||||
private TabLayout tabLayout;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
binding = ActivityAccountBinding.inflate(getLayoutInflater());
|
||||||
setContentView(R.layout.activity_account);
|
View view = binding.getRoot();
|
||||||
|
setContentView(view);
|
||||||
if (getSupportActionBar() != null)
|
if (getSupportActionBar() != null)
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
|
|
||||||
@ -76,32 +74,27 @@ public class AccountActivity extends AppCompatActivity {
|
|||||||
Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
||||||
|
|
||||||
|
|
||||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
|
|
||||||
SQLiteDatabase db = Sqlite.getInstance(getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open();
|
SQLiteDatabase db = Sqlite.getInstance(getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open();
|
||||||
|
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
|
||||||
String token = sharedpreferences.getString(Helper.PREF_KEY_OAUTH_TOKEN, null);
|
String token = sharedpreferences.getString(Helper.PREF_KEY_OAUTH_TOKEN, null);
|
||||||
|
|
||||||
TextView instanceView = findViewById(R.id.instance);
|
|
||||||
Account account = new AccountDAO(AccountActivity.this, db).getAccountByToken(token);
|
Account account = new AccountDAO(AccountActivity.this, db).getAccountByToken(token);
|
||||||
|
|
||||||
if (account == null) {
|
if (account == null) {
|
||||||
Helper.logoutCurrentUser(AccountActivity.this, null);
|
Helper.logoutCurrentUser(AccountActivity.this, null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageView profile_picture = findViewById(R.id.profile_picture);
|
|
||||||
TextView username = findViewById(R.id.username);
|
|
||||||
TextView displayname = findViewById(R.id.displayname);
|
|
||||||
|
|
||||||
setTitle(String.format("@%s", account.getUsername()));
|
setTitle(String.format("@%s", account.getUsername()));
|
||||||
|
|
||||||
Helper.loadGiF(AccountActivity.this, account.getAvatar().getPath(), profile_picture);
|
Helper.loadGiF(AccountActivity.this, account.getAvatar().getPath(), binding.profilePicture);
|
||||||
username.setText(String.format("@%s", account.getUsername()));
|
binding.username.setText(String.format("@%s", account.getUsername()));
|
||||||
displayname.setText(account.getDisplayName());
|
binding.displayname.setText(account.getDisplayName());
|
||||||
|
|
||||||
instanceView.setText(account.getHost());
|
binding.instance.setText(account.getHost());
|
||||||
|
binding.editProfile.setOnClickListener(v -> startActivity(new Intent(AccountActivity.this, MyAccountActivity.class)));
|
||||||
|
|
||||||
Button logout_button = findViewById(R.id.logout_button);
|
binding.logoutButton.setOnClickListener(v -> {
|
||||||
logout_button.setOnClickListener(v -> {
|
|
||||||
AlertDialog.Builder dialogBuilderLogoutAccount = new AlertDialog.Builder(AccountActivity.this);
|
AlertDialog.Builder dialogBuilderLogoutAccount = new AlertDialog.Builder(AccountActivity.this);
|
||||||
dialogBuilderLogoutAccount.setMessage(getString(R.string.logout_account_confirmation, account.getUsername(), account.getHost()));
|
dialogBuilderLogoutAccount.setMessage(getString(R.string.logout_account_confirmation, account.getUsername(), account.getHost()));
|
||||||
dialogBuilderLogoutAccount.setPositiveButton(R.string.action_logout, (dialog, id) -> {
|
dialogBuilderLogoutAccount.setPositiveButton(R.string.action_logout, (dialog, id) -> {
|
||||||
@ -113,84 +106,93 @@ public class AccountActivity extends AppCompatActivity {
|
|||||||
alertDialogLogoutAccount.show();
|
alertDialogLogoutAccount.show();
|
||||||
});
|
});
|
||||||
|
|
||||||
Button settings = findViewById(R.id.settings);
|
binding.settings.setOnClickListener(v -> {
|
||||||
settings.setOnClickListener(v -> {
|
|
||||||
Intent intent = new Intent(AccountActivity.this, SettingsActivity.class);
|
Intent intent = new Intent(AccountActivity.this, SettingsActivity.class);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
});
|
});
|
||||||
|
|
||||||
tabLayout = findViewById(R.id.account_tabLayout);
|
|
||||||
mPager = findViewById(R.id.account_viewpager);
|
|
||||||
tabLayout.addTab(tabLayout.newTab().setText(getString(R.string.title_notifications)));
|
|
||||||
tabLayout.addTab(tabLayout.newTab().setText(getString(R.string.title_muted)));
|
|
||||||
tabLayout.addTab(tabLayout.newTab().setText(getString(R.string.title_channel)));
|
|
||||||
|
|
||||||
|
|
||||||
mPager.setOffscreenPageLimit(3);
|
if (Helper.isLoggedIn(AccountActivity.this)) {
|
||||||
|
binding.accountTabLayout.addTab(binding.accountTabLayout.newTab().setText(getString(R.string.title_notifications)));
|
||||||
|
binding.accountTabLayout.addTab(binding.accountTabLayout.newTab().setText(getString(R.string.title_muted)));
|
||||||
|
binding.accountTabLayout.addTab(binding.accountTabLayout.newTab().setText(getString(R.string.title_channel)));
|
||||||
|
|
||||||
|
binding.accountViewpager.setOffscreenPageLimit(3);
|
||||||
|
|
||||||
|
|
||||||
mPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
|
binding.accountViewpager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
|
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onPageSelected(int position) {
|
|
||||||
TabLayout.Tab tab = tabLayout.getTabAt(position);
|
|
||||||
if (tab != null)
|
|
||||||
tab.select();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onPageScrollStateChanged(int state) {
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
|
|
||||||
@Override
|
|
||||||
public void onTabSelected(TabLayout.Tab tab) {
|
|
||||||
mPager.setCurrentItem(tab.getPosition());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onTabUnselected(TabLayout.Tab tab) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onTabReselected(TabLayout.Tab tab) {
|
|
||||||
Fragment fragment = null;
|
|
||||||
if (mPager.getAdapter() != null)
|
|
||||||
fragment = (Fragment) mPager.getAdapter().instantiateItem(mPager, tab.getPosition());
|
|
||||||
switch (tab.getPosition()) {
|
|
||||||
case 0:
|
|
||||||
if (fragment != null) {
|
|
||||||
DisplayNotificationsFragment displayNotificationsFragment = ((DisplayNotificationsFragment) fragment);
|
|
||||||
displayNotificationsFragment.scrollToTop();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
if (fragment != null) {
|
|
||||||
DisplayAccountsFragment displayAccountsFragment = ((DisplayAccountsFragment) fragment);
|
|
||||||
displayAccountsFragment.scrollToTop();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
if (fragment != null) {
|
|
||||||
DisplayChannelsFragment displayChannelsFragment = ((DisplayChannelsFragment) fragment);
|
|
||||||
displayChannelsFragment.scrollToTop();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
PagerAdapter mPagerAdapter = new AccountsPagerAdapter(getSupportFragmentManager());
|
@Override
|
||||||
mPager.setAdapter(mPagerAdapter);
|
public void onPageSelected(int position) {
|
||||||
|
TabLayout.Tab tab = binding.accountTabLayout.getTabAt(position);
|
||||||
|
if (tab != null)
|
||||||
|
tab.select();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onPageScrollStateChanged(int state) {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
binding.accountTabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
|
||||||
|
@Override
|
||||||
|
public void onTabSelected(TabLayout.Tab tab) {
|
||||||
|
binding.accountViewpager.setCurrentItem(tab.getPosition());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onTabUnselected(TabLayout.Tab tab) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onTabReselected(TabLayout.Tab tab) {
|
||||||
|
Fragment fragment = null;
|
||||||
|
if (binding.accountViewpager.getAdapter() != null)
|
||||||
|
fragment = (Fragment) binding.accountViewpager.getAdapter().instantiateItem(binding.accountViewpager, tab.getPosition());
|
||||||
|
switch (tab.getPosition()) {
|
||||||
|
case 0:
|
||||||
|
if (fragment != null) {
|
||||||
|
DisplayNotificationsFragment displayNotificationsFragment = ((DisplayNotificationsFragment) fragment);
|
||||||
|
displayNotificationsFragment.scrollToTop();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
if (fragment != null) {
|
||||||
|
DisplayAccountsFragment displayAccountsFragment = ((DisplayAccountsFragment) fragment);
|
||||||
|
displayAccountsFragment.scrollToTop();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
if (fragment != null) {
|
||||||
|
DisplayChannelsFragment displayChannelsFragment = ((DisplayChannelsFragment) fragment);
|
||||||
|
displayChannelsFragment.scrollToTop();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
PagerAdapter mPagerAdapter = new AccountsPagerAdapter(getSupportFragmentManager());
|
||||||
|
binding.accountViewpager.setAdapter(mPagerAdapter);
|
||||||
|
} else {
|
||||||
|
binding.accountTabLayout.setVisibility(View.GONE);
|
||||||
|
binding.accountViewpager.setVisibility(View.GONE);
|
||||||
|
binding.editProfile.setVisibility(View.GONE);
|
||||||
|
binding.remoteAccount.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
||||||
|
binding.remoteAccount.setText(Html.fromHtml(getString(R.string.remote_account_from, account.getSoftware()), Html.FROM_HTML_MODE_LEGACY));
|
||||||
|
else
|
||||||
|
binding.remoteAccount.setText(Html.fromHtml(getString(R.string.remote_account_from, account.getSoftware())));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -210,42 +212,7 @@ public class AccountActivity extends AppCompatActivity {
|
|||||||
finish();
|
finish();
|
||||||
return true;
|
return true;
|
||||||
} else if (item.getItemId() == R.id.action_add_account) {
|
} else if (item.getItemId() == R.id.action_add_account) {
|
||||||
SQLiteDatabase db = Sqlite.getInstance(getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open();
|
SwitchAccountHelper.switchDialog(AccountActivity.this, true);
|
||||||
List<Account> accounts = new AccountDAO(AccountActivity.this, db).getAllAccount();
|
|
||||||
|
|
||||||
AlertDialog.Builder builderSingle = new AlertDialog.Builder(AccountActivity.this);
|
|
||||||
builderSingle.setTitle(getString(R.string.list_of_accounts));
|
|
||||||
if (accounts != null) {
|
|
||||||
final OwnAccountsAdapter accountsListAdapter = new OwnAccountsAdapter(AccountActivity.this, accounts);
|
|
||||||
final Account[] accountArray = new Account[accounts.size()];
|
|
||||||
int i = 0;
|
|
||||||
for (Account account : accounts) {
|
|
||||||
accountArray[i] = account;
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
builderSingle.setAdapter(accountsListAdapter, (dialog, which) -> {
|
|
||||||
final Account account = accountArray[which];
|
|
||||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
|
|
||||||
SharedPreferences.Editor editor = sharedpreferences.edit();
|
|
||||||
editor.putString(Helper.PREF_KEY_OAUTH_TOKEN, account.getToken());
|
|
||||||
editor.putString(Helper.PREF_INSTANCE, account.getHost());
|
|
||||||
editor.putString(Helper.PREF_KEY_ID, account.getId());
|
|
||||||
editor.putString(Helper.PREF_KEY_NAME, account.getUsername());
|
|
||||||
editor.apply();
|
|
||||||
dialog.dismiss();
|
|
||||||
Intent intent = new Intent(AccountActivity.this, MainActivity.class);
|
|
||||||
startActivity(intent);
|
|
||||||
finish();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
builderSingle.setNegativeButton(R.string.cancel, (dialog, which) -> dialog.dismiss());
|
|
||||||
builderSingle.setPositiveButton(R.string.add_account, (dialog, which) -> {
|
|
||||||
Intent intent = new Intent(AccountActivity.this, LoginActivity.class);
|
|
||||||
startActivity(intent);
|
|
||||||
finish();
|
|
||||||
});
|
|
||||||
|
|
||||||
builderSingle.show();
|
|
||||||
}
|
}
|
||||||
return super.onOptionsItemSelected(item);
|
return super.onOptionsItemSelected(item);
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,120 @@
|
|||||||
|
package app.fedilab.fedilabtube;
|
||||||
|
/* Copyright 2020 Thomas Schneider
|
||||||
|
*
|
||||||
|
* This file is a part of TubeLab
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
||||||
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* TubeLab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||||||
|
* Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
||||||
|
* see <http://www.gnu.org/licenses>. */
|
||||||
|
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.view.MenuItem;
|
||||||
|
import android.view.View;
|
||||||
|
import android.widget.RelativeLayout;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
import androidx.lifecycle.ViewModelProvider;
|
||||||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import app.fedilab.fedilabtube.client.data.PlaylistData.Playlist;
|
||||||
|
import app.fedilab.fedilabtube.client.data.VideoPlaylistData;
|
||||||
|
import app.fedilab.fedilabtube.drawer.PlaylistAdapter;
|
||||||
|
import app.fedilab.fedilabtube.viewmodel.PlaylistsVM;
|
||||||
|
|
||||||
|
|
||||||
|
public class AllLocalPlaylistsActivity extends AppCompatActivity implements PlaylistAdapter.AllPlaylistRemoved {
|
||||||
|
|
||||||
|
|
||||||
|
PlaylistAdapter playlistAdapter;
|
||||||
|
private RelativeLayout mainLoader;
|
||||||
|
private RelativeLayout textviewNoAction;
|
||||||
|
private List<Playlist> playlists;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
setContentView(R.layout.activity_all_playlist);
|
||||||
|
|
||||||
|
if (getSupportActionBar() != null)
|
||||||
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
|
setTitle(R.string.playlists);
|
||||||
|
|
||||||
|
|
||||||
|
textviewNoAction = findViewById(R.id.no_action);
|
||||||
|
mainLoader = findViewById(R.id.loader);
|
||||||
|
RelativeLayout nextElementLoader = findViewById(R.id.loading_next_items);
|
||||||
|
mainLoader.setVisibility(View.VISIBLE);
|
||||||
|
nextElementLoader.setVisibility(View.GONE);
|
||||||
|
|
||||||
|
PlaylistsVM viewModel = new ViewModelProvider(AllLocalPlaylistsActivity.this).get(PlaylistsVM.class);
|
||||||
|
viewModel.localePlaylist().observe(AllLocalPlaylistsActivity.this, this::manageVIewPlaylists);
|
||||||
|
|
||||||
|
FloatingActionButton add_new = findViewById(R.id.add_new);
|
||||||
|
add_new.setVisibility(View.GONE);
|
||||||
|
|
||||||
|
TextView no_action_text = findViewById(R.id.no_action_text);
|
||||||
|
no_action_text.setText(R.string.no_playlist);
|
||||||
|
playlists = new ArrayList<>();
|
||||||
|
RecyclerView lv_playlist = findViewById(R.id.lv_playlist);
|
||||||
|
playlistAdapter = new PlaylistAdapter(playlists, true);
|
||||||
|
playlistAdapter.allPlaylistRemoved = this;
|
||||||
|
lv_playlist.setAdapter(playlistAdapter);
|
||||||
|
LinearLayoutManager mLayoutManager = new LinearLayoutManager(AllLocalPlaylistsActivity.this);
|
||||||
|
lv_playlist.setLayoutManager(mLayoutManager);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroy() {
|
||||||
|
super.onDestroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
|
if (item.getItemId() == android.R.id.home) {
|
||||||
|
finish();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return super.onOptionsItemSelected(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void manageVIewPlaylists(List<VideoPlaylistData.VideoPlaylistExport> videoPlaylistExports) {
|
||||||
|
mainLoader.setVisibility(View.GONE);
|
||||||
|
if (videoPlaylistExports == null) {
|
||||||
|
textviewNoAction.setVisibility(View.VISIBLE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (videoPlaylistExports.size() > 0) {
|
||||||
|
for (VideoPlaylistData.VideoPlaylistExport videoPlaylistExport : videoPlaylistExports) {
|
||||||
|
playlists.add(videoPlaylistExport.getPlaylist());
|
||||||
|
}
|
||||||
|
playlistAdapter.notifyDataSetChanged();
|
||||||
|
textviewNoAction.setVisibility(View.GONE);
|
||||||
|
} else {
|
||||||
|
textviewNoAction.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onAllPlaylistRemoved() {
|
||||||
|
textviewNoAction.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -14,7 +14,12 @@ package app.fedilab.fedilabtube;
|
|||||||
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
||||||
* see <http://www.gnu.org/licenses>. */
|
* see <http://www.gnu.org/licenses>. */
|
||||||
|
|
||||||
|
import android.Manifest;
|
||||||
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.content.pm.PackageManager;
|
||||||
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Looper;
|
import android.os.Looper;
|
||||||
@ -27,18 +32,19 @@ import android.view.inputmethod.InputMethodManager;
|
|||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.EditText;
|
|
||||||
import android.widget.LinearLayout;
|
|
||||||
import android.widget.ListView;
|
|
||||||
import android.widget.RelativeLayout;
|
|
||||||
import android.widget.Spinner;
|
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import androidx.appcompat.app.AlertDialog;
|
import androidx.appcompat.app.AlertDialog;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
import androidx.core.app.ActivityCompat;
|
||||||
|
import androidx.core.content.ContextCompat;
|
||||||
import androidx.lifecycle.ViewModelProvider;
|
import androidx.lifecycle.ViewModelProvider;
|
||||||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
|
|
||||||
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
import com.bumptech.glide.Glide;
|
||||||
|
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
|
||||||
|
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
|
||||||
|
import com.bumptech.glide.request.RequestOptions;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -53,52 +59,53 @@ import app.fedilab.fedilabtube.client.data.ChannelData;
|
|||||||
import app.fedilab.fedilabtube.client.data.PlaylistData.Playlist;
|
import app.fedilab.fedilabtube.client.data.PlaylistData.Playlist;
|
||||||
import app.fedilab.fedilabtube.client.entities.Item;
|
import app.fedilab.fedilabtube.client.entities.Item;
|
||||||
import app.fedilab.fedilabtube.client.entities.PlaylistParams;
|
import app.fedilab.fedilabtube.client.entities.PlaylistParams;
|
||||||
|
import app.fedilab.fedilabtube.databinding.ActivityAllPlaylistBinding;
|
||||||
|
import app.fedilab.fedilabtube.databinding.AddPlaylistBinding;
|
||||||
import app.fedilab.fedilabtube.drawer.PlaylistAdapter;
|
import app.fedilab.fedilabtube.drawer.PlaylistAdapter;
|
||||||
|
import app.fedilab.fedilabtube.helper.Helper;
|
||||||
import app.fedilab.fedilabtube.viewmodel.ChannelsVM;
|
import app.fedilab.fedilabtube.viewmodel.ChannelsVM;
|
||||||
import app.fedilab.fedilabtube.viewmodel.PlaylistsVM;
|
import app.fedilab.fedilabtube.viewmodel.PlaylistsVM;
|
||||||
import es.dmoral.toasty.Toasty;
|
import es.dmoral.toasty.Toasty;
|
||||||
|
|
||||||
import static app.fedilab.fedilabtube.MainActivity.peertubeInformation;
|
import static app.fedilab.fedilabtube.PeertubeUploadActivity.MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE;
|
||||||
|
import static app.fedilab.fedilabtube.helper.Helper.peertubeInformation;
|
||||||
|
|
||||||
|
|
||||||
public class AllPlaylistsActivity extends AppCompatActivity {
|
public class AllPlaylistsActivity extends AppCompatActivity implements PlaylistAdapter.AllPlaylistRemoved {
|
||||||
|
|
||||||
|
|
||||||
|
private static final int PICK_AVATAR = 467;
|
||||||
PlaylistAdapter playlistAdapter;
|
PlaylistAdapter playlistAdapter;
|
||||||
private RelativeLayout mainLoader;
|
|
||||||
private RelativeLayout textviewNoAction;
|
|
||||||
private HashMap<Integer, String> privacyToSend;
|
private HashMap<Integer, String> privacyToSend;
|
||||||
private Spinner set_upload_channel;
|
|
||||||
private Spinner set_upload_privacy;
|
|
||||||
private String idChannel;
|
private String idChannel;
|
||||||
private List<Playlist> playlists;
|
private List<Playlist> playlists;
|
||||||
private Playlist playlistToEdit;
|
private Playlist playlistToEdit;
|
||||||
private List<ChannelData.Channel> myChannels;
|
private List<ChannelData.Channel> myChannels;
|
||||||
private ChannelData.Channel selectedChannel;
|
private ChannelData.Channel selectedChannel;
|
||||||
|
private AddPlaylistBinding bindingDialog;
|
||||||
|
private Uri inputData;
|
||||||
|
private ActivityAllPlaylistBinding binding;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
setContentView(R.layout.activity_all_playlist);
|
binding = ActivityAllPlaylistBinding.inflate(getLayoutInflater());
|
||||||
|
View viewRoot = binding.getRoot();
|
||||||
|
setContentView(viewRoot);
|
||||||
|
|
||||||
if (getSupportActionBar() != null)
|
if (getSupportActionBar() != null)
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
setTitle(R.string.playlists);
|
setTitle(R.string.playlists);
|
||||||
|
|
||||||
|
|
||||||
textviewNoAction = findViewById(R.id.no_action);
|
binding.loader.setVisibility(View.VISIBLE);
|
||||||
mainLoader = findViewById(R.id.loader);
|
binding.loadingNextItems.setVisibility(View.GONE);
|
||||||
RelativeLayout nextElementLoader = findViewById(R.id.loading_next_items);
|
|
||||||
mainLoader.setVisibility(View.VISIBLE);
|
|
||||||
nextElementLoader.setVisibility(View.GONE);
|
|
||||||
idChannel = null;
|
idChannel = null;
|
||||||
|
|
||||||
PlaylistsVM viewModel = new ViewModelProvider(AllPlaylistsActivity.this).get(PlaylistsVM.class);
|
PlaylistsVM viewModel = new ViewModelProvider(AllPlaylistsActivity.this).get(PlaylistsVM.class);
|
||||||
viewModel.manage(PlaylistsVM.action.GET_PLAYLISTS, null, null).observe(AllPlaylistsActivity.this, apiResponse -> manageVIewPlaylists(PlaylistsVM.action.GET_PLAYLISTS, apiResponse));
|
viewModel.manage(PlaylistsVM.action.GET_PLAYLISTS, null, null).observe(AllPlaylistsActivity.this, apiResponse -> manageVIewPlaylists(PlaylistsVM.action.GET_PLAYLISTS, apiResponse));
|
||||||
|
|
||||||
FloatingActionButton add_new = findViewById(R.id.add_new);
|
|
||||||
|
|
||||||
|
|
||||||
LinkedHashMap<Integer, String> privaciesInit = new LinkedHashMap<>(peertubeInformation.getPrivacies());
|
LinkedHashMap<Integer, String> privaciesInit = new LinkedHashMap<>(peertubeInformation.getPrivacies());
|
||||||
if (privaciesInit.size() > 0) {
|
if (privaciesInit.size() > 0) {
|
||||||
@ -109,11 +116,12 @@ public class AllPlaylistsActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
|
|
||||||
playlists = new ArrayList<>();
|
playlists = new ArrayList<>();
|
||||||
ListView lv_playlist = findViewById(R.id.lv_playlist);
|
playlistAdapter = new PlaylistAdapter(playlists, false);
|
||||||
playlistAdapter = new PlaylistAdapter(AllPlaylistsActivity.this, playlists, textviewNoAction);
|
playlistAdapter.allPlaylistRemoved = this;
|
||||||
lv_playlist.setAdapter(playlistAdapter);
|
binding.lvPlaylist.setAdapter(playlistAdapter);
|
||||||
|
LinearLayoutManager mLayoutManager = new LinearLayoutManager(AllPlaylistsActivity.this);
|
||||||
add_new.setOnClickListener(view -> manageAlert(null));
|
binding.lvPlaylist.setLayoutManager(mLayoutManager);
|
||||||
|
binding.addNew.setOnClickListener(view -> manageAlert(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -132,7 +140,7 @@ public class AllPlaylistsActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
|
|
||||||
public void manageVIewPlaylists(PlaylistsVM.action actionType, APIResponse apiResponse) {
|
public void manageVIewPlaylists(PlaylistsVM.action actionType, APIResponse apiResponse) {
|
||||||
mainLoader.setVisibility(View.GONE);
|
binding.loader.setVisibility(View.GONE);
|
||||||
if (apiResponse.getError() != null) {
|
if (apiResponse.getError() != null) {
|
||||||
Toasty.error(AllPlaylistsActivity.this, apiResponse.getError().getError(), Toast.LENGTH_LONG).show();
|
Toasty.error(AllPlaylistsActivity.this, apiResponse.getError().getError(), Toast.LENGTH_LONG).show();
|
||||||
return;
|
return;
|
||||||
@ -141,9 +149,9 @@ public class AllPlaylistsActivity extends AppCompatActivity {
|
|||||||
if (apiResponse.getPlaylists() != null && apiResponse.getPlaylists().size() > 0) {
|
if (apiResponse.getPlaylists() != null && apiResponse.getPlaylists().size() > 0) {
|
||||||
playlists.addAll(apiResponse.getPlaylists());
|
playlists.addAll(apiResponse.getPlaylists());
|
||||||
playlistAdapter.notifyDataSetChanged();
|
playlistAdapter.notifyDataSetChanged();
|
||||||
textviewNoAction.setVisibility(View.GONE);
|
binding.noAction.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
textviewNoAction.setVisibility(View.VISIBLE);
|
binding.noAction.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -152,37 +160,53 @@ public class AllPlaylistsActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
playlistToEdit = playlistParam;
|
playlistToEdit = playlistParam;
|
||||||
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(AllPlaylistsActivity.this);
|
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(AllPlaylistsActivity.this);
|
||||||
LayoutInflater inflater1 = getLayoutInflater();
|
bindingDialog = AddPlaylistBinding.inflate(LayoutInflater.from(AllPlaylistsActivity.this), null, false);
|
||||||
View dialogView = inflater1.inflate(R.layout.add_playlist, new LinearLayout(AllPlaylistsActivity.this), false);
|
dialogBuilder.setView(bindingDialog.getRoot());
|
||||||
dialogBuilder.setView(dialogView);
|
|
||||||
EditText display_name = dialogView.findViewById(R.id.display_name);
|
dialogBuilder.setView(bindingDialog.getRoot());
|
||||||
EditText description = dialogView.findViewById(R.id.description);
|
|
||||||
set_upload_channel = dialogView.findViewById(R.id.set_upload_channel);
|
|
||||||
set_upload_privacy = dialogView.findViewById(R.id.set_upload_privacy);
|
|
||||||
|
|
||||||
ChannelsVM viewModelC = new ViewModelProvider(AllPlaylistsActivity.this).get(ChannelsVM.class);
|
ChannelsVM viewModelC = new ViewModelProvider(AllPlaylistsActivity.this).get(ChannelsVM.class);
|
||||||
viewModelC.get(RetrofitPeertubeAPI.DataType.MY_CHANNELS, null).observe(AllPlaylistsActivity.this, this::manageVIewChannels);
|
viewModelC.get(RetrofitPeertubeAPI.DataType.MY_CHANNELS, null).observe(AllPlaylistsActivity.this, this::manageVIewChannels);
|
||||||
|
|
||||||
display_name.setFilters(new InputFilter[]{new InputFilter.LengthFilter(120)});
|
bindingDialog.displayName.setFilters(new InputFilter[]{new InputFilter.LengthFilter(120)});
|
||||||
description.setFilters(new InputFilter[]{new InputFilter.LengthFilter(1000)});
|
bindingDialog.description.setFilters(new InputFilter[]{new InputFilter.LengthFilter(1000)});
|
||||||
|
|
||||||
if (playlistToEdit != null) {
|
if (playlistToEdit != null) {
|
||||||
display_name.setText(playlistToEdit.getDisplayName());
|
bindingDialog.displayName.setText(playlistToEdit.getDisplayName());
|
||||||
description.setText(playlistToEdit.getDescription());
|
bindingDialog.description.setText(playlistToEdit.getDescription());
|
||||||
}
|
}
|
||||||
dialogBuilder.setPositiveButton(R.string.validate, null);
|
dialogBuilder.setPositiveButton(R.string.validate, null);
|
||||||
dialogBuilder.setNegativeButton(R.string.cancel, (dialog, id) -> dialog.dismiss());
|
dialogBuilder.setNegativeButton(R.string.cancel, (dialog, id) -> dialog.dismiss());
|
||||||
|
|
||||||
AlertDialog alertDialog = dialogBuilder.create();
|
AlertDialog alertDialog = dialogBuilder.create();
|
||||||
|
|
||||||
|
bindingDialog.selectFile.setOnClickListener(v -> {
|
||||||
|
if (ContextCompat.checkSelfPermission(AllPlaylistsActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE) !=
|
||||||
|
PackageManager.PERMISSION_GRANTED) {
|
||||||
|
ActivityCompat.requestPermissions(AllPlaylistsActivity.this,
|
||||||
|
new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},
|
||||||
|
MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
|
||||||
|
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
||||||
|
intent.setType("*/*");
|
||||||
|
String[] mimetypes = {"image/*"};
|
||||||
|
intent.putExtra(Intent.EXTRA_MIME_TYPES, mimetypes);
|
||||||
|
startActivityForResult(intent, PICK_AVATAR);
|
||||||
|
});
|
||||||
|
Helper.loadGiF(AllPlaylistsActivity.this, playlistParam != null ? playlistParam.getThumbnailPath() : null, bindingDialog.profilePicture);
|
||||||
alertDialog.setOnShowListener(dialogInterface -> {
|
alertDialog.setOnShowListener(dialogInterface -> {
|
||||||
|
|
||||||
Button button = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE);
|
Button button = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE);
|
||||||
button.setOnClickListener(view -> {
|
button.setOnClickListener(view -> {
|
||||||
if (display_name.getText() != null && display_name.getText().toString().trim().length() > 0) {
|
if (bindingDialog.displayName.getText() != null && bindingDialog.displayName.getText().toString().trim().length() > 0) {
|
||||||
PlaylistParams playlistElement = new PlaylistParams();
|
PlaylistParams playlistElement = new PlaylistParams();
|
||||||
playlistElement.setDisplayName(display_name.getText().toString().trim());
|
playlistElement.setDisplayName(bindingDialog.displayName.getText().toString().trim());
|
||||||
if (description.getText() != null && description.getText().toString().trim().length() > 0) {
|
if (bindingDialog.description.getText() != null && bindingDialog.description.getText().toString().trim().length() > 0) {
|
||||||
playlistElement.setDescription(description.getText().toString().trim());
|
playlistElement.setDescription(bindingDialog.description.getText().toString().trim());
|
||||||
}
|
}
|
||||||
playlistElement.setVideoChannelId(idChannel);
|
playlistElement.setVideoChannelId(idChannel);
|
||||||
String label;
|
String label;
|
||||||
@ -200,11 +224,11 @@ public class AllPlaylistsActivity extends AppCompatActivity {
|
|||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
String playlistId;
|
String playlistId;
|
||||||
if (playlistToEdit == null) {
|
if (playlistToEdit == null) {
|
||||||
APIResponse apiResponse = new RetrofitPeertubeAPI(AllPlaylistsActivity.this).createOrUpdatePlaylist(PlaylistsVM.action.CREATE_PLAYLIST, null, playlistElement, null);
|
APIResponse apiResponse = new RetrofitPeertubeAPI(AllPlaylistsActivity.this).createOrUpdatePlaylist(PlaylistsVM.action.CREATE_PLAYLIST, null, playlistElement, inputData);
|
||||||
playlistId = apiResponse.getActionReturn();
|
playlistId = apiResponse.getActionReturn();
|
||||||
} else {
|
} else {
|
||||||
playlistId = playlistToEdit.getId();
|
playlistId = playlistToEdit.getId();
|
||||||
new RetrofitPeertubeAPI(AllPlaylistsActivity.this).createOrUpdatePlaylist(PlaylistsVM.action.UPDATE_PLAYLIST, playlistId, playlistElement, null);
|
new RetrofitPeertubeAPI(AllPlaylistsActivity.this).createOrUpdatePlaylist(PlaylistsVM.action.UPDATE_PLAYLIST, playlistId, playlistElement, inputData);
|
||||||
}
|
}
|
||||||
Handler mainHandler = new Handler(Looper.getMainLooper());
|
Handler mainHandler = new Handler(Looper.getMainLooper());
|
||||||
Runnable myRunnable = () -> {
|
Runnable myRunnable = () -> {
|
||||||
@ -244,7 +268,7 @@ public class AllPlaylistsActivity extends AppCompatActivity {
|
|||||||
//Hide keyboard
|
//Hide keyboard
|
||||||
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
|
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
assert imm != null;
|
assert imm != null;
|
||||||
imm.hideSoftInputFromWindow(display_name.getWindowToken(), 0);
|
imm.hideSoftInputFromWindow(bindingDialog.displayName.getWindowToken(), 0);
|
||||||
});
|
});
|
||||||
if (alertDialog.getWindow() != null)
|
if (alertDialog.getWindow() != null)
|
||||||
alertDialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
alertDialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
|
||||||
@ -252,6 +276,24 @@ public class AllPlaylistsActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||||
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
|
if (requestCode == PICK_AVATAR && resultCode == Activity.RESULT_OK) {
|
||||||
|
if (data == null || data.getData() == null) {
|
||||||
|
Toasty.error(AllPlaylistsActivity.this, getString(R.string.toot_select_image_error), Toast.LENGTH_LONG).show();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
inputData = data.getData();
|
||||||
|
Glide.with(AllPlaylistsActivity.this)
|
||||||
|
.load(inputData)
|
||||||
|
.thumbnail(0.1f)
|
||||||
|
.apply(new RequestOptions().transform(new CenterCrop(), new RoundedCorners(10)))
|
||||||
|
.into(bindingDialog.profilePicture);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void manageVIewChannels(APIResponse apiResponse) {
|
public void manageVIewChannels(APIResponse apiResponse) {
|
||||||
if (apiResponse.getError() != null || apiResponse.getChannels() == null || apiResponse.getChannels().size() == 0) {
|
if (apiResponse.getError() != null || apiResponse.getChannels() == null || apiResponse.getChannels().size() == 0) {
|
||||||
if (apiResponse.getError() != null && apiResponse.getError().getError() != null)
|
if (apiResponse.getError() != null && apiResponse.getError().getError() != null)
|
||||||
@ -277,7 +319,7 @@ public class AllPlaylistsActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
ArrayAdapter<String> adapterChannel = new ArrayAdapter<>(AllPlaylistsActivity.this,
|
ArrayAdapter<String> adapterChannel = new ArrayAdapter<>(AllPlaylistsActivity.this,
|
||||||
android.R.layout.simple_spinner_dropdown_item, channelName);
|
android.R.layout.simple_spinner_dropdown_item, channelName);
|
||||||
set_upload_channel.setAdapter(adapterChannel);
|
bindingDialog.setUploadChannel.setAdapter(adapterChannel);
|
||||||
|
|
||||||
|
|
||||||
LinkedHashMap<String, String> translations = null;
|
LinkedHashMap<String, String> translations = null;
|
||||||
@ -305,19 +347,19 @@ public class AllPlaylistsActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
ArrayAdapter<String> adapterPrivacies = new ArrayAdapter<>(AllPlaylistsActivity.this,
|
ArrayAdapter<String> adapterPrivacies = new ArrayAdapter<>(AllPlaylistsActivity.this,
|
||||||
android.R.layout.simple_spinner_dropdown_item, privaciesA);
|
android.R.layout.simple_spinner_dropdown_item, privaciesA);
|
||||||
set_upload_privacy.setAdapter(adapterPrivacies);
|
bindingDialog.setUploadPrivacy.setAdapter(adapterPrivacies);
|
||||||
|
|
||||||
if (playlistToEdit != null) {
|
if (playlistToEdit != null) {
|
||||||
Item privacy = playlistToEdit.getPrivacy();
|
Item privacy = playlistToEdit.getPrivacy();
|
||||||
if (privacy.getId() > 0) {
|
if (privacy.getId() > 0) {
|
||||||
set_upload_privacy.setSelection(privacy.getId() - 1);
|
bindingDialog.setUploadPrivacy.setSelection(privacy.getId() - 1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
set_upload_privacy.setSelection(2);
|
bindingDialog.setUploadPrivacy.setSelection(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Manage privacies
|
//Manage privacies
|
||||||
set_upload_privacy.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
bindingDialog.setUploadPrivacy.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||||
LinkedHashMap<Integer, String> privaciesCheck = new LinkedHashMap<>(peertubeInformation.getPrivacies());
|
LinkedHashMap<Integer, String> privaciesCheck = new LinkedHashMap<>(peertubeInformation.getPrivacies());
|
||||||
@ -345,12 +387,12 @@ public class AllPlaylistsActivity extends AppCompatActivity {
|
|||||||
Item privacy = playlistToEdit.getPrivacy();
|
Item privacy = playlistToEdit.getPrivacy();
|
||||||
|
|
||||||
if (privacy.getId() > 0) {
|
if (privacy.getId() > 0) {
|
||||||
set_upload_privacy.setSelection(privacy.getId() - 1);
|
bindingDialog.setUploadPrivacy.setSelection(privacy.getId() - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Manage languages
|
//Manage languages
|
||||||
set_upload_channel.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
bindingDialog.setUploadChannel.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||||
idChannel = channelId[position];
|
idChannel = channelId[position];
|
||||||
@ -375,7 +417,12 @@ public class AllPlaylistsActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
k++;
|
k++;
|
||||||
}
|
}
|
||||||
set_upload_channel.setSelection(position);
|
bindingDialog.setUploadChannel.setSelection(position);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onAllPlaylistRemoved() {
|
||||||
|
binding.noAction.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,22 +14,30 @@ package app.fedilab.fedilabtube;
|
|||||||
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
||||||
* see <http://www.gnu.org/licenses>. */
|
* see <http://www.gnu.org/licenses>. */
|
||||||
|
|
||||||
|
import android.app.NotificationChannel;
|
||||||
|
import android.app.NotificationManager;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
|
import android.os.Build;
|
||||||
|
|
||||||
import androidx.multidex.MultiDex;
|
import androidx.multidex.MultiDex;
|
||||||
import androidx.multidex.MultiDexApplication;
|
import androidx.multidex.MultiDexApplication;
|
||||||
import androidx.work.Configuration;
|
import androidx.work.Configuration;
|
||||||
import androidx.work.WorkManager;
|
import androidx.work.WorkManager;
|
||||||
|
|
||||||
import net.gotev.uploadservice.UploadService;
|
import net.gotev.uploadservice.UploadServiceConfig;
|
||||||
|
import net.gotev.uploadservice.observer.request.GlobalRequestObserver;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
import app.fedilab.fedilabtube.helper.Helper;
|
import app.fedilab.fedilabtube.helper.Helper;
|
||||||
import app.fedilab.fedilabtube.helper.ThemeHelper;
|
import app.fedilab.fedilabtube.helper.ThemeHelper;
|
||||||
|
import app.fedilab.fedilabtube.services.GlobalUploadObserver;
|
||||||
import app.fedilab.fedilabtube.worker.WorkHelper;
|
import app.fedilab.fedilabtube.worker.WorkHelper;
|
||||||
|
|
||||||
public class FedilabTube extends MultiDexApplication {
|
public class BaseFedilabTube extends MultiDexApplication {
|
||||||
|
|
||||||
|
static String UPLOAD_CHANNEL_ID = "upload_info_peertube";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
@ -40,10 +48,14 @@ public class FedilabTube extends MultiDexApplication {
|
|||||||
Configuration myConfig = new Configuration.Builder()
|
Configuration myConfig = new Configuration.Builder()
|
||||||
.setMinimumLoggingLevel(android.util.Log.INFO)
|
.setMinimumLoggingLevel(android.util.Log.INFO)
|
||||||
.build();
|
.build();
|
||||||
WorkManager.initialize(FedilabTube.this, myConfig);
|
WorkManager.initialize(BaseFedilabTube.this, myConfig);
|
||||||
if( interval >= 15 ) {
|
if (interval >= 15) {
|
||||||
WorkHelper.fetchNotifications(this, interval);
|
WorkHelper.fetchNotifications(this, interval);
|
||||||
}
|
}
|
||||||
|
createNotificationChannel();
|
||||||
|
UploadServiceConfig.initialize(BaseFedilabTube.this, UPLOAD_CHANNEL_ID, true);
|
||||||
|
|
||||||
|
new GlobalRequestObserver(this, new GlobalUploadObserver());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -51,9 +63,7 @@ public class FedilabTube extends MultiDexApplication {
|
|||||||
protected void attachBaseContext(Context base) {
|
protected void attachBaseContext(Context base) {
|
||||||
super.attachBaseContext(base);
|
super.attachBaseContext(base);
|
||||||
|
|
||||||
MultiDex.install(FedilabTube.this);
|
MultiDex.install(BaseFedilabTube.this);
|
||||||
|
|
||||||
UploadService.NAMESPACE = BuildConfig.APPLICATION_ID;
|
|
||||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
|
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
|
||||||
int themePref = sharedpreferences.getInt(Helper.SET_THEME, Helper.DEFAULT_MODE);
|
int themePref = sharedpreferences.getInt(Helper.SET_THEME, Helper.DEFAULT_MODE);
|
||||||
ThemeHelper.switchTo(themePref);
|
ThemeHelper.switchTo(themePref);
|
||||||
@ -61,5 +71,13 @@ public class FedilabTube extends MultiDexApplication {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void createNotificationChannel() {
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
|
NotificationChannel channel = new NotificationChannel(UPLOAD_CHANNEL_ID,
|
||||||
|
getString(R.string.notification_channel_name),
|
||||||
|
NotificationManager.IMPORTANCE_LOW);
|
||||||
|
channel.setSound(null, null);
|
||||||
|
((NotificationManager) Objects.requireNonNull(getSystemService(Context.NOTIFICATION_SERVICE))).createNotificationChannel(channel);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@ -48,7 +48,7 @@ import app.fedilab.fedilabtube.helper.RoundedBackgroundSpan;
|
|||||||
import app.fedilab.fedilabtube.viewmodel.InstancesVM;
|
import app.fedilab.fedilabtube.viewmodel.InstancesVM;
|
||||||
import es.dmoral.toasty.Toasty;
|
import es.dmoral.toasty.Toasty;
|
||||||
|
|
||||||
import static app.fedilab.fedilabtube.MainActivity.peertubeInformation;
|
import static app.fedilab.fedilabtube.helper.Helper.peertubeInformation;
|
||||||
|
|
||||||
|
|
||||||
public class InstancePickerActivity extends AppCompatActivity {
|
public class InstancePickerActivity extends AppCompatActivity {
|
||||||
|
@ -0,0 +1,79 @@
|
|||||||
|
package app.fedilab.fedilabtube;
|
||||||
|
/* Copyright 2020 Thomas Schneider
|
||||||
|
*
|
||||||
|
* This file is a part of TubeLab
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
||||||
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* TubeLab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||||||
|
* Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
||||||
|
* see <http://www.gnu.org/licenses>. */
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.view.MenuItem;
|
||||||
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
import androidx.fragment.app.FragmentTransaction;
|
||||||
|
|
||||||
|
import app.fedilab.fedilabtube.client.data.PlaylistData;
|
||||||
|
import app.fedilab.fedilabtube.fragment.DisplayVideosFragment;
|
||||||
|
import app.fedilab.fedilabtube.helper.Helper;
|
||||||
|
import app.fedilab.fedilabtube.viewmodel.TimelineVM;
|
||||||
|
import es.dmoral.toasty.Toasty;
|
||||||
|
|
||||||
|
|
||||||
|
public class LocalPlaylistsActivity extends AppCompatActivity {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
if (getSupportActionBar() != null)
|
||||||
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
|
|
||||||
|
|
||||||
|
setContentView(R.layout.activity_playlists);
|
||||||
|
|
||||||
|
|
||||||
|
PlaylistData.Playlist playlist;
|
||||||
|
Bundle b = getIntent().getExtras();
|
||||||
|
if (b != null) {
|
||||||
|
playlist = b.getParcelable("playlist");
|
||||||
|
if (playlist == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Toasty.error(LocalPlaylistsActivity.this, getString(R.string.toast_error), Toast.LENGTH_LONG).show();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
setTitle(playlist.getDisplayName());
|
||||||
|
if (savedInstanceState == null) {
|
||||||
|
DisplayVideosFragment displayVideosFragment = new DisplayVideosFragment();
|
||||||
|
Bundle bundle = new Bundle();
|
||||||
|
bundle.putSerializable(Helper.TIMELINE_TYPE, TimelineVM.TimelineType.VIDEOS_IN_LOCAL_PLAYLIST);
|
||||||
|
bundle.putSerializable("playlistId", playlist.getUuid());
|
||||||
|
displayVideosFragment.setArguments(bundle);
|
||||||
|
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
||||||
|
ft.add(R.id.nav_host_fragment, displayVideosFragment).commit();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
|
if (item.getItemId() == android.R.id.home) {
|
||||||
|
finish();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return super.onOptionsItemSelected(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -26,6 +26,8 @@ import android.util.Patterns;
|
|||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
import android.widget.AdapterView;
|
||||||
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
@ -35,14 +37,21 @@ import androidx.core.content.ContextCompat;
|
|||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Iterator;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import app.fedilab.fedilabtube.client.mastodon.RetrofitMastodonAPI;
|
||||||
import app.fedilab.fedilabtube.client.RetrofitPeertubeAPI;
|
import app.fedilab.fedilabtube.client.RetrofitPeertubeAPI;
|
||||||
import app.fedilab.fedilabtube.client.entities.Error;
|
import app.fedilab.fedilabtube.client.entities.Error;
|
||||||
import app.fedilab.fedilabtube.client.entities.Oauth;
|
import app.fedilab.fedilabtube.client.entities.Oauth;
|
||||||
import app.fedilab.fedilabtube.client.entities.OauthParams;
|
import app.fedilab.fedilabtube.client.entities.OauthParams;
|
||||||
import app.fedilab.fedilabtube.client.entities.Token;
|
import app.fedilab.fedilabtube.client.entities.Token;
|
||||||
|
import app.fedilab.fedilabtube.client.entities.WellKnownNodeinfo;
|
||||||
import app.fedilab.fedilabtube.databinding.ActivityLoginBinding;
|
import app.fedilab.fedilabtube.databinding.ActivityLoginBinding;
|
||||||
import app.fedilab.fedilabtube.helper.Helper;
|
import app.fedilab.fedilabtube.helper.Helper;
|
||||||
|
import app.fedilab.fedilabtube.helper.HelperAcadInstance;
|
||||||
|
import app.fedilab.fedilabtube.helper.HelperInstance;
|
||||||
import es.dmoral.toasty.Toasty;
|
import es.dmoral.toasty.Toasty;
|
||||||
|
|
||||||
import static app.fedilab.fedilabtube.client.RetrofitPeertubeAPI.updateCredential;
|
import static app.fedilab.fedilabtube.client.RetrofitPeertubeAPI.updateCredential;
|
||||||
@ -54,7 +63,9 @@ public class LoginActivity extends AppCompatActivity {
|
|||||||
private static String client_id;
|
private static String client_id;
|
||||||
private static String client_secret;
|
private static String client_secret;
|
||||||
private ActivityLoginBinding binding;
|
private ActivityLoginBinding binding;
|
||||||
|
private String acadInstance;
|
||||||
|
|
||||||
|
@SuppressLint("SetTextI18n")
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
@ -66,7 +77,13 @@ public class LoginActivity extends AppCompatActivity {
|
|||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
|
|
||||||
|
|
||||||
SpannableString content_create = new SpannableString(getString(R.string.join_peertube));
|
SpannableString content_create;
|
||||||
|
if (BuildConfig.FLAVOR.compareTo("queermotion") == 0) {
|
||||||
|
content_create = new SpannableString(getString(R.string.register_account));
|
||||||
|
} else {
|
||||||
|
content_create = new SpannableString(getString(R.string.join_peertube));
|
||||||
|
}
|
||||||
|
|
||||||
content_create.setSpan(new UnderlineSpan(), 0, content_create.length(), 0);
|
content_create.setSpan(new UnderlineSpan(), 0, content_create.length(), 0);
|
||||||
content_create.setSpan(new ForegroundColorSpan(ContextCompat.getColor(LoginActivity.this, Helper.getColorAccent())), 0, content_create.length(),
|
content_create.setSpan(new ForegroundColorSpan(ContextCompat.getColor(LoginActivity.this, Helper.getColorAccent())), 0, content_create.length(),
|
||||||
Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
||||||
@ -80,10 +97,12 @@ public class LoginActivity extends AppCompatActivity {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
if (BuildConfig.full_instances) {
|
if (BuildConfig.full_instances && BuildConfig.instance_switcher) {
|
||||||
binding.loginInstanceContainer.setVisibility(View.VISIBLE);
|
binding.loginInstanceContainer.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
if (BuildConfig.FLAVOR.compareTo("queermotion") == 0) {
|
||||||
|
binding.loginInstance.setText("queermotion.org");
|
||||||
|
}
|
||||||
|
|
||||||
if (Helper.isTablet(LoginActivity.this)) {
|
if (Helper.isTablet(LoginActivity.this)) {
|
||||||
|
|
||||||
@ -100,68 +119,84 @@ public class LoginActivity extends AppCompatActivity {
|
|||||||
binding.loginPasswdContainer.setLayoutParams(layoutParamsP);
|
binding.loginPasswdContainer.setLayoutParams(layoutParamsP);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!BuildConfig.full_instances) {
|
if (!BuildConfig.full_instances) {
|
||||||
binding.loginUid.setOnFocusChangeListener((v, hasFocus) -> {
|
binding.loginUid.setOnFocusChangeListener((v, hasFocus) -> {
|
||||||
if (!hasFocus) {
|
if (!hasFocus) {
|
||||||
if (binding.loginUid.getText() != null && android.util.Patterns.EMAIL_ADDRESS.matcher(binding.loginUid.getText().toString().trim()).matches()) {
|
if (binding.loginUid.getText() != null && android.util.Patterns.EMAIL_ADDRESS.matcher(binding.loginUid.getText().toString().trim()).matches()) {
|
||||||
String[] emailArray = binding.loginUid.getText().toString().split("@");
|
String[] emailArray = binding.loginUid.getText().toString().split("@");
|
||||||
if (emailArray.length > 1 && Arrays.asList(Helper.openid).contains(emailArray[1])) {
|
if (emailArray.length > 1) {
|
||||||
binding.loginButton.callOnClick();
|
binding.loginButton.callOnClick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
binding.loginUidContainer.setVisibility(View.GONE);
|
||||||
|
binding.loginPasswdContainer.setVisibility(View.GONE);
|
||||||
|
binding.loginInstanceContainer.setVisibility(View.GONE);
|
||||||
|
binding.createAnAccountPeertube.setVisibility(View.GONE);
|
||||||
|
binding.instancePickerTitle.setVisibility(View.VISIBLE);
|
||||||
|
binding.instancePicker.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
|
HashMap<String, String> instancesMap = new HashMap<>(HelperAcadInstance.instances_themes);
|
||||||
|
Iterator<Map.Entry<String, String>> it = instancesMap.entrySet().iterator();
|
||||||
|
String[] academiesKey = new String[HelperAcadInstance.instances_themes.size()];
|
||||||
|
String[] academiesValue = new String[HelperAcadInstance.instances_themes.size()];
|
||||||
|
String acad = HelperInstance.getLiveInstance(LoginActivity.this);
|
||||||
|
int position = 0;
|
||||||
|
int i = 0;
|
||||||
|
while (it.hasNext()) {
|
||||||
|
Map.Entry<String, String> pair = it.next();
|
||||||
|
academiesKey[i] = pair.getKey();
|
||||||
|
academiesValue[i] = pair.getValue();
|
||||||
|
if (pair.getValue().compareTo(acad) == 0) {
|
||||||
|
position = i;
|
||||||
|
}
|
||||||
|
it.remove();
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
binding.instancePicker.setSelection(position, true);
|
||||||
|
ArrayAdapter<String> adapterChannel = new ArrayAdapter<>(LoginActivity.this,
|
||||||
|
android.R.layout.simple_spinner_dropdown_item, academiesKey);
|
||||||
|
binding.instancePicker.setAdapter(adapterChannel);
|
||||||
|
binding.instancePicker.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
||||||
|
@Override
|
||||||
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||||
|
acadInstance = academiesValue[position];
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onNothingSelected(AdapterView<?> parent) {
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (BuildConfig.allow_remote_connections) {
|
||||||
|
binding.loginInstance.setOnFocusChangeListener((v, hasFocus) -> {
|
||||||
|
if (!hasFocus) {
|
||||||
|
if (binding.loginInstance.getText() != null) {
|
||||||
|
new Thread(() -> {
|
||||||
|
String testInstance = binding.loginInstance.getText().toString();
|
||||||
|
WellKnownNodeinfo.NodeInfo instanceNodeInfo = null;
|
||||||
|
if (BuildConfig.allow_remote_connections) {
|
||||||
|
instanceNodeInfo = new RetrofitPeertubeAPI(LoginActivity.this, testInstance, null).getNodeInfo();
|
||||||
|
}
|
||||||
|
if (instanceNodeInfo != null &&
|
||||||
|
(instanceNodeInfo.getSoftware().getName().toUpperCase().trim().compareTo("MASTODON") == 0 ||
|
||||||
|
instanceNodeInfo.getSoftware().getName().toUpperCase().trim().compareTo("PLEROMA") == 0)
|
||||||
|
) {
|
||||||
|
connectToFediverse(testInstance, instanceNodeInfo);
|
||||||
|
}
|
||||||
|
}).start();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
binding.loginButton.setOnClickListener(v -> {
|
binding.loginButton.setOnClickListener(v -> {
|
||||||
|
|
||||||
if (binding.loginUid.getText() != null && binding.loginUid.getText().toString().contains("@") && !android.util.Patterns.EMAIL_ADDRESS.matcher(binding.loginUid.getText().toString().trim()).matches()) {
|
|
||||||
Toasty.error(LoginActivity.this, getString(R.string.email_error)).show();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
binding.loginButton.setEnabled(false);
|
|
||||||
String instance, host;
|
|
||||||
if (!BuildConfig.full_instances) {
|
if (!BuildConfig.full_instances) {
|
||||||
String[] emailArray = binding.loginUid.getText().toString().split("@");
|
|
||||||
if (emailArray.length > 1 && !Arrays.asList(Helper.valideEmails).contains(emailArray[1])) {
|
|
||||||
Toasty.error(LoginActivity.this, getString(R.string.email_error_domain, emailArray[1])).show();
|
|
||||||
binding.loginButton.setEnabled(true);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
host = emailArray[1];
|
|
||||||
instance = Helper.getPeertubeUrl(host);
|
|
||||||
} else {
|
|
||||||
if (binding.loginInstance.getText() == null || binding.loginInstance.getText().toString().trim().length() == 0) {
|
|
||||||
Toasty.error(LoginActivity.this, getString(R.string.not_valide_instance)).show();
|
|
||||||
binding.loginButton.setEnabled(true);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
instance = host = binding.loginInstance.getText().toString().trim().toLowerCase();
|
|
||||||
}
|
|
||||||
|
|
||||||
if( instance.startsWith("http")) {
|
|
||||||
try {
|
|
||||||
URL url = new URL(instance);
|
|
||||||
instance = url.getHost();
|
|
||||||
host = instance;
|
|
||||||
} catch (MalformedURLException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!Patterns.WEB_URL.matcher("https://"+instance).matches()) {
|
|
||||||
Toasty.error(LoginActivity.this, getString(R.string.not_valide_instance)).show();
|
|
||||||
binding.loginButton.setEnabled(true);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
String finalInstance = instance;
|
|
||||||
String finalHost = host;
|
|
||||||
if (Arrays.asList(Helper.openid).contains(host) && !BuildConfig.full_instances) {
|
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
try {
|
try {
|
||||||
Oauth oauth = new RetrofitPeertubeAPI(LoginActivity.this, finalInstance, null).oauthClient(null, null, null, null);
|
Oauth oauth = new RetrofitPeertubeAPI(LoginActivity.this, acadInstance, null).oauthClient(null, null, null, null);
|
||||||
if (oauth == null) {
|
if (oauth == null) {
|
||||||
runOnUiThread(() -> {
|
runOnUiThread(() -> {
|
||||||
binding.loginButton.setEnabled(true);
|
binding.loginButton.setEnabled(true);
|
||||||
@ -178,7 +213,7 @@ public class LoginActivity extends AppCompatActivity {
|
|||||||
editor.apply();
|
editor.apply();
|
||||||
Intent intent = new Intent(LoginActivity.this, WebviewConnectActivity.class);
|
Intent intent = new Intent(LoginActivity.this, WebviewConnectActivity.class);
|
||||||
Bundle b = new Bundle();
|
Bundle b = new Bundle();
|
||||||
b.putString("url", "https://" + Helper.getPeertubeUrl(finalHost) + "/plugins/auth-openid-connect/0.0.1/auth/openid-connect");
|
b.putString("url", "https://" + acadInstance + "/plugins/auth-openid-connect/0.0.1/auth/openid-connect");
|
||||||
intent.putExtras(b);
|
intent.putExtras(b);
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
@ -192,64 +227,168 @@ public class LoginActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
}).start();
|
}).start();
|
||||||
} else {
|
} else {
|
||||||
new Thread(() -> {
|
if (binding.loginUid.getText() != null && binding.loginUid.getText().toString().contains("@") && !android.util.Patterns.EMAIL_ADDRESS.matcher(binding.loginUid.getText().toString().trim()).matches()) {
|
||||||
Oauth oauth = new RetrofitPeertubeAPI(LoginActivity.this, finalInstance, null).oauthClient(Helper.CLIENT_NAME_VALUE, Helper.WEBSITE_VALUE, Helper.OAUTH_SCOPES_PEERTUBE, Helper.WEBSITE_VALUE);
|
Toasty.error(LoginActivity.this, getString(R.string.email_error)).show();
|
||||||
if (oauth == null) {
|
return;
|
||||||
runOnUiThread(() -> {
|
}
|
||||||
binding.loginButton.setEnabled(true);
|
binding.loginButton.setEnabled(false);
|
||||||
Toasty.error(LoginActivity.this, getString(R.string.client_error), Toast.LENGTH_LONG).show();
|
String instance;
|
||||||
});
|
if (!BuildConfig.full_instances) {
|
||||||
|
String[] emailArray = binding.loginUid.getText().toString().split("@");
|
||||||
|
if (emailArray.length > 1 && !Arrays.asList(HelperAcadInstance.valideEmails).contains(emailArray[1])) {
|
||||||
|
Toasty.error(LoginActivity.this, getString(R.string.email_error_domain, emailArray[1])).show();
|
||||||
|
binding.loginButton.setEnabled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
client_id = oauth.getClient_id();
|
instance = HelperInstance.getLiveInstance(LoginActivity.this);
|
||||||
client_secret = oauth.getClient_secret();
|
} else {
|
||||||
|
if (binding.loginInstance.getText() == null || binding.loginInstance.getText().toString().trim().length() == 0) {
|
||||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
|
Toasty.error(LoginActivity.this, getString(R.string.not_valide_instance)).show();
|
||||||
SharedPreferences.Editor editor = sharedpreferences.edit();
|
binding.loginButton.setEnabled(true);
|
||||||
editor.putString(Helper.CLIENT_ID, client_id);
|
return;
|
||||||
editor.putString(Helper.CLIENT_SECRET, client_secret);
|
|
||||||
editor.apply();
|
|
||||||
OauthParams oauthParams = new OauthParams();
|
|
||||||
oauthParams.setClient_id(client_id);
|
|
||||||
oauthParams.setClient_secret(client_secret);
|
|
||||||
oauthParams.setGrant_type("password");
|
|
||||||
oauthParams.setScope("user");
|
|
||||||
oauthParams.setUsername(binding.loginUid.getText().toString().trim());
|
|
||||||
if( binding.loginPasswd.getText() != null) {
|
|
||||||
oauthParams.setPassword(binding.loginPasswd.getText().toString());
|
|
||||||
}
|
}
|
||||||
|
instance = binding.loginInstance.getText().toString().trim().toLowerCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (instance.startsWith("http")) {
|
||||||
try {
|
try {
|
||||||
Token token = new RetrofitPeertubeAPI(LoginActivity.this, finalInstance, null).manageToken(oauthParams);
|
URL url = new URL(instance);
|
||||||
proceedLogin(token, finalHost);
|
instance = url.getHost();
|
||||||
} catch (final Exception | Error e) {
|
} catch (MalformedURLException e) {
|
||||||
oauthParams.setUsername(binding.loginUid.getText().toString().toLowerCase().trim());
|
e.printStackTrace();
|
||||||
try {
|
|
||||||
Token token = new RetrofitPeertubeAPI(LoginActivity.this, finalInstance, null).manageToken(oauthParams);
|
|
||||||
proceedLogin(token, finalHost);
|
|
||||||
} catch (Error error) {
|
|
||||||
Error.displayError(LoginActivity.this, error);
|
|
||||||
error.printStackTrace();
|
|
||||||
runOnUiThread(() -> binding.loginButton.setEnabled(true));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}).start();
|
} else if (instance.endsWith("/")) {
|
||||||
|
try {
|
||||||
|
URL url = new URL("https://" + instance);
|
||||||
|
instance = url.getHost();
|
||||||
|
} catch (MalformedURLException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!Patterns.WEB_URL.matcher("https://" + instance).matches()) {
|
||||||
|
Toasty.error(LoginActivity.this, getString(R.string.not_valide_instance)).show();
|
||||||
|
binding.loginButton.setEnabled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
String finalInstance = instance;
|
||||||
|
if (BuildConfig.full_instances) {
|
||||||
|
new Thread(() -> {
|
||||||
|
WellKnownNodeinfo.NodeInfo instanceNodeInfo = null;
|
||||||
|
if (BuildConfig.allow_remote_connections) {
|
||||||
|
instanceNodeInfo = new RetrofitPeertubeAPI(LoginActivity.this, finalInstance, null).getNodeInfo();
|
||||||
|
}
|
||||||
|
connectToFediverse(finalInstance, instanceNodeInfo);
|
||||||
|
}).start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Oauth process for Peertube
|
||||||
|
*
|
||||||
|
* @param finalInstance String
|
||||||
|
*/
|
||||||
|
private void connectToFediverse(String finalInstance, WellKnownNodeinfo.NodeInfo instanceNodeInfo) {
|
||||||
|
Oauth oauth = null;
|
||||||
|
String software;
|
||||||
|
if (instanceNodeInfo != null) {
|
||||||
|
software = instanceNodeInfo.getSoftware().getName().toUpperCase().trim();
|
||||||
|
switch (software) {
|
||||||
|
case "MASTODON":
|
||||||
|
case "PLEROMA":
|
||||||
|
oauth = new RetrofitMastodonAPI(LoginActivity.this, finalInstance, null).oauthClient(Helper.CLIENT_NAME_VALUE, Helper.REDIRECT_CONTENT_WEB, Helper.OAUTH_SCOPES_MASTODON, Helper.WEBSITE_VALUE);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "FRIENDICA":
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
oauth = new RetrofitPeertubeAPI(LoginActivity.this, finalInstance, null).oauthClient(Helper.CLIENT_NAME_VALUE, Helper.WEBSITE_VALUE, Helper.OAUTH_SCOPES_PEERTUBE, Helper.WEBSITE_VALUE);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
oauth = new RetrofitPeertubeAPI(LoginActivity.this, finalInstance, null).oauthClient(Helper.CLIENT_NAME_VALUE, Helper.WEBSITE_VALUE, Helper.OAUTH_SCOPES_PEERTUBE, Helper.WEBSITE_VALUE);
|
||||||
|
software = "PEERTUBE";
|
||||||
|
}
|
||||||
|
if (oauth == null) {
|
||||||
|
runOnUiThread(() -> {
|
||||||
|
binding.loginButton.setEnabled(true);
|
||||||
|
Toasty.error(LoginActivity.this, getString(R.string.client_error), Toast.LENGTH_LONG).show();
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
client_id = oauth.getClient_id();
|
||||||
|
client_secret = oauth.getClient_secret();
|
||||||
|
|
||||||
|
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
|
||||||
|
SharedPreferences.Editor editor = sharedpreferences.edit();
|
||||||
|
editor.putString(Helper.CLIENT_ID, client_id);
|
||||||
|
editor.putString(Helper.CLIENT_SECRET, client_secret);
|
||||||
|
editor.apply();
|
||||||
|
OauthParams oauthParams = new OauthParams();
|
||||||
|
oauthParams.setClient_id(client_id);
|
||||||
|
oauthParams.setClient_secret(client_secret);
|
||||||
|
oauthParams.setGrant_type("password");
|
||||||
|
final boolean isMastodonAPI = software.compareTo("MASTODON") == 0 || software.compareTo("PLEROMA") == 0;
|
||||||
|
if (software.compareTo("PEERTUBE") == 0) {
|
||||||
|
oauthParams.setScope("user");
|
||||||
|
} else if (isMastodonAPI) {
|
||||||
|
oauthParams.setScope("read write follow");
|
||||||
|
}
|
||||||
|
if (binding.loginUid.getText() != null) {
|
||||||
|
oauthParams.setUsername(binding.loginUid.getText().toString().trim());
|
||||||
|
}
|
||||||
|
if (binding.loginPasswd.getText() != null) {
|
||||||
|
oauthParams.setPassword(binding.loginPasswd.getText().toString());
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
Token token = null;
|
||||||
|
if (software.compareTo("PEERTUBE") == 0) {
|
||||||
|
token = new RetrofitPeertubeAPI(LoginActivity.this, finalInstance, null).manageToken(oauthParams);
|
||||||
|
} else if (isMastodonAPI) {
|
||||||
|
Intent i = new Intent(LoginActivity.this, MastodonWebviewConnectActivity.class);
|
||||||
|
i.putExtra("software", software);
|
||||||
|
i.putExtra("instance", finalInstance);
|
||||||
|
i.putExtra("client_id", client_id);
|
||||||
|
i.putExtra("client_secret", client_secret);
|
||||||
|
startActivity(i);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
proceedLogin(token, finalInstance, software.compareTo("PEERTUBE") == 0 ? null : software);
|
||||||
|
} catch (final Exception | Error e) {
|
||||||
|
oauthParams.setUsername(binding.loginUid.getText().toString().toLowerCase().trim());
|
||||||
|
try {
|
||||||
|
if (software.compareTo("PEERTUBE") == 0) {
|
||||||
|
Token token = new RetrofitPeertubeAPI(LoginActivity.this, finalInstance, null).manageToken(oauthParams);
|
||||||
|
proceedLogin(token, finalInstance, software.compareTo("PEERTUBE") == 0 ? null : software);
|
||||||
|
}
|
||||||
|
} catch (Error error) {
|
||||||
|
Error.displayError(LoginActivity.this, error);
|
||||||
|
error.printStackTrace();
|
||||||
|
runOnUiThread(() -> binding.loginButton.setEnabled(true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@SuppressLint("ApplySharedPref")
|
@SuppressLint("ApplySharedPref")
|
||||||
private void proceedLogin(Token token, String host) {
|
private void proceedLogin(Token token, String host, String software) {
|
||||||
runOnUiThread(() -> {
|
runOnUiThread(() -> {
|
||||||
if (token != null) {
|
if (token != null) {
|
||||||
|
boolean remote_account = software != null && software.toUpperCase().trim().compareTo("PEERTUBE") != 0;
|
||||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
|
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
|
||||||
SharedPreferences.Editor editor = sharedpreferences.edit();
|
SharedPreferences.Editor editor = sharedpreferences.edit();
|
||||||
editor.putString(Helper.PREF_KEY_OAUTH_TOKEN, token.getAccess_token());
|
editor.putString(Helper.PREF_KEY_OAUTH_TOKEN, token.getAccess_token());
|
||||||
editor.putString(Helper.PREF_INSTANCE, host);
|
editor.putString(Helper.PREF_SOFTWARE, remote_account ? software : null);
|
||||||
|
editor.putString(Helper.PREF_REMOTE_INSTANCE, remote_account ? host : null);
|
||||||
|
if (!remote_account) {
|
||||||
|
editor.putString(Helper.PREF_INSTANCE, host);
|
||||||
|
}
|
||||||
editor.commit();
|
editor.commit();
|
||||||
//Update the account with the token;
|
//Update the account with the token;
|
||||||
updateCredential(LoginActivity.this, token.getAccess_token(), client_id, client_secret, token.getRefresh_token(), host);
|
updateCredential(LoginActivity.this, token.getAccess_token(), client_id, client_secret, token.getRefresh_token(), host, software);
|
||||||
} else {
|
} else {
|
||||||
binding.loginButton.setEnabled(true);
|
binding.loginButton.setEnabled(true);
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,130 @@
|
|||||||
|
package app.fedilab.fedilabtube;
|
||||||
|
/* Copyright 2020 Thomas Schneider
|
||||||
|
*
|
||||||
|
* This file is a part of TubeLab
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
||||||
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* TubeLab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||||||
|
* Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
||||||
|
* see <http://www.gnu.org/licenses>. */
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
|
import android.app.Activity;
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.database.sqlite.SQLiteDatabase;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.os.Handler;
|
||||||
|
import android.view.MenuItem;
|
||||||
|
import android.view.View;
|
||||||
|
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
import androidx.lifecycle.ViewModelProvider;
|
||||||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import app.fedilab.fedilabtube.client.RetrofitPeertubeAPI;
|
||||||
|
import app.fedilab.fedilabtube.client.data.InstanceData;
|
||||||
|
import app.fedilab.fedilabtube.databinding.ActivityManageInstancesBinding;
|
||||||
|
import app.fedilab.fedilabtube.drawer.AboutInstanceAdapter;
|
||||||
|
import app.fedilab.fedilabtube.helper.Helper;
|
||||||
|
import app.fedilab.fedilabtube.sqlite.Sqlite;
|
||||||
|
import app.fedilab.fedilabtube.sqlite.StoredInstanceDAO;
|
||||||
|
import app.fedilab.fedilabtube.viewmodel.InfoInstanceVM;
|
||||||
|
|
||||||
|
import static app.fedilab.fedilabtube.MainActivity.PICK_INSTANCE_SURF;
|
||||||
|
import static app.fedilab.fedilabtube.MainActivity.showRadioButtonDialogFullInstances;
|
||||||
|
|
||||||
|
|
||||||
|
public class ManageInstancesActivity extends AppCompatActivity implements AboutInstanceAdapter.AllInstancesRemoved {
|
||||||
|
|
||||||
|
private ActivityManageInstancesBinding binding;
|
||||||
|
private List<InstanceData.AboutInstance> aboutInstances;
|
||||||
|
private AboutInstanceAdapter aboutInstanceAdapter;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
binding = ActivityManageInstancesBinding.inflate(getLayoutInflater());
|
||||||
|
View view = binding.getRoot();
|
||||||
|
setContentView(view);
|
||||||
|
if (getSupportActionBar() != null) {
|
||||||
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
|
getSupportActionBar().setDisplayShowHomeEnabled(true);
|
||||||
|
}
|
||||||
|
binding.loader.setVisibility(View.VISIBLE);
|
||||||
|
binding.noAction.setVisibility(View.GONE);
|
||||||
|
binding.lvInstances.setVisibility(View.GONE);
|
||||||
|
binding.actionButton.setOnClickListener(v -> showRadioButtonDialogFullInstances(ManageInstancesActivity.this, true));
|
||||||
|
aboutInstances = new ArrayList<>();
|
||||||
|
aboutInstanceAdapter = new AboutInstanceAdapter(this.aboutInstances);
|
||||||
|
aboutInstanceAdapter.allInstancesRemoved = this;
|
||||||
|
binding.lvInstances.setAdapter(aboutInstanceAdapter);
|
||||||
|
LinearLayoutManager layoutManager
|
||||||
|
= new LinearLayoutManager(ManageInstancesActivity.this);
|
||||||
|
binding.lvInstances.setLayoutManager(layoutManager);
|
||||||
|
InfoInstanceVM viewModelInfoInstance = new ViewModelProvider(ManageInstancesActivity.this).get(InfoInstanceVM.class);
|
||||||
|
viewModelInfoInstance.getInstances().observe(ManageInstancesActivity.this, this::manageVIewInfoInstance);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void manageVIewInfoInstance(List<InstanceData.AboutInstance> aboutInstances) {
|
||||||
|
binding.loader.setVisibility(View.GONE);
|
||||||
|
if (aboutInstances == null || aboutInstances.size() == 0) {
|
||||||
|
binding.noAction.setVisibility(View.VISIBLE);
|
||||||
|
binding.lvInstances.setVisibility(View.GONE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
binding.noAction.setVisibility(View.GONE);
|
||||||
|
binding.lvInstances.setVisibility(View.VISIBLE);
|
||||||
|
this.aboutInstances.addAll(aboutInstances);
|
||||||
|
aboutInstanceAdapter.notifyItemRangeInserted(0, aboutInstances.size());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onBackPressed() {
|
||||||
|
super.onBackPressed();
|
||||||
|
overridePendingTransition(R.anim.slide_out_up, R.anim.slide_in_up_down);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
|
if (item.getItemId() == android.R.id.home) {
|
||||||
|
finish();
|
||||||
|
overridePendingTransition(R.anim.slide_out_up, R.anim.slide_in_up_down);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return super.onOptionsItemSelected(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@SuppressLint("ApplySharedPref")
|
||||||
|
@Override
|
||||||
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||||
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
|
if (requestCode == PICK_INSTANCE_SURF && resultCode == Activity.RESULT_OK) {
|
||||||
|
if (data != null && data.getData() != null) {
|
||||||
|
new Thread(() -> {
|
||||||
|
String newInstance = data.getData().toString().trim().toLowerCase();
|
||||||
|
InstanceData.AboutInstance aboutInstance = new RetrofitPeertubeAPI(ManageInstancesActivity.this, newInstance, null).getAboutInstance();
|
||||||
|
SQLiteDatabase db = Sqlite.getInstance(getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open();
|
||||||
|
new StoredInstanceDAO(ManageInstancesActivity.this, db).insertInstance(aboutInstance, newInstance);
|
||||||
|
runOnUiThread(() -> new Handler().post(() -> Helper.logoutNoRemoval(ManageInstancesActivity.this)));
|
||||||
|
}).start();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onAllInstancesRemoved() {
|
||||||
|
binding.noAction.setVisibility(View.VISIBLE);
|
||||||
|
binding.lvInstances.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,194 @@
|
|||||||
|
/* Copyright 2020 Thomas Schneider
|
||||||
|
*
|
||||||
|
* This file is a part of TubeLab
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
||||||
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* TubeLab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||||||
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||||||
|
* Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
||||||
|
* see <http://www.gnu.org/licenses>. */
|
||||||
|
|
||||||
|
package app.fedilab.fedilabtube;
|
||||||
|
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
|
import android.content.Context;
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.content.SharedPreferences;
|
||||||
|
import android.net.Uri;
|
||||||
|
import android.os.Build;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.view.MenuItem;
|
||||||
|
import android.webkit.CookieManager;
|
||||||
|
import android.webkit.CookieSyncManager;
|
||||||
|
import android.webkit.WebChromeClient;
|
||||||
|
import android.webkit.WebView;
|
||||||
|
import android.webkit.WebViewClient;
|
||||||
|
import android.widget.ProgressBar;
|
||||||
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import androidx.appcompat.app.AlertDialog;
|
||||||
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
|
||||||
|
import app.fedilab.fedilabtube.client.mastodon.RetrofitMastodonAPI;
|
||||||
|
import app.fedilab.fedilabtube.client.entities.Error;
|
||||||
|
import app.fedilab.fedilabtube.client.entities.OauthParams;
|
||||||
|
import app.fedilab.fedilabtube.client.entities.Token;
|
||||||
|
import app.fedilab.fedilabtube.helper.Helper;
|
||||||
|
import es.dmoral.toasty.Toasty;
|
||||||
|
|
||||||
|
|
||||||
|
public class MastodonWebviewConnectActivity extends AppCompatActivity {
|
||||||
|
|
||||||
|
|
||||||
|
private WebView webView;
|
||||||
|
private AlertDialog alert;
|
||||||
|
private String clientId, clientSecret;
|
||||||
|
private String instance, software;
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
|
public static void clearCookies(Context context) {
|
||||||
|
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
|
||||||
|
CookieManager.getInstance().removeAllCookies(null);
|
||||||
|
CookieManager.getInstance().flush();
|
||||||
|
} else {
|
||||||
|
CookieSyncManager cookieSyncMngr = CookieSyncManager.createInstance(context);
|
||||||
|
cookieSyncMngr.startSync();
|
||||||
|
CookieManager cookieManager = CookieManager.getInstance();
|
||||||
|
cookieManager.removeAllCookie();
|
||||||
|
cookieManager.removeSessionCookie();
|
||||||
|
cookieSyncMngr.stopSync();
|
||||||
|
cookieSyncMngr.sync();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static String redirectUserToAuthorizeAndLogin(String clientId, String instance) {
|
||||||
|
String queryString = Helper.CLIENT_ID + "=" + clientId;
|
||||||
|
queryString += "&" + Helper.REDIRECT_URI + "=" + Uri.encode(Helper.REDIRECT_CONTENT_WEB);
|
||||||
|
queryString += "&response_type=code";
|
||||||
|
queryString += "&scope=read write follow";
|
||||||
|
return "https://" + instance + "/oauth/authorize?" + queryString;
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressLint("SetJavaScriptEnabled")
|
||||||
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
setContentView(R.layout.activity_webview_connect);
|
||||||
|
Bundle b = getIntent().getExtras();
|
||||||
|
if (b != null) {
|
||||||
|
instance = b.getString("instance");
|
||||||
|
clientId = b.getString("client_id");
|
||||||
|
clientSecret = b.getString("client_secret");
|
||||||
|
software = b.getString("software");
|
||||||
|
}
|
||||||
|
if (instance == null)
|
||||||
|
finish();
|
||||||
|
if (getSupportActionBar() != null)
|
||||||
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
|
setTitle(R.string.login);
|
||||||
|
webView = findViewById(R.id.webviewConnect);
|
||||||
|
clearCookies(MastodonWebviewConnectActivity.this);
|
||||||
|
webView.getSettings().setJavaScriptEnabled(true);
|
||||||
|
|
||||||
|
if (Build.VERSION.SDK_INT >= 21) {
|
||||||
|
CookieManager.getInstance().setAcceptThirdPartyCookies(webView, true);
|
||||||
|
} else {
|
||||||
|
CookieManager.getInstance().setAcceptCookie(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
final ProgressBar pbar = findViewById(R.id.progress_bar);
|
||||||
|
webView.setWebChromeClient(new WebChromeClient() {
|
||||||
|
@Override
|
||||||
|
public void onProgressChanged(WebView view, int progress) {
|
||||||
|
if (progress < 100 && pbar.getVisibility() == ProgressBar.GONE) {
|
||||||
|
pbar.setVisibility(ProgressBar.VISIBLE);
|
||||||
|
}
|
||||||
|
pbar.setProgress(progress);
|
||||||
|
if (progress == 100) {
|
||||||
|
pbar.setVisibility(ProgressBar.GONE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
if (instance == null) {
|
||||||
|
finish();
|
||||||
|
}
|
||||||
|
webView.setWebViewClient(new WebViewClient() {
|
||||||
|
@Override
|
||||||
|
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
||||||
|
super.shouldOverrideUrlLoading(view, url);
|
||||||
|
if (url.contains(Helper.REDIRECT_CONTENT_WEB)) {
|
||||||
|
String[] val = url.split("code=");
|
||||||
|
if (val.length < 2) {
|
||||||
|
Toasty.error(MastodonWebviewConnectActivity.this, getString(R.string.toast_code_error), Toast.LENGTH_LONG).show();
|
||||||
|
Intent myIntent = new Intent(MastodonWebviewConnectActivity.this, LoginActivity.class);
|
||||||
|
startActivity(myIntent);
|
||||||
|
finish();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
String code = val[1];
|
||||||
|
OauthParams oauthParams = new OauthParams();
|
||||||
|
oauthParams.setClient_id(clientId);
|
||||||
|
oauthParams.setClient_secret(clientSecret);
|
||||||
|
oauthParams.setGrant_type("authorization_code");
|
||||||
|
oauthParams.setCode(code);
|
||||||
|
oauthParams.setRedirect_uri(Helper.REDIRECT_CONTENT_WEB);
|
||||||
|
|
||||||
|
new Thread(() -> {
|
||||||
|
try {
|
||||||
|
Token token = new RetrofitMastodonAPI(MastodonWebviewConnectActivity.this, instance, null).manageToken(oauthParams);
|
||||||
|
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
|
||||||
|
SharedPreferences.Editor editor = sharedpreferences.edit();
|
||||||
|
editor.putString(Helper.PREF_KEY_OAUTH_TOKEN, token.getAccess_token());
|
||||||
|
editor.apply();
|
||||||
|
new RetrofitMastodonAPI(MastodonWebviewConnectActivity.this, instance, token.getAccess_token()).updateCredential(MastodonWebviewConnectActivity.this, clientId, clientSecret, token.getRefresh_token(), software);
|
||||||
|
} catch (Exception | Error ignored) {
|
||||||
|
}
|
||||||
|
}).start();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
webView.loadUrl(redirectUserToAuthorizeAndLogin(clientId, instance));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
|
int itemId = item.getItemId();
|
||||||
|
if (itemId == android.R.id.home) {
|
||||||
|
finish();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return super.onOptionsItemSelected(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onBackPressed() {
|
||||||
|
if (webView != null && webView.canGoBack()) {
|
||||||
|
webView.goBack();
|
||||||
|
} else {
|
||||||
|
super.onBackPressed();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroy() {
|
||||||
|
super.onDestroy();
|
||||||
|
if (alert != null) {
|
||||||
|
alert.dismiss();
|
||||||
|
alert = null;
|
||||||
|
}
|
||||||
|
if (webView != null) {
|
||||||
|
webView.destroy();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -13,6 +13,7 @@ package app.fedilab.fedilabtube;
|
|||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
* You should have received a copy of the GNU General Public License along with TubeLab; if not,
|
||||||
* see <http://www.gnu.org/licenses>. */
|
* see <http://www.gnu.org/licenses>. */
|
||||||
|
|
||||||
import android.Manifest;
|
import android.Manifest;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -59,10 +60,10 @@ import static app.fedilab.fedilabtube.worker.WorkHelper.NOTIFICATION_WORKER;
|
|||||||
|
|
||||||
public class MyAccountActivity extends AppCompatActivity {
|
public class MyAccountActivity extends AppCompatActivity {
|
||||||
|
|
||||||
ActivityMyAccountSettingsBinding binding;
|
|
||||||
private static final int PICK_IMAGE = 466;
|
private static final int PICK_IMAGE = 466;
|
||||||
|
ActivityMyAccountSettingsBinding binding;
|
||||||
private Uri inputData;
|
private Uri inputData;
|
||||||
private String fileName;
|
private String fileName;
|
||||||
private NotificationSettings notificationSettings;
|
private NotificationSettings notificationSettings;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -74,11 +75,11 @@ public class MyAccountActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
if (getSupportActionBar() != null)
|
if (getSupportActionBar() != null)
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
if( MainActivity.userMe == null) {
|
if (MainActivity.userMe == null) {
|
||||||
finish();
|
finish();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setTitle(String.format("@%s",MainActivity.userMe.getUsername()));
|
setTitle(String.format("@%s", MainActivity.userMe.getUsername()));
|
||||||
binding.displayname.setText(MainActivity.userMe.getAccount().getDisplayName());
|
binding.displayname.setText(MainActivity.userMe.getAccount().getDisplayName());
|
||||||
binding.description.setText(MainActivity.userMe.getAccount().getDescription());
|
binding.description.setText(MainActivity.userMe.getAccount().getDescription());
|
||||||
|
|
||||||
@ -93,7 +94,7 @@ public class MyAccountActivity extends AppCompatActivity {
|
|||||||
initializeValues(notificationSettings.getNewCommentOnMyVideo(), binding.notifNewCommentApp, binding.notifNewCommentMail);
|
initializeValues(notificationSettings.getNewCommentOnMyVideo(), binding.notifNewCommentApp, binding.notifNewCommentMail);
|
||||||
initializeValues(notificationSettings.getNewVideoFromSubscription(), binding.notifNewVideoApp, binding.notifNewVideoMail);
|
initializeValues(notificationSettings.getNewVideoFromSubscription(), binding.notifNewVideoApp, binding.notifNewVideoMail);
|
||||||
|
|
||||||
Helper.loadGiF(MyAccountActivity.this, MainActivity.userMe.getAccount().getAvatar()!=null?MainActivity.userMe.getAccount().getAvatar().getPath():null, binding.profilePicture);
|
Helper.loadGiF(MyAccountActivity.this, MainActivity.userMe.getAccount().getAvatar() != null ? MainActivity.userMe.getAccount().getAvatar().getPath() : null, binding.profilePicture);
|
||||||
|
|
||||||
String[] refresh_array = getResources().getStringArray(R.array.refresh_time);
|
String[] refresh_array = getResources().getStringArray(R.array.refresh_time);
|
||||||
ArrayAdapter<String> refreshArray = new ArrayAdapter<>(MyAccountActivity.this,
|
ArrayAdapter<String> refreshArray = new ArrayAdapter<>(MyAccountActivity.this,
|
||||||
@ -132,7 +133,7 @@ public class MyAccountActivity extends AppCompatActivity {
|
|||||||
editor.putInt(Helper.NOTIFICATION_INTERVAL, time);
|
editor.putInt(Helper.NOTIFICATION_INTERVAL, time);
|
||||||
editor.apply();
|
editor.apply();
|
||||||
WorkManager.getInstance(getApplicationContext()).cancelAllWorkByTag(NOTIFICATION_WORKER);
|
WorkManager.getInstance(getApplicationContext()).cancelAllWorkByTag(NOTIFICATION_WORKER);
|
||||||
if( time > 0 ) {
|
if (time > 0) {
|
||||||
WorkHelper.fetchNotifications(getApplication(), time);
|
WorkHelper.fetchNotifications(getApplication(), time);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -169,7 +170,7 @@ public class MyAccountActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
binding.refreshTime.setSelection(position, false);
|
binding.refreshTime.setSelection(position, false);
|
||||||
|
|
||||||
binding.selectFile.setOnClickListener(v->{
|
binding.selectFile.setOnClickListener(v -> {
|
||||||
if (ContextCompat.checkSelfPermission(MyAccountActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE) !=
|
if (ContextCompat.checkSelfPermission(MyAccountActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE) !=
|
||||||
PackageManager.PERMISSION_GRANTED) {
|
PackageManager.PERMISSION_GRANTED) {
|
||||||
ActivityCompat.requestPermissions(MyAccountActivity.this,
|
ActivityCompat.requestPermissions(MyAccountActivity.this,
|
||||||
@ -204,13 +205,13 @@ public class MyAccountActivity extends AppCompatActivity {
|
|||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
UserSettings userSettings = new UserSettings();
|
UserSettings userSettings = new UserSettings();
|
||||||
userSettings.setNotificationSettings(notificationSettings);
|
userSettings.setNotificationSettings(notificationSettings);
|
||||||
if( binding.displayname.getText() != null) {
|
if (binding.displayname.getText() != null) {
|
||||||
userSettings.setDisplayName(binding.displayname.getText().toString().trim());
|
userSettings.setDisplayName(binding.displayname.getText().toString().trim());
|
||||||
}
|
}
|
||||||
if( binding.description.getText() != null) {
|
if (binding.description.getText() != null) {
|
||||||
userSettings.setDescription(binding.description.getText().toString().trim());
|
userSettings.setDescription(binding.description.getText().toString().trim());
|
||||||
}
|
}
|
||||||
if( inputData != null ) {
|
if (inputData != null) {
|
||||||
userSettings.setAvatarfile(inputData);
|
userSettings.setAvatarfile(inputData);
|
||||||
userSettings.setFileName(fileName);
|
userSettings.setFileName(fileName);
|
||||||
}
|
}
|
||||||
@ -219,7 +220,7 @@ public class MyAccountActivity extends AppCompatActivity {
|
|||||||
UserMe.AvatarResponse avatarResponse = api.updateUser(userSettings);
|
UserMe.AvatarResponse avatarResponse = api.updateUser(userSettings);
|
||||||
MainActivity.userMe.getAccount().setDisplayName(binding.displayname.getText().toString().trim());
|
MainActivity.userMe.getAccount().setDisplayName(binding.displayname.getText().toString().trim());
|
||||||
MainActivity.userMe.getAccount().setDescription(binding.description.getText().toString().trim());
|
MainActivity.userMe.getAccount().setDescription(binding.description.getText().toString().trim());
|
||||||
if( avatarResponse != null && avatarResponse.getAvatar() != null ) {
|
if (avatarResponse != null && avatarResponse.getAvatar() != null) {
|
||||||
MainActivity.userMe.getAccount().setAvatar(avatarResponse.getAvatar());
|
MainActivity.userMe.getAccount().setAvatar(avatarResponse.getAvatar());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -329,29 +330,29 @@ public class MyAccountActivity extends AppCompatActivity {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getNewAppCheckedValue(boolean checked, SwitchCompat email){
|
private int getNewAppCheckedValue(boolean checked, SwitchCompat email) {
|
||||||
int newValue;
|
int newValue;
|
||||||
if( checked && email.isChecked()) {
|
if (checked && email.isChecked()) {
|
||||||
newValue = 3;
|
newValue = 3;
|
||||||
}else if( !checked && email.isChecked()) {
|
} else if (!checked && email.isChecked()) {
|
||||||
newValue = 2;
|
newValue = 2;
|
||||||
} else if( checked && !email.isChecked()) {
|
} else if (checked && !email.isChecked()) {
|
||||||
newValue = 1;
|
newValue = 1;
|
||||||
}else {
|
} else {
|
||||||
newValue = 0;
|
newValue = 0;
|
||||||
}
|
}
|
||||||
return newValue;
|
return newValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getNewMailCheckedValue(boolean checked, SwitchCompat app){
|
private int getNewMailCheckedValue(boolean checked, SwitchCompat app) {
|
||||||
int newValue;
|
int newValue;
|
||||||
if( checked && app.isChecked()) {
|
if (checked && app.isChecked()) {
|
||||||
newValue = 3;
|
newValue = 3;
|
||||||
}else if( !checked && app.isChecked()) {
|
} else if (!checked && app.isChecked()) {
|
||||||
newValue = 1;
|
newValue = 1;
|
||||||
} else if( checked && !app.isChecked()) {
|
} else if (checked && !app.isChecked()) {
|
||||||
newValue = 2;
|
newValue = 2;
|
||||||
}else {
|
} else {
|
||||||
newValue = 0;
|
newValue = 0;
|
||||||
}
|
}
|
||||||
return newValue;
|
return newValue;
|
||||||
|
@ -16,21 +16,17 @@ package app.fedilab.fedilabtube;
|
|||||||
|
|
||||||
import android.Manifest;
|
import android.Manifest;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.os.Handler;
|
||||||
|
import android.os.Looper;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.Button;
|
|
||||||
import android.widget.CheckBox;
|
|
||||||
import android.widget.EditText;
|
|
||||||
import android.widget.ImageView;
|
|
||||||
import android.widget.Spinner;
|
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import androidx.appcompat.app.AlertDialog;
|
import androidx.appcompat.app.AlertDialog;
|
||||||
@ -40,39 +36,34 @@ import androidx.core.content.ContextCompat;
|
|||||||
import androidx.lifecycle.ViewModelProvider;
|
import androidx.lifecycle.ViewModelProvider;
|
||||||
|
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
|
import com.bumptech.glide.load.resource.bitmap.CenterCrop;
|
||||||
|
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
|
||||||
|
import com.bumptech.glide.request.RequestOptions;
|
||||||
|
|
||||||
import net.gotev.uploadservice.MultipartUploadRequest;
|
|
||||||
import net.gotev.uploadservice.ServerResponse;
|
|
||||||
import net.gotev.uploadservice.UploadInfo;
|
|
||||||
import net.gotev.uploadservice.UploadNotificationConfig;
|
|
||||||
import net.gotev.uploadservice.UploadStatusDelegate;
|
|
||||||
|
|
||||||
import java.io.FileNotFoundException;
|
|
||||||
import java.net.MalformedURLException;
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import app.fedilab.fedilabtube.client.APIResponse;
|
import app.fedilab.fedilabtube.client.APIResponse;
|
||||||
import app.fedilab.fedilabtube.client.RetrofitPeertubeAPI;
|
import app.fedilab.fedilabtube.client.RetrofitPeertubeAPI;
|
||||||
import app.fedilab.fedilabtube.client.data.ChannelData.Channel;
|
import app.fedilab.fedilabtube.client.data.ChannelData.Channel;
|
||||||
|
import app.fedilab.fedilabtube.client.data.VideoData;
|
||||||
import app.fedilab.fedilabtube.client.data.VideoData.Video;
|
import app.fedilab.fedilabtube.client.data.VideoData.Video;
|
||||||
import app.fedilab.fedilabtube.client.entities.Item;
|
import app.fedilab.fedilabtube.client.entities.Item;
|
||||||
import app.fedilab.fedilabtube.client.entities.ItemStr;
|
import app.fedilab.fedilabtube.client.entities.ItemStr;
|
||||||
import app.fedilab.fedilabtube.client.entities.VideoParams;
|
import app.fedilab.fedilabtube.client.entities.VideoParams;
|
||||||
|
import app.fedilab.fedilabtube.databinding.ActivityPeertubeEditBinding;
|
||||||
import app.fedilab.fedilabtube.helper.Helper;
|
import app.fedilab.fedilabtube.helper.Helper;
|
||||||
import app.fedilab.fedilabtube.viewmodel.ChannelsVM;
|
import app.fedilab.fedilabtube.viewmodel.ChannelsVM;
|
||||||
import app.fedilab.fedilabtube.viewmodel.MyVideoVM;
|
import app.fedilab.fedilabtube.viewmodel.MyVideoVM;
|
||||||
import app.fedilab.fedilabtube.viewmodel.PostActionsVM;
|
import app.fedilab.fedilabtube.viewmodel.PostActionsVM;
|
||||||
import app.fedilab.fedilabtube.viewmodel.TimelineVM;
|
import app.fedilab.fedilabtube.viewmodel.TimelineVM;
|
||||||
import es.dmoral.toasty.Toasty;
|
import es.dmoral.toasty.Toasty;
|
||||||
import mabbas007.tagsedittext.TagsEditText;
|
|
||||||
|
|
||||||
import static app.fedilab.fedilabtube.MainActivity.peertubeInformation;
|
|
||||||
import static app.fedilab.fedilabtube.client.RetrofitPeertubeAPI.ActionType.PEERTUBEDELETEVIDEO;
|
import static app.fedilab.fedilabtube.client.RetrofitPeertubeAPI.ActionType.PEERTUBEDELETEVIDEO;
|
||||||
import static app.fedilab.fedilabtube.client.RetrofitPeertubeAPI.DataType.MY_CHANNELS;
|
import static app.fedilab.fedilabtube.client.RetrofitPeertubeAPI.DataType.MY_CHANNELS;
|
||||||
|
import static app.fedilab.fedilabtube.helper.Helper.peertubeInformation;
|
||||||
|
|
||||||
|
|
||||||
public class PeertubeEditUploadActivity extends AppCompatActivity {
|
public class PeertubeEditUploadActivity extends AppCompatActivity {
|
||||||
@ -82,23 +73,21 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
private final int MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE = 724;
|
private final int MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE = 724;
|
||||||
Item licenseToSend, privacyToSend, categoryToSend;
|
Item licenseToSend, privacyToSend, categoryToSend;
|
||||||
ItemStr languageToSend;
|
ItemStr languageToSend;
|
||||||
private Button set_upload_submit;
|
|
||||||
private Spinner set_upload_privacy, set_upload_categories, set_upload_licenses, set_upload_languages, set_upload_channel;
|
|
||||||
private EditText p_video_title, p_video_description;
|
|
||||||
private TagsEditText p_video_tags;
|
|
||||||
private CheckBox set_upload_nsfw, set_upload_enable_comments;
|
|
||||||
private LinkedHashMap<String, String> channels;
|
private LinkedHashMap<String, String> channels;
|
||||||
private String videoId;
|
private String videoId;
|
||||||
private Channel channel;
|
private Channel channel;
|
||||||
private ImageView p_video_preview;
|
|
||||||
private Button set_preview;
|
|
||||||
private VideoParams videoParams;
|
private VideoParams videoParams;
|
||||||
private Video video;
|
private Video video;
|
||||||
private String channelToSendId;
|
private String channelToSendId;
|
||||||
|
private ActivityPeertubeEditBinding binding;
|
||||||
|
private Uri inputData;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
binding = ActivityPeertubeEditBinding.inflate(getLayoutInflater());
|
||||||
|
View view = binding.getRoot();
|
||||||
|
setContentView(view);
|
||||||
|
|
||||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
|
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
|
||||||
|
|
||||||
@ -113,23 +102,8 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
if (getSupportActionBar() != null)
|
if (getSupportActionBar() != null)
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
setContentView(R.layout.activity_peertube_edit);
|
|
||||||
set_upload_submit = findViewById(R.id.set_upload_submit);
|
|
||||||
Button set_upload_delete = findViewById(R.id.set_upload_delete);
|
|
||||||
set_upload_privacy = findViewById(R.id.set_upload_privacy);
|
|
||||||
set_upload_channel = findViewById(R.id.set_upload_channel);
|
|
||||||
set_upload_categories = findViewById(R.id.set_upload_categories);
|
|
||||||
set_upload_licenses = findViewById(R.id.set_upload_licenses);
|
|
||||||
set_upload_languages = findViewById(R.id.set_upload_languages);
|
|
||||||
p_video_title = findViewById(R.id.p_video_title);
|
|
||||||
p_video_description = findViewById(R.id.p_video_description);
|
|
||||||
p_video_tags = findViewById(R.id.p_video_tags);
|
|
||||||
p_video_preview = findViewById(R.id.p_video_preview);
|
|
||||||
set_upload_nsfw = findViewById(R.id.set_upload_nsfw);
|
|
||||||
set_upload_enable_comments = findViewById(R.id.set_upload_enable_comments);
|
|
||||||
set_preview = findViewById(R.id.set_preview);
|
|
||||||
|
|
||||||
set_upload_delete.setOnClickListener(v -> {
|
binding.setUploadDelete.setOnClickListener(v -> {
|
||||||
AlertDialog.Builder builderInner;
|
AlertDialog.Builder builderInner;
|
||||||
builderInner = new AlertDialog.Builder(PeertubeEditUploadActivity.this);
|
builderInner = new AlertDialog.Builder(PeertubeEditUploadActivity.this);
|
||||||
builderInner.setMessage(getString(R.string.delete_video_confirmation));
|
builderInner.setMessage(getString(R.string.delete_video_confirmation));
|
||||||
@ -165,7 +139,7 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
ArrayAdapter<String> adapterCatgories = new ArrayAdapter<>(PeertubeEditUploadActivity.this,
|
ArrayAdapter<String> adapterCatgories = new ArrayAdapter<>(PeertubeEditUploadActivity.this,
|
||||||
android.R.layout.simple_spinner_dropdown_item, categoriesA);
|
android.R.layout.simple_spinner_dropdown_item, categoriesA);
|
||||||
set_upload_categories.setAdapter(adapterCatgories);
|
binding.setUploadCategories.setAdapter(adapterCatgories);
|
||||||
|
|
||||||
|
|
||||||
//Populate licenses
|
//Populate licenses
|
||||||
@ -183,7 +157,7 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
ArrayAdapter<String> adapterLicenses = new ArrayAdapter<>(PeertubeEditUploadActivity.this,
|
ArrayAdapter<String> adapterLicenses = new ArrayAdapter<>(PeertubeEditUploadActivity.this,
|
||||||
android.R.layout.simple_spinner_dropdown_item, licensesA);
|
android.R.layout.simple_spinner_dropdown_item, licensesA);
|
||||||
set_upload_licenses.setAdapter(adapterLicenses);
|
binding.setUploadLicenses.setAdapter(adapterLicenses);
|
||||||
|
|
||||||
|
|
||||||
//Populate languages
|
//Populate languages
|
||||||
@ -201,7 +175,7 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
ArrayAdapter<String> adapterLanguages = new ArrayAdapter<>(PeertubeEditUploadActivity.this,
|
ArrayAdapter<String> adapterLanguages = new ArrayAdapter<>(PeertubeEditUploadActivity.this,
|
||||||
android.R.layout.simple_spinner_dropdown_item, languagesA);
|
android.R.layout.simple_spinner_dropdown_item, languagesA);
|
||||||
set_upload_languages.setAdapter(adapterLanguages);
|
binding.setUploadLanguages.setAdapter(adapterLanguages);
|
||||||
|
|
||||||
|
|
||||||
//Populate languages
|
//Populate languages
|
||||||
@ -220,18 +194,19 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
ArrayAdapter<String> adapterPrivacies = new ArrayAdapter<>(PeertubeEditUploadActivity.this,
|
ArrayAdapter<String> adapterPrivacies = new ArrayAdapter<>(PeertubeEditUploadActivity.this,
|
||||||
android.R.layout.simple_spinner_dropdown_item, privaciesA);
|
android.R.layout.simple_spinner_dropdown_item, privaciesA);
|
||||||
set_upload_privacy.setAdapter(adapterPrivacies);
|
binding.setUploadPrivacy.setAdapter(adapterPrivacies);
|
||||||
|
|
||||||
|
|
||||||
TimelineVM feedsViewModel = new ViewModelProvider(PeertubeEditUploadActivity.this).get(TimelineVM.class);
|
TimelineVM feedsViewModel = new ViewModelProvider(PeertubeEditUploadActivity.this).get(TimelineVM.class);
|
||||||
feedsViewModel.getMyVideo(null, videoId).observe(PeertubeEditUploadActivity.this, this::manageVIewVideo);
|
feedsViewModel.getMyVideo(null, videoId).observe(PeertubeEditUploadActivity.this, this::manageVIewVideo);
|
||||||
|
|
||||||
channels = new LinkedHashMap<>();
|
channels = new LinkedHashMap<>();
|
||||||
|
|
||||||
setTitle(R.string.edit_video);
|
setTitle(R.string.edit_video);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void manageUpdate(APIResponse apiResponse) {
|
public void manageUpdate(APIResponse apiResponse) {
|
||||||
set_upload_submit.setEnabled(true);
|
binding.setUploadSubmit.setEnabled(true);
|
||||||
if (apiResponse.getError() != null) {
|
if (apiResponse.getError() != null) {
|
||||||
if (apiResponse.getError() != null && apiResponse.getError().getError() != null)
|
if (apiResponse.getError() != null && apiResponse.getError().getError() != null)
|
||||||
Toasty.error(PeertubeEditUploadActivity.this, apiResponse.getError().getError(), Toast.LENGTH_LONG).show();
|
Toasty.error(PeertubeEditUploadActivity.this, apiResponse.getError().getError(), Toast.LENGTH_LONG).show();
|
||||||
@ -247,7 +222,7 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
Toasty.error(PeertubeEditUploadActivity.this, apiResponse.getError().getError(), Toast.LENGTH_LONG).show();
|
Toasty.error(PeertubeEditUploadActivity.this, apiResponse.getError().getError(), Toast.LENGTH_LONG).show();
|
||||||
else
|
else
|
||||||
Toasty.error(PeertubeEditUploadActivity.this, getString(R.string.toast_error), Toast.LENGTH_LONG).show();
|
Toasty.error(PeertubeEditUploadActivity.this, getString(R.string.toast_error), Toast.LENGTH_LONG).show();
|
||||||
set_upload_submit.setEnabled(true);
|
binding.setUploadSubmit.setEnabled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -263,11 +238,11 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
categoryToSend = video.getCategory();
|
categoryToSend = video.getCategory();
|
||||||
|
|
||||||
if (video.getThumbnailPath() != null) {
|
if (video.getThumbnailPath() != null) {
|
||||||
Helper.loadGiF(PeertubeEditUploadActivity.this, video.getThumbnailPath(), p_video_preview);
|
Helper.loadGiF(PeertubeEditUploadActivity.this, video.getThumbnailPath(), binding.pVideoPreview);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
set_preview.setOnClickListener(v -> {
|
binding.setPreview.setOnClickListener(v -> {
|
||||||
if (ContextCompat.checkSelfPermission(PeertubeEditUploadActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE) !=
|
if (ContextCompat.checkSelfPermission(PeertubeEditUploadActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE) !=
|
||||||
PackageManager.PERMISSION_GRANTED) {
|
PackageManager.PERMISSION_GRANTED) {
|
||||||
ActivityCompat.requestPermissions(PeertubeEditUploadActivity.this,
|
ActivityCompat.requestPermissions(PeertubeEditUploadActivity.this,
|
||||||
@ -324,11 +299,28 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
boolean commentEnabled = video.isCommentsEnabled();
|
boolean commentEnabled = video.isCommentsEnabled();
|
||||||
boolean isNSFW = video.isNsfw();
|
boolean isNSFW = video.isNsfw();
|
||||||
|
|
||||||
set_upload_enable_comments.setChecked(commentEnabled);
|
binding.setUploadEnableComments.setChecked(commentEnabled);
|
||||||
set_upload_nsfw.setChecked(isNSFW);
|
binding.setUploadNsfw.setChecked(isNSFW);
|
||||||
|
|
||||||
p_video_title.setText(title);
|
binding.pVideoTitle.setText(title);
|
||||||
p_video_description.setText(video.getDescription());
|
binding.pVideoDescription.setText(video.getDescription());
|
||||||
|
|
||||||
|
new Thread(() -> {
|
||||||
|
try {
|
||||||
|
RetrofitPeertubeAPI api;
|
||||||
|
api = new RetrofitPeertubeAPI(PeertubeEditUploadActivity.this);
|
||||||
|
VideoData.Description description = api.getVideoDescription(video.getUuid());
|
||||||
|
Handler mainHandler = new Handler(Looper.getMainLooper());
|
||||||
|
Runnable myRunnable = () -> {
|
||||||
|
if (description != null) {
|
||||||
|
binding.pVideoDescription.setText(description.getDescription());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
mainHandler.post(myRunnable);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}).start();
|
||||||
|
|
||||||
LinkedHashMap<Integer, String> categories = new LinkedHashMap<>(peertubeInformation.getCategories());
|
LinkedHashMap<Integer, String> categories = new LinkedHashMap<>(peertubeInformation.getCategories());
|
||||||
LinkedHashMap<Integer, String> licences = new LinkedHashMap<>(peertubeInformation.getLicences());
|
LinkedHashMap<Integer, String> licences = new LinkedHashMap<>(peertubeInformation.getLicences());
|
||||||
@ -382,7 +374,7 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Manage privacies
|
//Manage privacies
|
||||||
set_upload_privacy.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
binding.setUploadPrivacy.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||||
updatePrivacyPosition(position);
|
updatePrivacyPosition(position);
|
||||||
@ -393,7 +385,7 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
set_upload_licenses.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
binding.setUploadLicenses.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||||
updateLicensePosition(position);
|
updateLicensePosition(position);
|
||||||
@ -405,7 +397,7 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
//Manage categories
|
//Manage categories
|
||||||
set_upload_categories.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
binding.setUploadCategories.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||||
updateCategoryPosition(position);
|
updateCategoryPosition(position);
|
||||||
@ -418,7 +410,7 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//Manage languages
|
//Manage languages
|
||||||
set_upload_languages.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
binding.setUploadLanguages.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||||
updateLanguagesPosition(position);
|
updateLanguagesPosition(position);
|
||||||
@ -430,7 +422,7 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
//Manage languages
|
//Manage languages
|
||||||
set_upload_channel.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
binding.setUploadChannel.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||||
|
|
||||||
@ -447,11 +439,11 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
Item finalLicenseToSend = licenseToSend;
|
Item finalLicenseToSend = licenseToSend;
|
||||||
ItemStr finalLanguageToSend = languageToSend;
|
ItemStr finalLanguageToSend = languageToSend;
|
||||||
Item finalPrivacyToSend = privacyToSend;
|
Item finalPrivacyToSend = privacyToSend;
|
||||||
set_upload_submit.setOnClickListener(v -> {
|
binding.setUploadSubmit.setOnClickListener(v -> {
|
||||||
String title1 = p_video_title.getText().toString().trim();
|
String title1 = binding.pVideoTitle.getText() != null ? binding.pVideoTitle.getText().toString().trim() : "";
|
||||||
String description = p_video_description.getText().toString().trim();
|
String description = binding.pVideoDescription.getText() != null ? binding.pVideoDescription.getText().toString().trim() : "";
|
||||||
boolean isNSFW1 = set_upload_nsfw.isChecked();
|
boolean isNSFW1 = binding.setUploadNsfw.isChecked();
|
||||||
boolean commentEnabled1 = set_upload_enable_comments.isChecked();
|
boolean commentEnabled1 = binding.setUploadEnableComments.isChecked();
|
||||||
videoParams = new VideoParams();
|
videoParams = new VideoParams();
|
||||||
videoParams.setName(title1);
|
videoParams.setName(title1);
|
||||||
videoParams.setDescription(description);
|
videoParams.setDescription(description);
|
||||||
@ -460,28 +452,31 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
videoParams.setCategory(finalCategoryToSend.getId());
|
videoParams.setCategory(finalCategoryToSend.getId());
|
||||||
videoParams.setLicence(String.valueOf(finalLicenseToSend.getId()));
|
videoParams.setLicence(String.valueOf(finalLicenseToSend.getId()));
|
||||||
videoParams.setLanguage(finalLanguageToSend.getId());
|
videoParams.setLanguage(finalLanguageToSend.getId());
|
||||||
|
|
||||||
videoParams.setChannelId(channelToSendId);
|
videoParams.setChannelId(channelToSendId);
|
||||||
videoParams.setPrivacy(finalPrivacyToSend.getId());
|
videoParams.setPrivacy(finalPrivacyToSend.getId());
|
||||||
List<String> tags = p_video_tags.getTags();
|
List<String> tags = binding.pVideoTags.getTags();
|
||||||
|
if (tags.size() > 5) {
|
||||||
|
Toasty.error(PeertubeEditUploadActivity.this, getString(R.string.max_tag_size), Toast.LENGTH_LONG).show();
|
||||||
|
return;
|
||||||
|
}
|
||||||
videoParams.setTags(tags);
|
videoParams.setTags(tags);
|
||||||
set_upload_submit.setEnabled(false);
|
binding.setUploadSubmit.setEnabled(false);
|
||||||
MyVideoVM myVideoVM = new ViewModelProvider(PeertubeEditUploadActivity.this).get(MyVideoVM.class);
|
MyVideoVM myVideoVM = new ViewModelProvider(PeertubeEditUploadActivity.this).get(MyVideoVM.class);
|
||||||
myVideoVM.updateVideo(videoId, videoParams, null, null).observe(PeertubeEditUploadActivity.this, this::manageUpdate);
|
myVideoVM.updateVideo(videoId, videoParams, inputData, inputData).observe(PeertubeEditUploadActivity.this, this::manageUpdate);
|
||||||
});
|
});
|
||||||
|
|
||||||
set_upload_privacy.setSelection(privacyPosition, false);
|
binding.setUploadPrivacy.setSelection(privacyPosition, false);
|
||||||
updatePrivacyPosition(privacyPosition);
|
updatePrivacyPosition(privacyPosition);
|
||||||
set_upload_languages.setSelection(languagePosition, false);
|
binding.setUploadLanguages.setSelection(languagePosition, false);
|
||||||
updateLanguagesPosition(languagePosition);
|
updateLanguagesPosition(languagePosition);
|
||||||
set_upload_licenses.setSelection(licensePosition, false);
|
binding.setUploadLicenses.setSelection(licensePosition, false);
|
||||||
updateLicensePosition(licensePosition);
|
updateLicensePosition(licensePosition);
|
||||||
set_upload_categories.setSelection(categoryPosition, false);
|
binding.setUploadCategories.setSelection(categoryPosition, false);
|
||||||
updateCategoryPosition(categoryPosition);
|
updateCategoryPosition(categoryPosition);
|
||||||
|
|
||||||
List<String> tags = video.getTags();
|
List<String> tags = video.getTags();
|
||||||
if (tags != null && tags.size() > 0) {
|
if (tags != null && tags.size() > 0) {
|
||||||
p_video_tags.setTags(tags.toArray(new String[0]));
|
binding.pVideoTags.setTags(tags.toArray(new String[0]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -572,53 +567,12 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
Toasty.error(PeertubeEditUploadActivity.this, getString(R.string.toot_select_image_error), Toast.LENGTH_LONG).show();
|
Toasty.error(PeertubeEditUploadActivity.this, getString(R.string.toot_select_image_error), Toast.LENGTH_LONG).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
UploadNotificationConfig uploadConfig = new UploadNotificationConfig();
|
inputData = data.getData();
|
||||||
uploadConfig.getCompleted().autoClear = true;
|
Glide.with(PeertubeEditUploadActivity.this)
|
||||||
try {
|
.load(data.getData())
|
||||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
|
.thumbnail(0.1f)
|
||||||
String token = sharedpreferences.getString(Helper.PREF_KEY_OAUTH_TOKEN, null);
|
.apply(new RequestOptions().transform(new CenterCrop(), new RoundedCorners(10)))
|
||||||
Uri uri = data.getData();
|
.into(binding.pVideoPreview);
|
||||||
try {
|
|
||||||
String uploadId = UUID.randomUUID().toString();
|
|
||||||
new MultipartUploadRequest(PeertubeEditUploadActivity.this, uploadId, "https://" + Helper.getLiveInstance(PeertubeEditUploadActivity.this) + "/api/v1/" + String.format("/videos/%s", video.getId()))
|
|
||||||
.addFileToUpload(uri.toString().replace("file://", ""), "thumbnailfile")
|
|
||||||
.setMethod("PUT")
|
|
||||||
.addHeader("Authorization", "Bearer " + token)
|
|
||||||
.setNotificationConfig(uploadConfig)
|
|
||||||
.setMaxRetries(2)
|
|
||||||
.setDelegate(new UploadStatusDelegate() {
|
|
||||||
@Override
|
|
||||||
public void onProgress(Context context, UploadInfo uploadInfo) {
|
|
||||||
// your code here
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onError(Context context, UploadInfo uploadInfo, ServerResponse serverResponse,
|
|
||||||
Exception exception) {
|
|
||||||
Toasty.error(PeertubeEditUploadActivity.this, getString(R.string.toast_error), Toast.LENGTH_LONG).show();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onCompleted(Context context, UploadInfo uploadInfo, ServerResponse serverResponse) {
|
|
||||||
Glide.with(PeertubeEditUploadActivity.this)
|
|
||||||
.load(uri)
|
|
||||||
.into(p_video_preview);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onCancelled(Context context, UploadInfo uploadInfo) {
|
|
||||||
// your code here
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.startUpload();
|
|
||||||
} catch (FileNotFoundException e) {
|
|
||||||
Toasty.error(PeertubeEditUploadActivity.this, getString(R.string.toast_error), Toast.LENGTH_LONG).show();
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
} catch (MalformedURLException e) {
|
|
||||||
Toasty.error(PeertubeEditUploadActivity.this, getString(R.string.toast_error), Toast.LENGTH_LONG).show();
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -651,7 +605,7 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
ArrayAdapter<String> adapterChannel = new ArrayAdapter<>(PeertubeEditUploadActivity.this,
|
ArrayAdapter<String> adapterChannel = new ArrayAdapter<>(PeertubeEditUploadActivity.this,
|
||||||
android.R.layout.simple_spinner_dropdown_item, channelName);
|
android.R.layout.simple_spinner_dropdown_item, channelName);
|
||||||
set_upload_channel.setAdapter(adapterChannel);
|
binding.setUploadChannel.setAdapter(adapterChannel);
|
||||||
int channelPosition = 0;
|
int channelPosition = 0;
|
||||||
if (channels.containsKey(channel.getName())) {
|
if (channels.containsKey(channel.getName())) {
|
||||||
LinkedHashMap<String, String> channelsIterator = new LinkedHashMap<>(channels);
|
LinkedHashMap<String, String> channelsIterator = new LinkedHashMap<>(channels);
|
||||||
@ -666,9 +620,15 @@ public class PeertubeEditUploadActivity extends AppCompatActivity {
|
|||||||
channelPosition++;
|
channelPosition++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_upload_channel.setSelection(channelPosition, false);
|
binding.setUploadChannel.setSelection(channelPosition, false);
|
||||||
updateUploadChannel(channelPosition);
|
updateUploadChannel(channelPosition);
|
||||||
set_upload_submit.setEnabled(true);
|
binding.setUploadSubmit.setEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onBackPressed() {
|
||||||
|
super.onBackPressed();
|
||||||
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings({"unused", "RedundantSuppression"})
|
@SuppressWarnings({"unused", "RedundantSuppression"})
|
||||||
|
@ -38,7 +38,8 @@ import app.fedilab.fedilabtube.client.APIResponse;
|
|||||||
import app.fedilab.fedilabtube.client.RetrofitPeertubeAPI;
|
import app.fedilab.fedilabtube.client.RetrofitPeertubeAPI;
|
||||||
import app.fedilab.fedilabtube.client.entities.AccountCreation;
|
import app.fedilab.fedilabtube.client.entities.AccountCreation;
|
||||||
import app.fedilab.fedilabtube.databinding.ActivityRegisterPeertubeBinding;
|
import app.fedilab.fedilabtube.databinding.ActivityRegisterPeertubeBinding;
|
||||||
import app.fedilab.fedilabtube.helper.Helper;
|
import app.fedilab.fedilabtube.helper.HelperAcadInstance;
|
||||||
|
import app.fedilab.fedilabtube.helper.HelperInstance;
|
||||||
import es.dmoral.toasty.Toasty;
|
import es.dmoral.toasty.Toasty;
|
||||||
|
|
||||||
import static app.fedilab.fedilabtube.MainActivity.PICK_INSTANCE;
|
import static app.fedilab.fedilabtube.MainActivity.PICK_INSTANCE;
|
||||||
@ -49,6 +50,7 @@ public class PeertubeRegisterActivity extends AppCompatActivity {
|
|||||||
private String instance;
|
private String instance;
|
||||||
private ActivityRegisterPeertubeBinding binding;
|
private ActivityRegisterPeertubeBinding binding;
|
||||||
|
|
||||||
|
@SuppressLint("SetTextI18n")
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
@ -61,8 +63,7 @@ public class PeertubeRegisterActivity extends AppCompatActivity {
|
|||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
|
|
||||||
|
|
||||||
|
if (BuildConfig.full_instances && BuildConfig.instance_switcher) {
|
||||||
if (BuildConfig.full_instances) {
|
|
||||||
binding.loginInstanceContainer.setVisibility(View.VISIBLE);
|
binding.loginInstanceContainer.setVisibility(View.VISIBLE);
|
||||||
binding.titleLoginInstance.setVisibility(View.VISIBLE);
|
binding.titleLoginInstance.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
@ -70,6 +71,10 @@ public class PeertubeRegisterActivity extends AppCompatActivity {
|
|||||||
binding.titleLoginInstance.setVisibility(View.GONE);
|
binding.titleLoginInstance.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (BuildConfig.FLAVOR.compareTo("queermotion") == 0) {
|
||||||
|
binding.loginInstance.setText("queermotion.org");
|
||||||
|
}
|
||||||
|
|
||||||
binding.username.setOnFocusChangeListener((view, focused) -> {
|
binding.username.setOnFocusChangeListener((view, focused) -> {
|
||||||
if (!focused && binding.username.getText() != null) {
|
if (!focused && binding.username.getText() != null) {
|
||||||
Pattern patternUsername = Pattern.compile("^[a-z0-9._]{1,50}$");
|
Pattern patternUsername = Pattern.compile("^[a-z0-9._]{1,50}$");
|
||||||
@ -114,41 +119,41 @@ public class PeertubeRegisterActivity extends AppCompatActivity {
|
|||||||
setTextAgreement();
|
setTextAgreement();
|
||||||
binding.signup.setOnClickListener(view -> {
|
binding.signup.setOnClickListener(view -> {
|
||||||
binding.errorMessage.setVisibility(View.GONE);
|
binding.errorMessage.setVisibility(View.GONE);
|
||||||
if ( binding.username.getText() == null || binding.email.getText() == null || binding.password.getText() == null || binding.passwordConfirm.getText() == null || binding.username.getText().toString().trim().length() == 0 || binding.email.getText().toString().trim().length() == 0 ||
|
if (binding.username.getText() == null || binding.email.getText() == null || binding.password.getText() == null || binding.passwordConfirm.getText() == null || binding.username.getText().toString().trim().length() == 0 || binding.email.getText().toString().trim().length() == 0 ||
|
||||||
binding.password.getText().toString().trim().length() == 0 || binding.passwordConfirm.getText().toString().trim().length() == 0 || ! binding.agreement.isChecked()) {
|
binding.password.getText().toString().trim().length() == 0 || binding.passwordConfirm.getText().toString().trim().length() == 0 || !binding.agreement.isChecked()) {
|
||||||
Toasty.error(PeertubeRegisterActivity.this, getString(R.string.all_field_filled)).show();
|
Toasty.error(PeertubeRegisterActivity.this, getString(R.string.all_field_filled)).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! binding.password.getText().toString().trim().equals( binding.passwordConfirm.getText().toString().trim())) {
|
if (!binding.password.getText().toString().trim().equals(binding.passwordConfirm.getText().toString().trim())) {
|
||||||
Toasty.error(PeertubeRegisterActivity.this, getString(R.string.password_error)).show();
|
Toasty.error(PeertubeRegisterActivity.this, getString(R.string.password_error)).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!android.util.Patterns.EMAIL_ADDRESS.matcher( binding.email.getText().toString().trim()).matches()) {
|
if (!android.util.Patterns.EMAIL_ADDRESS.matcher(binding.email.getText().toString().trim()).matches()) {
|
||||||
Toasty.error(PeertubeRegisterActivity.this, getString(R.string.email_error)).show();
|
Toasty.error(PeertubeRegisterActivity.this, getString(R.string.email_error)).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String[] emailArray = binding.email.getText().toString().split("@");
|
String[] emailArray = binding.email.getText().toString().split("@");
|
||||||
if (!BuildConfig.full_instances) {
|
if (!BuildConfig.full_instances) {
|
||||||
if (emailArray.length > 1 && !Arrays.asList(Helper.valideEmails).contains(emailArray[1])) {
|
if (emailArray.length > 1 && !Arrays.asList(HelperAcadInstance.valideEmails).contains(emailArray[1])) {
|
||||||
Toasty.error(PeertubeRegisterActivity.this, getString(R.string.email_error_domain, emailArray[1])).show();
|
Toasty.error(PeertubeRegisterActivity.this, getString(R.string.email_error_domain, emailArray[1])).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( binding.password.getText().toString().trim().length() < 8) {
|
if (binding.password.getText().toString().trim().length() < 8) {
|
||||||
Toasty.error(PeertubeRegisterActivity.this, getString(R.string.password_too_short)).show();
|
Toasty.error(PeertubeRegisterActivity.this, getString(R.string.password_too_short)).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( binding.username.getText().toString().matches("[a-z0-9_]")) {
|
if (binding.username.getText().toString().matches("[a-z0-9_]")) {
|
||||||
Toasty.error(PeertubeRegisterActivity.this, getString(R.string.username_error)).show();
|
Toasty.error(PeertubeRegisterActivity.this, getString(R.string.username_error)).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
binding.signup.setEnabled(false);
|
binding.signup.setEnabled(false);
|
||||||
|
|
||||||
if (BuildConfig.full_instances) {
|
if (BuildConfig.full_instances) {
|
||||||
if ( binding.loginInstance.getText() != null) {
|
if (binding.loginInstance.getText() != null) {
|
||||||
instance = binding.loginInstance.getText().toString();
|
instance = binding.loginInstance.getText().toString();
|
||||||
} else {
|
} else {
|
||||||
instance = "";
|
instance = "";
|
||||||
}
|
}
|
||||||
@ -158,18 +163,17 @@ public class PeertubeRegisterActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
String host = emailArray[1];
|
instance = HelperInstance.getLiveInstance(PeertubeRegisterActivity.this);
|
||||||
instance = Helper.getPeertubeUrl(host);
|
|
||||||
}
|
}
|
||||||
if (instance != null) {
|
if (instance != null) {
|
||||||
instance = instance.toLowerCase().trim();
|
instance = instance.toLowerCase().trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
AccountCreation accountCreation = new AccountCreation();
|
AccountCreation accountCreation = new AccountCreation();
|
||||||
accountCreation.setEmail( binding.email.getText().toString().trim());
|
accountCreation.setEmail(binding.email.getText().toString().trim());
|
||||||
accountCreation.setPassword( binding.password.getText().toString().trim());
|
accountCreation.setPassword(binding.password.getText().toString().trim());
|
||||||
accountCreation.setPasswordConfirm( binding.passwordConfirm.getText().toString().trim());
|
accountCreation.setPasswordConfirm(binding.passwordConfirm.getText().toString().trim());
|
||||||
accountCreation.setUsername( binding.username.getText().toString().trim());
|
accountCreation.setUsername(binding.username.getText().toString().trim());
|
||||||
accountCreation.setInstance(instance);
|
accountCreation.setInstance(instance);
|
||||||
|
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
@ -259,7 +263,7 @@ public class PeertubeRegisterActivity extends AppCompatActivity {
|
|||||||
agreement_text.setMovementMethod(null);
|
agreement_text.setMovementMethod(null);
|
||||||
agreement_text.setText(null);
|
agreement_text.setText(null);
|
||||||
if (BuildConfig.full_instances) {
|
if (BuildConfig.full_instances) {
|
||||||
if ( binding.loginInstance.getText() != null) {
|
if (binding.loginInstance.getText() != null) {
|
||||||
content_agreement = getString(R.string.agreement_check_peertube,
|
content_agreement = getString(R.string.agreement_check_peertube,
|
||||||
"<a href='https://" + binding.loginInstance.getText().toString() + "/about/instance#terms-section' >" + tos + "</a>"
|
"<a href='https://" + binding.loginInstance.getText().toString() + "/about/instance#terms-section' >" + tos + "</a>"
|
||||||
);
|
);
|
||||||
|
@ -21,63 +21,63 @@ import android.content.Context;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.database.Cursor;
|
import android.graphics.Color;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.provider.OpenableColumns;
|
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.Button;
|
|
||||||
import android.widget.EditText;
|
|
||||||
import android.widget.Spinner;
|
|
||||||
import android.widget.TextView;
|
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.core.app.ActivityCompat;
|
import androidx.core.app.ActivityCompat;
|
||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
|
import androidx.documentfile.provider.DocumentFile;
|
||||||
import androidx.lifecycle.ViewModelProvider;
|
import androidx.lifecycle.ViewModelProvider;
|
||||||
|
|
||||||
import net.gotev.uploadservice.MultipartUploadRequest;
|
import net.gotev.uploadservice.data.UploadNotificationAction;
|
||||||
import net.gotev.uploadservice.UploadNotificationAction;
|
import net.gotev.uploadservice.data.UploadNotificationConfig;
|
||||||
import net.gotev.uploadservice.UploadNotificationConfig;
|
import net.gotev.uploadservice.data.UploadNotificationStatusConfig;
|
||||||
|
import net.gotev.uploadservice.extensions.ContextExtensionsKt;
|
||||||
|
import net.gotev.uploadservice.protocols.multipart.MultipartUploadRequest;
|
||||||
|
|
||||||
import java.io.File;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import app.fedilab.fedilabtube.client.APIResponse;
|
import app.fedilab.fedilabtube.client.APIResponse;
|
||||||
|
import app.fedilab.fedilabtube.client.RetrofitPeertubeAPI;
|
||||||
import app.fedilab.fedilabtube.client.data.ChannelData;
|
import app.fedilab.fedilabtube.client.data.ChannelData;
|
||||||
|
import app.fedilab.fedilabtube.client.entities.UserMe;
|
||||||
|
import app.fedilab.fedilabtube.databinding.ActivityPeertubeUploadBinding;
|
||||||
import app.fedilab.fedilabtube.helper.Helper;
|
import app.fedilab.fedilabtube.helper.Helper;
|
||||||
|
import app.fedilab.fedilabtube.helper.HelperInstance;
|
||||||
import app.fedilab.fedilabtube.viewmodel.ChannelsVM;
|
import app.fedilab.fedilabtube.viewmodel.ChannelsVM;
|
||||||
import es.dmoral.toasty.Toasty;
|
import es.dmoral.toasty.Toasty;
|
||||||
|
|
||||||
import static app.fedilab.fedilabtube.MainActivity.peertubeInformation;
|
import static app.fedilab.fedilabtube.MainActivity.userMe;
|
||||||
import static app.fedilab.fedilabtube.client.RetrofitPeertubeAPI.DataType.MY_CHANNELS;
|
import static app.fedilab.fedilabtube.client.RetrofitPeertubeAPI.DataType.MY_CHANNELS;
|
||||||
|
import static app.fedilab.fedilabtube.helper.Helper.peertubeInformation;
|
||||||
|
|
||||||
|
|
||||||
public class PeertubeUploadActivity extends AppCompatActivity {
|
public class PeertubeUploadActivity extends AppCompatActivity {
|
||||||
|
|
||||||
|
|
||||||
private final int PICK_IVDEO = 52378;
|
|
||||||
public static final int MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE = 724;
|
public static final int MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE = 724;
|
||||||
private Button set_upload_file, set_upload_submit;
|
private final int PICK_IVDEO = 52378;
|
||||||
private Spinner set_upload_privacy, set_upload_channel;
|
|
||||||
private TextView set_upload_file_name;
|
|
||||||
private EditText video_title;
|
|
||||||
private HashMap<String, String> channels;
|
private HashMap<String, String> channels;
|
||||||
private Uri uri;
|
private Uri uri;
|
||||||
private String filename;
|
private String filename;
|
||||||
private HashMap<Integer, String> privacyToSend;
|
private HashMap<Integer, String> privacyToSend;
|
||||||
private HashMap<String, String> channelToSend;
|
private HashMap<String, String> channelToSend;
|
||||||
|
private ActivityPeertubeUploadBinding binding;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
@ -86,14 +86,60 @@ public class PeertubeUploadActivity extends AppCompatActivity {
|
|||||||
if (getSupportActionBar() != null)
|
if (getSupportActionBar() != null)
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
|
|
||||||
setContentView(R.layout.activity_peertube_upload);
|
binding = ActivityPeertubeUploadBinding.inflate(getLayoutInflater());
|
||||||
|
View view = binding.getRoot();
|
||||||
|
setContentView(view);
|
||||||
|
|
||||||
|
|
||||||
|
new Thread(() -> {
|
||||||
|
UserMe.VideoQuota videoQuotaReply = new RetrofitPeertubeAPI(PeertubeUploadActivity.this).getVideoQuota();
|
||||||
|
runOnUiThread(() -> {
|
||||||
|
if (videoQuotaReply != null) {
|
||||||
|
long videoQuota = videoQuotaReply.getVideoQuotaUsed();
|
||||||
|
long dailyQuota = videoQuotaReply.getVideoQuotaUsedDaily();
|
||||||
|
long instanceVideoQuota = userMe.getVideoQuota();
|
||||||
|
long instanceDailyQuota = userMe.getVideoQuotaDaily();
|
||||||
|
|
||||||
|
if (instanceVideoQuota != -1 && instanceVideoQuota != 0) {
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
|
binding.totalQuota.setProgress((int) (videoQuota * 100 / instanceVideoQuota), true);
|
||||||
|
} else {
|
||||||
|
binding.totalQuota.setProgress((int) (videoQuota * 100 / instanceVideoQuota));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
int progress = videoQuota > 0 ? 30 : 0;
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
|
binding.totalQuota.setProgress(progress, true);
|
||||||
|
} else {
|
||||||
|
binding.totalQuota.setProgress(progress);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (instanceDailyQuota != -1 && instanceDailyQuota != 0) {
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
|
binding.dailyQuota.setProgress((int) (dailyQuota * 100 / instanceDailyQuota), true);
|
||||||
|
} else {
|
||||||
|
binding.dailyQuota.setProgress((int) (dailyQuota * 100 / instanceDailyQuota));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
int progress = dailyQuota > 0 ? 30 : 0;
|
||||||
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
|
binding.dailyQuota.setProgress(progress, true);
|
||||||
|
} else {
|
||||||
|
binding.dailyQuota.setProgress(progress);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
binding.totalQuotaValue.setText(
|
||||||
|
String.format(Locale.getDefault(), "%s/%s",
|
||||||
|
Helper.returnRoundedSize(PeertubeUploadActivity.this, videoQuota),
|
||||||
|
Helper.returnRoundedSize(PeertubeUploadActivity.this, instanceVideoQuota)));
|
||||||
|
binding.dailyQuotaValue.setText(
|
||||||
|
String.format(Locale.getDefault(), "%s/%s",
|
||||||
|
Helper.returnRoundedSize(PeertubeUploadActivity.this, dailyQuota),
|
||||||
|
Helper.returnRoundedSize(PeertubeUploadActivity.this, instanceDailyQuota)));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}).start();
|
||||||
|
|
||||||
set_upload_file = findViewById(R.id.set_upload_file);
|
|
||||||
set_upload_file_name = findViewById(R.id.set_upload_file_name);
|
|
||||||
set_upload_channel = findViewById(R.id.set_upload_channel);
|
|
||||||
set_upload_privacy = findViewById(R.id.set_upload_privacy);
|
|
||||||
set_upload_submit = findViewById(R.id.set_upload_submit);
|
|
||||||
video_title = findViewById(R.id.video_title);
|
|
||||||
|
|
||||||
ChannelsVM viewModelC = new ViewModelProvider(PeertubeUploadActivity.this).get(ChannelsVM.class);
|
ChannelsVM viewModelC = new ViewModelProvider(PeertubeUploadActivity.this).get(ChannelsVM.class);
|
||||||
viewModelC.get(MY_CHANNELS, null).observe(PeertubeUploadActivity.this, this::manageVIewChannels);
|
viewModelC.get(MY_CHANNELS, null).observe(PeertubeUploadActivity.this, this::manageVIewChannels);
|
||||||
@ -109,33 +155,18 @@ public class PeertubeUploadActivity extends AppCompatActivity {
|
|||||||
Toasty.error(PeertubeUploadActivity.this, getString(R.string.toot_select_image_error), Toast.LENGTH_LONG).show();
|
Toasty.error(PeertubeUploadActivity.this, getString(R.string.toot_select_image_error), Toast.LENGTH_LONG).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
set_upload_submit.setEnabled(true);
|
binding.setUploadSubmit.setEnabled(true);
|
||||||
|
|
||||||
uri = data.getData();
|
uri = data.getData();
|
||||||
|
|
||||||
String uriString = uri.toString();
|
|
||||||
File myFile = new File(uriString);
|
|
||||||
filename = null;
|
filename = null;
|
||||||
if (uriString.startsWith("content://")) {
|
DocumentFile documentFile = DocumentFile.fromSingleUri(this, uri);
|
||||||
Cursor cursor = null;
|
if (documentFile != null) {
|
||||||
try {
|
filename = documentFile.getName();
|
||||||
cursor = getContentResolver().query(uri, null, null, null, null);
|
|
||||||
if (cursor != null && cursor.moveToFirst()) {
|
|
||||||
filename = cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
assert cursor != null;
|
|
||||||
cursor.close();
|
|
||||||
}
|
|
||||||
} else if (uriString.startsWith("file://")) {
|
|
||||||
filename = myFile.getName();
|
|
||||||
}
|
}
|
||||||
if (filename == null) {
|
if (filename == null) {
|
||||||
filename = new Date().toString();
|
filename = new Date().toString();
|
||||||
}
|
}
|
||||||
set_upload_file_name.setVisibility(View.VISIBLE);
|
binding.setUploadFileName.setVisibility(View.VISIBLE);
|
||||||
set_upload_file_name.setText(filename);
|
binding.setUploadFileName.setText(filename);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +210,7 @@ public class PeertubeUploadActivity extends AppCompatActivity {
|
|||||||
channelToSend.put(channelName[0], channelId[0]);
|
channelToSend.put(channelName[0], channelId[0]);
|
||||||
ArrayAdapter<String> adapterChannel = new ArrayAdapter<>(PeertubeUploadActivity.this,
|
ArrayAdapter<String> adapterChannel = new ArrayAdapter<>(PeertubeUploadActivity.this,
|
||||||
android.R.layout.simple_spinner_dropdown_item, channelName);
|
android.R.layout.simple_spinner_dropdown_item, channelName);
|
||||||
set_upload_channel.setAdapter(adapterChannel);
|
binding.setUploadChannel.setAdapter(adapterChannel);
|
||||||
|
|
||||||
if (peertubeInformation == null) {
|
if (peertubeInformation == null) {
|
||||||
return;
|
return;
|
||||||
@ -209,10 +240,10 @@ public class PeertubeUploadActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
ArrayAdapter<String> adapterPrivacies = new ArrayAdapter<>(PeertubeUploadActivity.this,
|
ArrayAdapter<String> adapterPrivacies = new ArrayAdapter<>(PeertubeUploadActivity.this,
|
||||||
android.R.layout.simple_spinner_dropdown_item, privaciesA);
|
android.R.layout.simple_spinner_dropdown_item, privaciesA);
|
||||||
set_upload_privacy.setAdapter(adapterPrivacies);
|
binding.setUploadPrivacy.setAdapter(adapterPrivacies);
|
||||||
|
|
||||||
//Manage privacies
|
//Manage privacies
|
||||||
set_upload_privacy.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
binding.setUploadPrivacy.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||||
LinkedHashMap<Integer, String> privaciesCheck = new LinkedHashMap<>(peertubeInformation.getPrivacies());
|
LinkedHashMap<Integer, String> privaciesCheck = new LinkedHashMap<>(peertubeInformation.getPrivacies());
|
||||||
@ -235,9 +266,9 @@ public class PeertubeUploadActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
set_upload_file.setEnabled(true);
|
binding.setUploadFile.setEnabled(true);
|
||||||
|
|
||||||
set_upload_file.setOnClickListener(v -> {
|
binding.setUploadFile.setOnClickListener(v -> {
|
||||||
if (ContextCompat.checkSelfPermission(PeertubeUploadActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE) !=
|
if (ContextCompat.checkSelfPermission(PeertubeUploadActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE) !=
|
||||||
PackageManager.PERMISSION_GRANTED) {
|
PackageManager.PERMISSION_GRANTED) {
|
||||||
ActivityCompat.requestPermissions(PeertubeUploadActivity.this,
|
ActivityCompat.requestPermissions(PeertubeUploadActivity.this,
|
||||||
@ -245,7 +276,7 @@ public class PeertubeUploadActivity extends AppCompatActivity {
|
|||||||
MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);
|
MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
|
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
|
||||||
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
||||||
intent.setType("*/*");
|
intent.setType("*/*");
|
||||||
String[] mimetypes = {"video/*"};
|
String[] mimetypes = {"video/*"};
|
||||||
@ -255,7 +286,7 @@ public class PeertubeUploadActivity extends AppCompatActivity {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//Manage languages
|
//Manage languages
|
||||||
set_upload_channel.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
binding.setUploadChannel.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
|
||||||
LinkedHashMap<String, String> channelsCheck = new LinkedHashMap<>(channels);
|
LinkedHashMap<String, String> channelsCheck = new LinkedHashMap<>(channels);
|
||||||
@ -279,44 +310,33 @@ public class PeertubeUploadActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
set_upload_submit.setOnClickListener(v -> {
|
binding.setUploadSubmit.setOnClickListener(v -> {
|
||||||
if (uri != null) {
|
if (uri != null) {
|
||||||
Map.Entry<String, String> channelM = channelToSend.entrySet().iterator().next();
|
Map.Entry<String, String> channelM = channelToSend.entrySet().iterator().next();
|
||||||
String idChannel = channelM.getValue();
|
String idChannel = channelM.getValue();
|
||||||
Map.Entry<Integer, String> privacyM = privacyToSend.entrySet().iterator().next();
|
Map.Entry<Integer, String> privacyM = privacyToSend.entrySet().iterator().next();
|
||||||
Integer idPrivacy = privacyM.getKey();
|
Integer idPrivacy = privacyM.getKey();
|
||||||
|
if (binding.videoTitle.getText() != null && binding.videoTitle.getText().toString().trim().length() > 0) {
|
||||||
|
filename = binding.videoTitle.getText().toString().trim();
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
|
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
|
||||||
String token = sharedpreferences.getString(Helper.PREF_KEY_OAUTH_TOKEN, null);
|
String token = Helper.getToken(PeertubeUploadActivity.this);
|
||||||
UploadNotificationConfig uploadConfig = new UploadNotificationConfig();
|
|
||||||
Intent in = new Intent(PeertubeUploadActivity.this, PeertubeEditUploadActivity.class);
|
|
||||||
PendingIntent clickIntent = PendingIntent.getActivity(PeertubeUploadActivity.this, 1, in, PendingIntent.FLAG_UPDATE_CURRENT);
|
|
||||||
uploadConfig
|
|
||||||
.setClearOnActionForAllStatuses(true);
|
|
||||||
|
|
||||||
|
new MultipartUploadRequest(PeertubeUploadActivity.this, "https://" + HelperInstance.getLiveInstance(PeertubeUploadActivity.this) + "/api/v1/videos/upload")
|
||||||
uploadConfig.getProgress().message = getString(R.string.uploading);
|
.setMethod("POST")
|
||||||
uploadConfig.getCompleted().message = getString(R.string.upload_video_success);
|
.setBearerAuth(token)
|
||||||
uploadConfig.getError().message = getString(R.string.toast_error);
|
.addHeader("User-Agent", getString(R.string.app_name) + "/" + BuildConfig.VERSION_NAME)
|
||||||
uploadConfig.getCancelled().message = getString(R.string.toast_cancelled);
|
|
||||||
uploadConfig.getCompleted().actions.add(new UploadNotificationAction(R.drawable.ic_baseline_check_24, getString(R.string.video_uploaded_action), clickIntent));
|
|
||||||
|
|
||||||
if (video_title != null && video_title.getText() != null && video_title.getText().toString().trim().length() > 0) {
|
|
||||||
filename = video_title.getText().toString().trim();
|
|
||||||
}
|
|
||||||
String uploadId = UUID.randomUUID().toString();
|
|
||||||
new MultipartUploadRequest(PeertubeUploadActivity.this, uploadId, "https://" + Helper.getLiveInstance(PeertubeUploadActivity.this) + "/api/v1/videos/upload")
|
|
||||||
.addFileToUpload(uri.toString().replace("file://", ""), "videofile")
|
|
||||||
.addHeader("Authorization", "Bearer " + token)
|
|
||||||
.setNotificationConfig(uploadConfig)
|
|
||||||
.addParameter("name", filename)
|
|
||||||
.addParameter("channelId", idChannel)
|
|
||||||
.addParameter("privacy", String.valueOf(idPrivacy))
|
.addParameter("privacy", String.valueOf(idPrivacy))
|
||||||
.addParameter("nsfw", "false")
|
.addParameter("nsfw", "false")
|
||||||
|
.addParameter("name", filename)
|
||||||
.addParameter("commentsEnabled", "true")
|
.addParameter("commentsEnabled", "true")
|
||||||
|
.addParameter("downloadEnabled", "true")
|
||||||
.addParameter("waitTranscoding", "true")
|
.addParameter("waitTranscoding", "true")
|
||||||
.setMaxRetries(3)
|
.addParameter("channelId", idChannel)
|
||||||
|
.addFileToUpload(uri.toString(), "videofile")
|
||||||
|
.setNotificationConfig((context, uploadId) -> getNotificationConfig(uploadId))
|
||||||
|
.setMaxRetries(2)
|
||||||
.startUpload();
|
.startUpload();
|
||||||
finish();
|
finish();
|
||||||
} catch (Exception exc) {
|
} catch (Exception exc) {
|
||||||
@ -325,4 +345,74 @@ public class PeertubeUploadActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UploadNotificationConfig getNotificationConfig(String uploadId) {
|
||||||
|
PendingIntent clickIntent = PendingIntent.getActivity(
|
||||||
|
PeertubeUploadActivity.this, 1, new Intent(this, PeertubeEditUploadActivity.class), PendingIntent.FLAG_UPDATE_CURRENT);
|
||||||
|
|
||||||
|
final boolean autoClear = false;
|
||||||
|
final boolean clearOnAction = true;
|
||||||
|
final boolean ringToneEnabled = true;
|
||||||
|
final ArrayList<UploadNotificationAction> noActions = new ArrayList<>(1);
|
||||||
|
|
||||||
|
final UploadNotificationAction cancelAction = new UploadNotificationAction(
|
||||||
|
R.drawable.ic_baseline_cancel_24,
|
||||||
|
getString(R.string.cancel),
|
||||||
|
ContextExtensionsKt.getCancelUploadIntent(this, uploadId)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
final ArrayList<UploadNotificationAction> progressActions = new ArrayList<>(1);
|
||||||
|
progressActions.add(cancelAction);
|
||||||
|
|
||||||
|
UploadNotificationStatusConfig progress = new UploadNotificationStatusConfig(
|
||||||
|
getString(R.string.app_name),
|
||||||
|
getString(R.string.uploading),
|
||||||
|
R.drawable.ic_baseline_cloud_upload_24,
|
||||||
|
Color.BLUE,
|
||||||
|
null,
|
||||||
|
clickIntent,
|
||||||
|
progressActions,
|
||||||
|
clearOnAction,
|
||||||
|
autoClear
|
||||||
|
);
|
||||||
|
|
||||||
|
UploadNotificationStatusConfig success = new UploadNotificationStatusConfig(
|
||||||
|
getString(R.string.app_name),
|
||||||
|
getString(R.string.upload_video_success),
|
||||||
|
R.drawable.ic_baseline_check_24,
|
||||||
|
Color.GREEN,
|
||||||
|
null,
|
||||||
|
clickIntent,
|
||||||
|
noActions,
|
||||||
|
clearOnAction,
|
||||||
|
autoClear
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
UploadNotificationStatusConfig error = new UploadNotificationStatusConfig(
|
||||||
|
getString(R.string.app_name),
|
||||||
|
getString(R.string.toast_error),
|
||||||
|
R.drawable.ic_baseline_error_24,
|
||||||
|
Color.RED,
|
||||||
|
null,
|
||||||
|
clickIntent,
|
||||||
|
noActions,
|
||||||
|
clearOnAction,
|
||||||
|
autoClear
|
||||||
|
);
|
||||||
|
|
||||||
|
UploadNotificationStatusConfig cancelled = new UploadNotificationStatusConfig(
|
||||||
|
getString(R.string.app_name),
|
||||||
|
getString(R.string.toast_cancelled),
|
||||||
|
R.drawable.ic_baseline_cancel_24,
|
||||||
|
Color.YELLOW,
|
||||||
|
null,
|
||||||
|
clickIntent,
|
||||||
|
noActions,
|
||||||
|
clearOnAction
|
||||||
|
);
|
||||||
|
|
||||||
|
return new UploadNotificationConfig(FedilabTube.UPLOAD_CHANNEL_ID, ringToneEnabled, progress, success, error, cancelled);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|