- fixed default NSFW setting
This commit is contained in:
parent
6e7d85c74a
commit
6c53bf6c22
@ -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 {
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
18
app/src/main/res/drawable/ic_peertube.xml
Normal file
18
app/src/main/res/drawable/ic_peertube.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user