- fixed default NSFW setting

This commit is contained in:
Stefan Schueller 2018-11-11 01:15:06 +01:00
parent 6e7d85c74a
commit 6c53bf6c22
4 changed files with 22 additions and 4 deletions

View File

@ -6,8 +6,8 @@ android {
applicationId "net.schueller.peertube"
minSdkVersion 23
targetSdkVersion 28
versionCode 101
versionName "1.0.1"
versionCode 102
versionName "1.0.2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {

View File

@ -115,7 +115,7 @@ public class SearchActivity extends AppCompatActivity {
isLoading = true;
SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
String nsfw = sharedPref.getBoolean("pref_show_nsfw", true) ? "both" : "false";
String nsfw = sharedPref.getBoolean("pref_show_nsfw", false) ? "both" : "false";
String apiBaseURL = APIUrlHelper.getUrl(this);

View File

@ -238,7 +238,7 @@ public class VideoListActivity extends AppCompatActivity {
isLoading = true;
SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
String nsfw = sharedPref.getBoolean("pref_show_nsfw", true) ? "both" : "false";
String nsfw = sharedPref.getBoolean("pref_show_nsfw", false) ? "both" : "false";
String apiBaseURL = APIUrlHelper.getUrl(this);

View File

@ -0,0 +1,18 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="16dp"
android:height="22dp"
android:viewportWidth="16"
android:viewportHeight="22">
<path
android:pathData="m0.0336,0.34v10.667l8,-5.333"
android:fillColor="#211f20"/>
<path
android:pathData="m0.0336,11.007v10.667l8,-5.333"
android:fillColor="#737373"/>
<path
android:pathData="m8.0336,5.673v10.667l8,-5.333"
android:fillColor="#f1680d"/>
<path
android:pathData="M8.0336,16.34L8.0336,5.673L0.0336,11.007Z"
android:fillColor="#000000"/>
</vector>