Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7dbb60db65 |
No files matched your search
+4
-8
@@ -16,15 +16,14 @@ android {
|
||||
applicationId "io.lbry.browser"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
versionCode 1605
|
||||
versionName "0.16.5"
|
||||
versionCode 1600
|
||||
versionName "0.16.0"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude 'META-INF/DEPENDENCIES'
|
||||
exclude 'lib/x86_64/darwin/libscrypt.dylib'
|
||||
}
|
||||
|
||||
productFlavors {
|
||||
@@ -118,9 +117,6 @@ dependencies {
|
||||
|
||||
implementation 'com.arthenica:mobile-ffmpeg-full-gpl:4.3.1.LTS'
|
||||
|
||||
implementation 'org.bitcoinj:bitcoinj-tools:0.14.7'
|
||||
implementation 'org.java-websocket:Java-WebSocket:1.5.1'
|
||||
|
||||
compileOnly 'org.projectlombok:lombok:1.18.10'
|
||||
annotationProcessor 'org.projectlombok:lombok:1.18.10'
|
||||
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
|
||||
@@ -129,8 +125,8 @@ dependencies {
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
||||
|
||||
__32bitImplementation 'io.lbry:lbrysdk32:0.81.0'
|
||||
__64bitImplementation 'io.lbry:lbrysdk64:0.81.0'
|
||||
__32bitImplementation 'io.lbry:lbrysdk32:0.80.0'
|
||||
__64bitImplementation 'io.lbry:lbrysdk64:0.80.0'
|
||||
}
|
||||
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
|
||||
@@ -15,22 +15,12 @@ import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.text.HtmlCompat;
|
||||
import androidx.preference.PreferenceManager;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
|
||||
import io.lbry.browser.exceptions.AuthTokenInvalidatedException;
|
||||
import io.lbry.browser.utils.Helper;
|
||||
import io.lbry.browser.utils.Lbry;
|
||||
import io.lbry.browser.utils.LbryAnalytics;
|
||||
import io.lbry.browser.utils.Lbryio;
|
||||
import io.lbry.lbrysdk.LbrynetService;
|
||||
import io.lbry.lbrysdk.ServiceHelper;
|
||||
import io.lbry.lbrysdk.Utils;
|
||||
|
||||
public class FirstRunActivity extends AppCompatActivity {
|
||||
|
||||
@@ -54,7 +44,12 @@ public class FirstRunActivity extends AppCompatActivity {
|
||||
});
|
||||
|
||||
registerAuthReceiver();
|
||||
findViewById(R.id.welcome_wait_container).setVisibility(View.VISIBLE);
|
||||
if (!Lbry.SDK_READY) {
|
||||
findViewById(R.id.welcome_wait_container).setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
authenticate();
|
||||
}
|
||||
|
||||
IntentFilter filter = new IntentFilter();
|
||||
filter.addAction(MainActivity.ACTION_SDK_READY);
|
||||
filter.addAction(LbrynetService.ACTION_STOP_SERVICE);
|
||||
@@ -67,38 +62,10 @@ public class FirstRunActivity extends AppCompatActivity {
|
||||
authenticate();
|
||||
} else if (LbrynetService.ACTION_STOP_SERVICE.equals(action)) {
|
||||
finish();
|
||||
if (MainActivity.instance != null) {
|
||||
MainActivity.instance.finish();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
registerReceiver(sdkReceiver, filter);
|
||||
|
||||
CheckInstallIdTask task = new CheckInstallIdTask(this, new CheckInstallIdTask.InstallIdHandler() {
|
||||
@Override
|
||||
public void onInstallIdChecked(boolean result) {
|
||||
// start the sdk from FirstRun
|
||||
boolean serviceRunning = MainActivity.isServiceRunning(MainActivity.instance, LbrynetService.class);
|
||||
if (!serviceRunning) {
|
||||
Lbry.SDK_READY = false;
|
||||
ServiceHelper.start(MainActivity.instance, "", LbrynetService.class, "lbrynetservice");
|
||||
}
|
||||
|
||||
if (result) {
|
||||
// install_id generated and validated, authenticate now
|
||||
authenticate();
|
||||
return;
|
||||
}
|
||||
|
||||
// we weren't able to generate the install_id ourselves, depend on the sdk for that
|
||||
if (Lbry.SDK_READY) {
|
||||
authenticate();
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
}
|
||||
|
||||
public void onResume() {
|
||||
@@ -167,75 +134,6 @@ public class FirstRunActivity extends AppCompatActivity {
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
private void generateIdAndAuthenticate() {
|
||||
|
||||
}
|
||||
|
||||
private static class CheckInstallIdTask extends AsyncTask<Void, Void, Boolean> {
|
||||
private Context context;
|
||||
private InstallIdHandler handler;
|
||||
public CheckInstallIdTask(Context context, InstallIdHandler handler) {
|
||||
this.context = context;
|
||||
this.handler = handler;
|
||||
}
|
||||
protected Boolean doInBackground(Void... params) {
|
||||
// Load the installation id from the file system
|
||||
String lbrynetDir = String.format("%s/%s", Utils.getAppInternalStorageDir(context), "lbrynet");
|
||||
File dir = new File(lbrynetDir);
|
||||
boolean dirExists = dir.isDirectory();
|
||||
if (!dirExists) {
|
||||
dirExists = dir.mkdirs();
|
||||
}
|
||||
|
||||
if (!dirExists) {
|
||||
return false;
|
||||
}
|
||||
|
||||
String installIdPath = String.format("%s/install_id", lbrynetDir);
|
||||
File file = new File(installIdPath);
|
||||
String installId = null;
|
||||
if (!file.exists()) {
|
||||
// generate the install_id
|
||||
installId = Lbry.generateId();
|
||||
BufferedWriter writer = null;
|
||||
try {
|
||||
writer = new BufferedWriter(new FileWriter(file));
|
||||
writer.write(installId);
|
||||
android.util.Log.d("LbryMain", "Generated install ID=" + installId);
|
||||
} catch (IOException ex) {
|
||||
return false;
|
||||
} finally {
|
||||
Helper.closeCloseable(writer);
|
||||
}
|
||||
} else {
|
||||
// read the installation id from the file
|
||||
BufferedReader reader = null;
|
||||
try {
|
||||
reader = new BufferedReader(new InputStreamReader(new FileInputStream(installIdPath)));
|
||||
installId = reader.readLine();
|
||||
} catch (IOException ex) {
|
||||
return false;
|
||||
} finally {
|
||||
Helper.closeCloseable(reader);
|
||||
}
|
||||
}
|
||||
|
||||
if (!Helper.isNullOrEmpty(installId)) {
|
||||
Lbry.INSTALLATION_ID = installId;
|
||||
}
|
||||
return !Helper.isNullOrEmpty(installId);
|
||||
}
|
||||
protected void onPostExecute(Boolean result) {
|
||||
if (handler != null) {
|
||||
handler.onInstallIdChecked(result);
|
||||
}
|
||||
}
|
||||
|
||||
public interface InstallIdHandler {
|
||||
void onInstallIdChecked(boolean result);
|
||||
}
|
||||
}
|
||||
|
||||
private static class AuthenticateTask extends AsyncTask<Void, Void, Void> {
|
||||
private Context context;
|
||||
public AuthenticateTask(Context context) {
|
||||
|
||||
@@ -58,6 +58,11 @@ public class LbrynetMessagingService extends FirebaseMessagingService {
|
||||
String name = payload.get("name"); // notification name
|
||||
String hash = payload.get("hash"); // comment hash
|
||||
|
||||
Log.d(TAG, "Received notification message with payload");
|
||||
for (Map.Entry<String, String> entry : payload.entrySet()) {
|
||||
Log.d(TAG, String.format("%s = %s", entry.getKey(), entry.getValue()));
|
||||
}
|
||||
|
||||
if (type != null && getEnabledTypes().indexOf(type) > -1 && body != null && body.trim().length() > 0) {
|
||||
// only log the receive event for valid notifications received
|
||||
if (firebaseAnalytics != null) {
|
||||
|
||||
@@ -76,7 +76,6 @@ import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.app.ActionBar;
|
||||
import androidx.appcompat.app.ActionBarDrawerToggle;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.core.app.ActivityCompat;
|
||||
import androidx.core.app.NotificationCompat;
|
||||
import androidx.core.app.NotificationManagerCompat;
|
||||
@@ -99,8 +98,6 @@ import androidx.appcompat.widget.Toolbar;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import org.java_websocket.client.WebSocketClient;
|
||||
import org.java_websocket.handshake.ServerHandshake;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
@@ -110,7 +107,6 @@ import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.net.ConnectException;
|
||||
import java.net.URI;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@@ -125,8 +121,6 @@ import java.util.concurrent.TimeUnit;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import javax.net.ssl.SSLParameters;
|
||||
|
||||
import io.lbry.browser.adapter.NavigationMenuAdapter;
|
||||
import io.lbry.browser.adapter.NotificationListAdapter;
|
||||
import io.lbry.browser.adapter.UrlSuggestionListAdapter;
|
||||
@@ -188,10 +182,9 @@ import io.lbry.browser.ui.other.AboutFragment;
|
||||
import io.lbry.browser.ui.publish.PublishFormFragment;
|
||||
import io.lbry.browser.ui.publish.PublishFragment;
|
||||
import io.lbry.browser.ui.publish.PublishesFragment;
|
||||
import io.lbry.browser.ui.findcontent.AllContentFragment;
|
||||
import io.lbry.browser.ui.findcontent.SearchFragment;
|
||||
import io.lbry.browser.ui.findcontent.ShuffleFragment;
|
||||
import io.lbry.browser.ui.other.SettingsFragment;
|
||||
import io.lbry.browser.ui.findcontent.AllContentFragment;
|
||||
import io.lbry.browser.ui.wallet.InvitesFragment;
|
||||
import io.lbry.browser.ui.wallet.RewardsFragment;
|
||||
import io.lbry.browser.ui.wallet.WalletFragment;
|
||||
@@ -206,21 +199,15 @@ import io.lbry.lbrysdk.ServiceHelper;
|
||||
import io.lbry.lbrysdk.Utils;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.SneakyThrows;
|
||||
import okhttp3.OkHttpClient;
|
||||
|
||||
public class MainActivity extends AppCompatActivity implements SdkStatusListener, SharedPreferences.OnSharedPreferenceChangeListener {
|
||||
public class MainActivity extends AppCompatActivity implements SdkStatusListener {
|
||||
private static final String CHANNEL_ID_PLAYBACK = "io.lbry.browser.LBRY_PLAYBACK_CHANNEL";
|
||||
private static final int PLAYBACK_NOTIFICATION_ID = 3;
|
||||
private static final String SPECIAL_URL_PREFIX = "lbry://?";
|
||||
private static final int REMOTE_NOTIFICATION_REFRESH_TTL = 300000; // 5 minutes
|
||||
public static final String SKU_SKIP = "lbryskip";
|
||||
|
||||
public static final int SOURCE_NOW_PLAYING_FILE = 1;
|
||||
public static final int SOURCE_NOW_PLAYING_SHUFFLE = 2;
|
||||
public static MainActivity instance;
|
||||
|
||||
private boolean shuttingDown;
|
||||
private Date remoteNotifcationsLastLoaded;
|
||||
private Map<String, Class> specialRouteFragmentClassMap;
|
||||
@Getter
|
||||
@@ -236,7 +223,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
public static boolean playerReassigned;
|
||||
public CastContext castContext;
|
||||
public static CastPlayer castPlayer;
|
||||
public static int nowPlayingSource;
|
||||
public static Claim nowPlayingClaim;
|
||||
public static String nowPlayingClaimUrl;
|
||||
public static boolean startingFilePickerActivity = false;
|
||||
@@ -254,7 +240,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
|
||||
@Setter
|
||||
private BackPressInterceptor backPressInterceptor;
|
||||
private WebSocketClient webSocketClient;
|
||||
|
||||
@Getter
|
||||
private String firebaseMessagingToken;
|
||||
@@ -269,7 +254,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
fragmentClassNavIdMap.put(FollowingFragment.class, NavMenuItem.ID_ITEM_FOLLOWING);
|
||||
fragmentClassNavIdMap.put(EditorsChoiceFragment.class, NavMenuItem.ID_ITEM_EDITORS_CHOICE);
|
||||
fragmentClassNavIdMap.put(AllContentFragment.class, NavMenuItem.ID_ITEM_ALL_CONTENT);
|
||||
fragmentClassNavIdMap.put(ShuffleFragment.class, NavMenuItem.ID_ITEM_SHUFFLE);
|
||||
|
||||
fragmentClassNavIdMap.put(PublishFragment.class, NavMenuItem.ID_ITEM_NEW_PUBLISH);
|
||||
fragmentClassNavIdMap.put(ChannelManagerFragment.class, NavMenuItem.ID_ITEM_CHANNELS);
|
||||
@@ -320,7 +304,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
public static final String PREFERENCE_KEY_DARK_MODE = "io.lbry.browser.preference.userinterface.DarkMode";
|
||||
public static final String PREFERENCE_KEY_SHOW_MATURE_CONTENT = "io.lbry.browser.preference.userinterface.ShowMatureContent";
|
||||
public static final String PREFERENCE_KEY_SHOW_URL_SUGGESTIONS = "io.lbry.browser.preference.userinterface.UrlSuggestions";
|
||||
public static final String PREFERENCE_KEY_MINI_PLAYER_BOTTOM_MARGIN = "io.lbry.browser.preference.userinterface.MiniPlayerBottomMargin";
|
||||
public static final String PREFERENCE_KEY_NOTIFICATION_COMMENTS = "io.lbry.browser.preference.notifications.Comments";
|
||||
public static final String PREFERENCE_KEY_NOTIFICATION_SUBSCRIPTIONS = "io.lbry.browser.preference.notifications.Subscriptions";
|
||||
public static final String PREFERENCE_KEY_NOTIFICATION_REWARDS = "io.lbry.browser.preference.notifications.Rewards";
|
||||
@@ -328,7 +311,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
public static final String PREFERENCE_KEY_NOTIFICATION_CREATOR = "io.lbry.browser.preference.notifications.Creator";
|
||||
public static final String PREFERENCE_KEY_KEEP_SDK_BACKGROUND = "io.lbry.browser.preference.other.KeepSdkInBackground";
|
||||
public static final String PREFERENCE_KEY_PARTICIPATE_DATA_NETWORK = "io.lbry.browser.preference.other.ParticipateInDataNetwork";
|
||||
public static final String PREFERENCE_KEY_SEND_BUFFERING_EVENTS = "io.lbry.browser.preference.other.SendBufferingEvents";
|
||||
|
||||
// Internal flags / setting preferences
|
||||
public static final String PREFERENCE_KEY_INTERNAL_SKIP_WALLET_ACCOUNT = "io.lbry.browser.preference.internal.WalletSkipAccount";
|
||||
@@ -401,11 +383,9 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
private static final int STARTUP_STAGE_NEW_INSTALL_DONE = 5;
|
||||
private static final int STARTUP_STAGE_SUBSCRIPTIONS_LOADED = 6;
|
||||
private static final int STARTUP_STAGE_SUBSCRIPTIONS_RESOLVED = 7;
|
||||
private static final int DEFAULT_MINI_PLAYER_MARGIN = 4;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
instance = this;
|
||||
// workaround to fix dark theme because https://issuetracker.google.com/issues/37124582
|
||||
try {
|
||||
new WebView(this);
|
||||
@@ -445,8 +425,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
Toolbar toolbar = findViewById(R.id.toolbar);
|
||||
setSupportActionBar(toolbar);
|
||||
|
||||
updateMiniPlayerMargins();
|
||||
|
||||
// setup the billing client in main activity (to handle cases where the verification purchase flow may have been interrupted)
|
||||
billingClient = BillingClient.newBuilder(this)
|
||||
.setListener(new PurchasesUpdatedListener() {
|
||||
@@ -586,11 +564,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
public void onClick(View view) {
|
||||
if (nowPlayingClaim != null && !Helper.isNullOrEmpty(nowPlayingClaimUrl)) {
|
||||
hideNotifications();
|
||||
if (nowPlayingSource == SOURCE_NOW_PLAYING_SHUFFLE) {
|
||||
openFragment(ShuffleFragment.class, true, NavMenuItem.ID_ITEM_SHUFFLE);
|
||||
} else {
|
||||
openFileUrl(nowPlayingClaimUrl);
|
||||
}
|
||||
openFileUrl(nowPlayingClaimUrl);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -627,17 +601,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
});
|
||||
}
|
||||
|
||||
private void updateMiniPlayerMargins() {
|
||||
// mini-player bottom margin setting
|
||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
int miniPlayerBottomMargin = Helper.parseInt(
|
||||
sp.getString(PREFERENCE_KEY_MINI_PLAYER_BOTTOM_MARGIN, String.valueOf(DEFAULT_MINI_PLAYER_MARGIN)), DEFAULT_MINI_PLAYER_MARGIN);
|
||||
ConstraintLayout.LayoutParams lp = (ConstraintLayout.LayoutParams) findViewById(R.id.global_now_playing_card).getLayoutParams();
|
||||
int scaledMiniPlayerMargin = getScaledValue(DEFAULT_MINI_PLAYER_MARGIN);
|
||||
int scaledMiniPlayerBottomMargin = getScaledValue(miniPlayerBottomMargin);
|
||||
lp.setMargins(scaledMiniPlayerMargin, 0, scaledMiniPlayerMargin, scaledMiniPlayerBottomMargin);
|
||||
}
|
||||
|
||||
public boolean isDarkMode() {
|
||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
return sp.getBoolean(PREFERENCE_KEY_DARK_MODE, false);
|
||||
@@ -668,7 +631,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
specialRouteFragmentClassMap.put("settings", SettingsFragment.class);
|
||||
specialRouteFragmentClassMap.put("subscription", FollowingFragment.class);
|
||||
specialRouteFragmentClassMap.put("subscriptions", FollowingFragment.class);
|
||||
specialRouteFragmentClassMap.put("surf", ShuffleFragment.class);
|
||||
specialRouteFragmentClassMap.put("wallet", WalletFragment.class);
|
||||
specialRouteFragmentClassMap.put("discover", FollowingFragment.class);
|
||||
}
|
||||
@@ -824,9 +786,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
case NavMenuItem.ID_ITEM_ALL_CONTENT:
|
||||
openFragment(AllContentFragment.class, true, NavMenuItem.ID_ITEM_ALL_CONTENT);
|
||||
break;
|
||||
case NavMenuItem.ID_ITEM_SHUFFLE:
|
||||
openFragment(ShuffleFragment.class, true, NavMenuItem.ID_ITEM_SHUFFLE);
|
||||
break;
|
||||
|
||||
case NavMenuItem.ID_ITEM_NEW_PUBLISH:
|
||||
openFragment(PublishFragment.class, true, NavMenuItem.ID_ITEM_NEW_PUBLISH);
|
||||
@@ -903,18 +862,12 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
openFragment(PublishFormFragment.class, true, NavMenuItem.ID_ITEM_NEW_PUBLISH, params);
|
||||
}
|
||||
|
||||
public void openChannelUrl(String url, String source) {
|
||||
public void openChannelUrl(String url) {
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("url", url);
|
||||
params.put("claim", getCachedClaimForUrl(url));
|
||||
if (!Helper.isNullOrEmpty(source)) {
|
||||
params.put("source", source);
|
||||
}
|
||||
openFragment(ChannelFragment.class, true, NavMenuItem.ID_ITEM_FOLLOWING, params);
|
||||
}
|
||||
public void openChannelUrl(String url) {
|
||||
openChannelUrl(url, null);
|
||||
}
|
||||
|
||||
private Claim getCachedClaimForUrl(String url) {
|
||||
ClaimCacheKey key = new ClaimCacheKey();
|
||||
@@ -935,33 +888,21 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
}
|
||||
|
||||
public void openFileUrl(String url) {
|
||||
openFileUrl(url, null);
|
||||
}
|
||||
public void openFileUrl(String url, String source) {
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("url", url);
|
||||
if (!Helper.isNullOrEmpty(source)) {
|
||||
params.put("source", source);
|
||||
}
|
||||
openFragment(FileViewFragment.class, true, NavMenuItem.ID_ITEM_FOLLOWING, params);
|
||||
}
|
||||
|
||||
private void openSpecialUrl(String url, String source) {
|
||||
private void openSpecialUrl(String url) {
|
||||
String specialPath = url.substring(8).toLowerCase();
|
||||
if (specialRouteFragmentClassMap.containsKey(specialPath)) {
|
||||
Class fragmentClass = specialRouteFragmentClassMap.get(specialPath);
|
||||
if (fragmentClassNavIdMap.containsKey(fragmentClass)) {
|
||||
Map<String, Object> params = null;
|
||||
if (!Helper.isNullOrEmpty(source)) {
|
||||
params = new HashMap<>();
|
||||
params.put("source", source);
|
||||
}
|
||||
|
||||
openFragment(
|
||||
specialRouteFragmentClassMap.get(specialPath),
|
||||
true,
|
||||
fragmentClassNavIdMap.get(fragmentClass),
|
||||
params
|
||||
null
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1041,7 +982,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
fragment instanceof LibraryFragment ||
|
||||
fragment instanceof SearchFragment;
|
||||
findViewById(R.id.floating_balance_main_container).setVisibility(!canShowFloatingBalance || inFullscreenMode ? View.INVISIBLE : View.VISIBLE);
|
||||
if (!(fragment instanceof FileViewFragment) && !(fragment instanceof ShuffleFragment) && !inFullscreenMode) {
|
||||
if (!(fragment instanceof FileViewFragment) && !inFullscreenMode) {
|
||||
findViewById(R.id.global_now_playing_card).setVisibility(View.VISIBLE);
|
||||
}
|
||||
/*if (!Lbry.SDK_READY && !inFullscreenMode) {
|
||||
@@ -1060,15 +1001,11 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
shuttingDown = true;
|
||||
unregisterReceivers();
|
||||
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);
|
||||
if (receivedStopService || !isServiceRunning(this, LbrynetService.class)) {
|
||||
notificationManager.cancelAll();
|
||||
}
|
||||
if (webSocketClient != null) {
|
||||
webSocketClient.close();
|
||||
}
|
||||
if (dbHelper != null) {
|
||||
dbHelper.close();
|
||||
}
|
||||
@@ -1134,64 +1071,22 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@SneakyThrows
|
||||
private void checkWebSocketClient() {
|
||||
if ((webSocketClient == null || webSocketClient.isClosed()) && !Helper.isNullOrEmpty(Lbryio.AUTH_TOKEN)) {
|
||||
webSocketClient = new WebSocketClient(new URI(String.format("%s%s", Lbryio.WS_CONNECTION_BASE_URL, Lbryio.AUTH_TOKEN))) {
|
||||
@Override
|
||||
public void onOpen(ServerHandshake handshakedata) { }
|
||||
|
||||
@Override
|
||||
public void onMessage(String message) {
|
||||
loadRemoteNotifications(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClose(int code, String reason, boolean remote) {
|
||||
if (!shuttingDown) {
|
||||
// attempt to re-establish the connection if the app isn't being closed
|
||||
checkWebSocketClient();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Exception ex) { }
|
||||
|
||||
protected void onSetSSLParameters(SSLParameters sslParameters) {
|
||||
// don't call setEndpointIdentificationAlgorithm for API level < 24
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
sslParameters.setEndpointIdentificationAlgorithm("HTTPS");
|
||||
}
|
||||
}
|
||||
};
|
||||
webSocketClient.connect();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
PreferenceManager.getDefaultSharedPreferences(this).registerOnSharedPreferenceChangeListener(this);
|
||||
|
||||
checkPurchases();
|
||||
checkWebSocketClient();
|
||||
updateMiniPlayerMargins();
|
||||
enteringPIPMode = false;
|
||||
|
||||
applyNavbarSigninPadding();
|
||||
checkFirstRun();
|
||||
checkNowPlaying();
|
||||
|
||||
if (isFirstRunCompleted()) {
|
||||
// check (and start) the LBRY SDK service
|
||||
serviceRunning = isServiceRunning(this, LbrynetService.class);
|
||||
if (!serviceRunning) {
|
||||
Lbry.SDK_READY = false;
|
||||
//findViewById(R.id.global_sdk_initializing_status).setVisibility(View.VISIBLE);
|
||||
ServiceHelper.start(this, "", LbrynetService.class, "lbrynetservice");
|
||||
}
|
||||
// check (and start) the LBRY SDK service
|
||||
serviceRunning = isServiceRunning(this, LbrynetService.class);
|
||||
if (!serviceRunning) {
|
||||
Lbry.SDK_READY = false;
|
||||
//findViewById(R.id.global_sdk_initializing_status).setVisibility(View.VISIBLE);
|
||||
ServiceHelper.start(this, "", LbrynetService.class, "lbrynetservice");
|
||||
}
|
||||
checkSdkReady();
|
||||
showSignedInUser();
|
||||
@@ -1202,11 +1097,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
}*/
|
||||
}
|
||||
|
||||
public boolean isFirstRunCompleted() {
|
||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
return sp.getBoolean(PREFERENCE_KEY_INTERNAL_FIRST_RUN_COMPLETED, false);
|
||||
}
|
||||
|
||||
private void checkPurchases() {
|
||||
if (billingClient != null) {
|
||||
Purchase.PurchasesResult result = billingClient.queryPurchases(BillingClient.SkuType.INAPP);
|
||||
@@ -1254,7 +1144,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
PreferenceManager.getDefaultSharedPreferences(this).unregisterOnSharedPreferenceChangeListener(this);
|
||||
if (!enteringPIPMode && !inPictureInPictureMode && appPlayer != null && !isBackgroundPlaybackEnabled()) {
|
||||
appPlayer.setPlayWhenReady(false);
|
||||
}
|
||||
@@ -1867,13 +1756,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
|
||||
if (PREFERENCE_KEY_MINI_PLAYER_BOTTOM_MARGIN.equalsIgnoreCase(key)) {
|
||||
updateMiniPlayerMargins();
|
||||
}
|
||||
}
|
||||
|
||||
private class PlayerNotificationDescriptionAdapter implements PlayerNotificationManager.MediaDescriptionAdapter {
|
||||
|
||||
@Override
|
||||
@@ -2358,10 +2240,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
}).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
}
|
||||
|
||||
public void navigateBackToNotifications() {
|
||||
showNotifications();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
if (findViewById(R.id.url_suggestions_container).getVisibility() == View.VISIBLE) {
|
||||
@@ -2372,7 +2250,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
hideNotifications();
|
||||
return;
|
||||
}
|
||||
|
||||
if (backPressInterceptor != null && backPressInterceptor.onBackPressed()) {
|
||||
return;
|
||||
}
|
||||
@@ -2771,7 +2648,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
loadRemoteNotifications(false);
|
||||
|
||||
checkUrlIntent(getIntent());
|
||||
checkWebSocketClient();
|
||||
LbryAnalytics.logEvent(LbryAnalytics.EVENT_APP_LAUNCH);
|
||||
appStarted = true;
|
||||
}
|
||||
@@ -2854,9 +2730,9 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
try {
|
||||
LbryUri uri = LbryUri.parse(url);
|
||||
if (uri.isChannel()) {
|
||||
openChannelUrl(url);
|
||||
openChannelUrl(uri.toString());
|
||||
} else {
|
||||
openFileUrl(url);
|
||||
openFileUrl(uri.toString());
|
||||
}
|
||||
} catch (LbryUriException ex) {
|
||||
// pass
|
||||
@@ -3039,8 +2915,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
findContentGroup.setItems(Arrays.asList(
|
||||
new NavMenuItem(NavMenuItem.ID_ITEM_FOLLOWING, R.string.fa_heart, R.string.following, "Following", context),
|
||||
new NavMenuItem(NavMenuItem.ID_ITEM_EDITORS_CHOICE, R.string.fa_star, R.string.editors_choice, "EditorsChoice", context),
|
||||
new NavMenuItem(NavMenuItem.ID_ITEM_ALL_CONTENT, R.string.fa_globe_americas, R.string.all_content, "AllContent", context),
|
||||
new NavMenuItem(NavMenuItem.ID_ITEM_SHUFFLE, R.string.fa_random, R.string.shuffle, "Shuffle",context)
|
||||
new NavMenuItem(NavMenuItem.ID_ITEM_ALL_CONTENT, R.string.fa_globe_americas, R.string.all_content, "AllContent", context)
|
||||
));
|
||||
|
||||
yourContentGroup.setItems(Arrays.asList(
|
||||
@@ -3219,9 +3094,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
if (appPlayer != null && inPictureInPictureMode && !isBackgroundPlaybackEnabled()) {
|
||||
appPlayer.setPlayWhenReady(false);
|
||||
}
|
||||
if (inPictureInPictureMode) {
|
||||
MainActivity.playerReassigned = true;
|
||||
}
|
||||
super.onStop();
|
||||
}
|
||||
|
||||
@@ -3445,14 +3317,14 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
|
||||
|
||||
String targetUrl = notification.getTargetUrl();
|
||||
if (targetUrl.startsWith(SPECIAL_URL_PREFIX)) {
|
||||
openSpecialUrl(targetUrl, "notification");
|
||||
openSpecialUrl(targetUrl);
|
||||
} else {
|
||||
LbryUri target = LbryUri.tryParse(notification.getTargetUrl());
|
||||
if (target != null) {
|
||||
if (target.isChannel()) {
|
||||
openChannelUrl(notification.getTargetUrl(), "notification");
|
||||
openChannelUrl(notification.getTargetUrl());
|
||||
} else {
|
||||
openFileUrl(notification.getTargetUrl(), "notification");
|
||||
openFileUrl(notification.getTargetUrl());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -323,7 +323,7 @@ public class ClaimListAdapter extends RecyclerView.Adapter<ClaimListAdapter.View
|
||||
int paddingBottom = position == getItemCount() - 1 ? 16 : 8;
|
||||
int paddingTopScaled = Helper.getScaledValue(paddingTop, scale);
|
||||
int paddingBottomScaled = Helper.getScaledValue(paddingBottom, scale);
|
||||
vh.itemView.setPadding(vh.itemView.getPaddingStart(), paddingTopScaled, vh.itemView.getPaddingEnd(), paddingBottomScaled);
|
||||
vh.itemView.setPadding(vh.itemView.getPaddingLeft(), paddingTopScaled, vh.itemView.getPaddingRight(), paddingBottomScaled);
|
||||
|
||||
Claim original = items.get(position);
|
||||
boolean isRepost = Claim.TYPE_REPOST.equalsIgnoreCase(original.getValueType());
|
||||
|
||||
@@ -173,9 +173,9 @@ public class CommentListAdapter extends RecyclerView.Adapter<CommentListAdapter.
|
||||
public void onBindViewHolder(ViewHolder holder, int position) {
|
||||
Comment comment = items.get(position);
|
||||
holder.itemView.setPadding(
|
||||
nested ? Helper.getScaledValue(56, scale) : holder.itemView.getPaddingStart(),
|
||||
nested ? Helper.getScaledValue(56, scale) : holder.itemView.getPaddingLeft(),
|
||||
holder.itemView.getPaddingTop(),
|
||||
nested ? 0 : holder.itemView.getPaddingEnd(),
|
||||
nested ? 0 : holder.itemView.getPaddingRight(),
|
||||
holder.itemView.getPaddingBottom());
|
||||
|
||||
holder.channelName.setText(comment.getChannelName());
|
||||
|
||||
@@ -159,8 +159,7 @@ public class NotificationListAdapter extends RecyclerView.Adapter<NotificationLi
|
||||
public void onBindViewHolder(NotificationListAdapter.ViewHolder vh, int position) {
|
||||
LbryNotification notification = items.get(position);
|
||||
|
||||
|
||||
vh.layoutView.setBackgroundColor(ContextCompat.getColor(context, notification.isSeen() ? android.R.color.transparent : R.color.nextLbryGreenSemiTransparent));
|
||||
vh.layoutView.setBackgroundColor(ContextCompat.getColor(context, notification.isSeen() ? R.color.white : R.color.nextLbryGreenSemiTransparent));
|
||||
|
||||
vh.titleView.setVisibility(!Helper.isNullOrEmpty(notification.getTitle()) ? View.VISIBLE : View.GONE);
|
||||
vh.titleView.setText(notification.getTitle());
|
||||
|
||||
@@ -21,7 +21,7 @@ import io.lbry.browser.utils.Helper;
|
||||
import io.lbry.browser.utils.LbryUri;
|
||||
|
||||
public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
public static final int DATABASE_VERSION = 7;
|
||||
public static final int DATABASE_VERSION = 6;
|
||||
public static final String DATABASE_NAME = "LbryApp.db";
|
||||
private static DatabaseHelper instance;
|
||||
|
||||
@@ -60,7 +60,6 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
", is_read INTEGER DEFAULT 0 NOT NULL" +
|
||||
", is_seen INTEGER DEFAULT 0 NOT NULL " +
|
||||
", timestamp TEXT NOT NULL)",
|
||||
"CREATE TABLE shuffle_watched (id INTEGER PRIMARY KEY NOT NULL, claim_id TEXT NOT NULL)"
|
||||
};
|
||||
private static final String[] SQL_CREATE_INDEXES = {
|
||||
"CREATE UNIQUE INDEX idx_subscription_url ON subscriptions (url)",
|
||||
@@ -70,8 +69,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
"CREATE UNIQUE INDEX idx_view_history_url_device ON view_history (url, device)",
|
||||
"CREATE INDEX idx_view_history_device ON view_history (device)",
|
||||
"CREATE UNIQUE INDEX idx_notification_remote_id ON notifications (remote_id)",
|
||||
"CREATE INDEX idx_notification_timestamp ON notifications (timestamp)",
|
||||
"CREATE UNIQUE INDEX idx_shuffle_watched_claim ON shuffle_watched (claim_id)",
|
||||
"CREATE INDEX idx_notification_timestamp ON notifications (timestamp)"
|
||||
};
|
||||
|
||||
private static final String[] SQL_V1_V2_UPGRADE = {
|
||||
@@ -101,10 +99,6 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
private static final String[] SQL_V5_V6_UPGRADE = {
|
||||
"ALTER TABLE notifications ADD COLUMN author_url TEXT"
|
||||
};
|
||||
private static final String[] SQL_V6_V7_UPGRADE = {
|
||||
"CREATE TABLE shuffle_watched (id INTEGER PRIMARY KEY NOT NULL, claim_id TEXT NOT NULL)",
|
||||
"CREATE UNIQUE INDEX idx_shuffle_watched_claim ON shuffle_watched (claim_id)"
|
||||
};
|
||||
|
||||
private static final String SQL_INSERT_SUBSCRIPTION = "REPLACE INTO subscriptions (channel_name, url) VALUES (?, ?)";
|
||||
private static final String SQL_CLEAR_SUBSCRIPTIONS = "DELETE FROM subscriptions";
|
||||
@@ -122,9 +116,6 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
private static final String SQL_MARK_NOTIFICATIONS_READ = "UPDATE notifications SET is_read = 1 WHERE is_read = 0";
|
||||
private static final String SQL_MARK_NOTIFICATION_READ_AND_SEEN = "UPDATE notifications SET is_read = 1, is_seen = 1 WHERE id = ?";
|
||||
|
||||
private static final String SQL_INSERT_SHUFFLE_WATCHED = "REPLACE INTO shuffle_watched (claim_id) VALUES (?)";
|
||||
private static final String SQL_GET_SHUFFLE_WATCHED_CLAIMS = "SELECT claim_id FROM shuffle_watched";
|
||||
|
||||
private static final String SQL_INSERT_VIEW_HISTORY =
|
||||
"REPLACE INTO view_history (url, claim_id, claim_name, cost, currency, title, publisher_claim_id, publisher_name, publisher_title, thumbnail_url, device, release_time, timestamp) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
|
||||
private static final String SQL_GET_VIEW_HISTORY =
|
||||
@@ -183,11 +174,6 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
db.execSQL(sql);
|
||||
}
|
||||
}
|
||||
if (oldVersion < 7) {
|
||||
for (String sql : SQL_V6_V7_UPGRADE) {
|
||||
db.execSQL(sql);
|
||||
}
|
||||
}
|
||||
}
|
||||
public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
|
||||
|
||||
@@ -204,7 +190,6 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
public static void clearUrlHistoryBefore(Date date, SQLiteDatabase db) {
|
||||
db.execSQL(SQL_CLEAR_URL_HISTORY_BEFORE_TIME, new Object[] { new SimpleDateFormat(Helper.ISO_DATE_FORMAT_PATTERN).format(new Date()) });
|
||||
}
|
||||
|
||||
// History items are essentially url suggestions
|
||||
public static List<UrlSuggestion> getRecentHistory(SQLiteDatabase db) {
|
||||
List<UrlSuggestion> suggestions = new ArrayList<>();
|
||||
@@ -391,20 +376,4 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
public static void markNotificationReadAndSeen(long notificationId, SQLiteDatabase db) {
|
||||
db.execSQL(SQL_MARK_NOTIFICATION_READ_AND_SEEN, new Object[] { notificationId });
|
||||
}
|
||||
public static void createOrUpdateShuffleWatched(String claimId, SQLiteDatabase db) {
|
||||
db.execSQL(SQL_INSERT_SHUFFLE_WATCHED, new Object[] { claimId });
|
||||
}
|
||||
public static List<String> getShuffleWatchedClaims(SQLiteDatabase db) {
|
||||
List<String> claimIds = new ArrayList<>();
|
||||
Cursor cursor = null;
|
||||
try {
|
||||
cursor = db.rawQuery(SQL_GET_SHUFFLE_WATCHED_CLAIMS, null);
|
||||
while (cursor.moveToNext()) {
|
||||
claimIds.add(cursor.getString(0));
|
||||
}
|
||||
} finally {
|
||||
Helper.closeCursor(cursor);
|
||||
}
|
||||
return claimIds;
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,6 @@ public class NavMenuItem {
|
||||
public static final int ID_ITEM_FOLLOWING = 101;
|
||||
public static final int ID_ITEM_EDITORS_CHOICE = 102;
|
||||
public static final int ID_ITEM_ALL_CONTENT = 103;
|
||||
public static final int ID_ITEM_SHUFFLE = 104;
|
||||
|
||||
// Your Content
|
||||
public static final int ID_ITEM_CHANNELS = 201;
|
||||
|
||||
@@ -51,8 +51,8 @@ public class CommentListTask extends AsyncTask<Void, Void, List<Comment>> {
|
||||
options.put("skip_validation", true);
|
||||
options.put("visible", true);
|
||||
|
||||
|
||||
JSONObject result = (JSONObject) Lbry.genericApiCall(Lbry.METHOD_COMMENT_LIST, options);
|
||||
android.util.Log.d("LbryMain", result.toString(2));
|
||||
JSONArray items = result.getJSONArray("items");
|
||||
|
||||
List<Comment> children = new ArrayList<>();
|
||||
@@ -78,7 +78,6 @@ public class CommentListTask extends AsyncTask<Void, Void, List<Comment>> {
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
error = ex;
|
||||
android.util.Log.d("LbryMain", ex.toString(), ex);
|
||||
}
|
||||
return comments;
|
||||
}
|
||||
|
||||
@@ -65,14 +65,6 @@ public class BaseFragment extends Fragment {
|
||||
MainActivity.resumeGlobalPlayer(context);
|
||||
}
|
||||
}
|
||||
|
||||
if (params != null && params.containsKey("source") && "notification".equalsIgnoreCase(params.get("source").toString())) {
|
||||
Context context = getContext();
|
||||
if (context instanceof MainActivity) {
|
||||
((MainActivity) context).navigateBackToNotifications();
|
||||
}
|
||||
}
|
||||
|
||||
rewardDriverClickListenerSet = false;
|
||||
super.onStop();
|
||||
}
|
||||
|
||||
@@ -227,8 +227,6 @@ public class ChannelContentFragment extends Fragment implements DownloadActionLi
|
||||
null,
|
||||
getContentSortOrder(),
|
||||
contentReleaseTime,
|
||||
0,
|
||||
0,
|
||||
currentClaimSearchPage == 0 ? 1 : currentClaimSearchPage,
|
||||
Helper.CONTENT_PAGE_SIZE);
|
||||
}
|
||||
|
||||
@@ -414,8 +414,6 @@ public class AllContentFragment extends BaseFragment implements DownloadActionLi
|
||||
null,
|
||||
getContentSortOrder(),
|
||||
contentReleaseTime,
|
||||
0,
|
||||
0,
|
||||
currentClaimSearchPage == 0 ? 1 : currentClaimSearchPage,
|
||||
Helper.CONTENT_PAGE_SIZE);
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Outline;
|
||||
import android.net.Uri;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Bundle;
|
||||
@@ -36,6 +37,7 @@ import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.appcompat.widget.AppCompatSpinner;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.core.widget.NestedScrollView;
|
||||
import androidx.preference.PreferenceManager;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
@@ -165,7 +167,7 @@ public class FileViewFragment extends BaseFragment implements
|
||||
WalletBalanceListener {
|
||||
private static final int RELATED_CONTENT_SIZE = 16;
|
||||
private static final String DEFAULT_PLAYBACK_SPEED = "1x";
|
||||
public static final String CDN_PREFIX = "https://cdn.lbryplayer.xyz";
|
||||
private static final String CDN_PREFIX = "https://cdn.lbryplayer.xyz";
|
||||
|
||||
private PlayerControlView castControlView;
|
||||
private Player currentPlayer;
|
||||
@@ -296,15 +298,7 @@ public class FileViewFragment extends BaseFragment implements
|
||||
loadingNewClaim = false;
|
||||
}
|
||||
} else if (playbackState == Player.STATE_BUFFERING) {
|
||||
Context ctx = getContext();
|
||||
boolean sendBufferingEvents = true;
|
||||
|
||||
if (ctx != null) {
|
||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(ctx);
|
||||
sendBufferingEvents = sp.getBoolean(MainActivity.PREFERENCE_KEY_SEND_BUFFERING_EVENTS, true);
|
||||
}
|
||||
|
||||
if (MainActivity.appPlayer != null && MainActivity.appPlayer.getCurrentPosition() > 0 && sendBufferingEvents) {
|
||||
if (MainActivity.appPlayer != null && MainActivity.appPlayer.getCurrentPosition() > 0) {
|
||||
// we only want to log a buffer event after the media has already started playing
|
||||
String mediaSourceUrl = getStreamingUrl();
|
||||
long duration = MainActivity.appPlayer.getDuration();
|
||||
@@ -607,7 +601,7 @@ public class FileViewFragment extends BaseFragment implements
|
||||
}
|
||||
}
|
||||
|
||||
if (!Helper.isNullOrEmpty(lbryFile.getStreamingUrl()) && (!claim.isFree() || !Lbryio.isSignedIn())) {
|
||||
if (!Helper.isNullOrEmpty(lbryFile.getStreamingUrl()) && !Lbryio.isSignedIn()) {
|
||||
return lbryFile.getStreamingUrl();
|
||||
}
|
||||
}
|
||||
@@ -726,7 +720,6 @@ public class FileViewFragment extends BaseFragment implements
|
||||
}
|
||||
}
|
||||
|
||||
updatePlaybackSpeedView(root);
|
||||
loadAndScheduleDurations();
|
||||
}
|
||||
|
||||
@@ -739,13 +732,6 @@ public class FileViewFragment extends BaseFragment implements
|
||||
}
|
||||
}
|
||||
|
||||
public void onPause() {
|
||||
if (MainActivity.appPlayer != null) {
|
||||
MainActivity.nowPlayingSource = MainActivity.SOURCE_NOW_PLAYING_FILE;
|
||||
}
|
||||
super.onPause();
|
||||
}
|
||||
|
||||
public void onStop() {
|
||||
super.onStop();
|
||||
Context context = getContext();
|
||||
@@ -778,7 +764,6 @@ public class FileViewFragment extends BaseFragment implements
|
||||
View root = getView();
|
||||
if (root != null) {
|
||||
PlayerView view = root.findViewById(R.id.file_view_exoplayer_view);
|
||||
view.setVisibility(View.VISIBLE);
|
||||
view.setPlayer(null);
|
||||
view.setPlayer(MainActivity.appPlayer);
|
||||
}
|
||||
@@ -1190,16 +1175,6 @@ public class FileViewFragment extends BaseFragment implements
|
||||
commentsList.setLayoutManager(commentsListLLM);
|
||||
}
|
||||
|
||||
private void updatePlaybackSpeedView(View root) {
|
||||
if (root != null) {
|
||||
PlayerView playerView = root.findViewById(R.id.file_view_exoplayer_view);
|
||||
TextView textPlaybackSpeed = playerView.findViewById(R.id.player_playback_speed_label);
|
||||
textPlaybackSpeed.setText(MainActivity.appPlayer != null && MainActivity.appPlayer.getPlaybackParameters() != null ?
|
||||
Helper.getDisplayValueForPlaybackSpeed((double) MainActivity.appPlayer.getPlaybackParameters().speed) :
|
||||
DEFAULT_PLAYBACK_SPEED);
|
||||
}
|
||||
}
|
||||
|
||||
private void deleteCurrentClaim() {
|
||||
if (claim != null) {
|
||||
Helper.setViewVisibility(layoutDisplayArea, View.INVISIBLE);
|
||||
@@ -1879,7 +1854,7 @@ public class FileViewFragment extends BaseFragment implements
|
||||
}
|
||||
|
||||
private void handleMainActionForClaim() {
|
||||
if (claim.isPlayable() && claim.isFree() && Lbryio.isSignedIn()) {
|
||||
if (claim.isPlayable() && Lbryio.isSignedIn()) {
|
||||
// always use lbry.tv streaming when signed in and playabble
|
||||
startTimeMillis = System.currentTimeMillis();
|
||||
showExoplayerView();
|
||||
@@ -2786,7 +2761,7 @@ public class FileViewFragment extends BaseFragment implements
|
||||
}
|
||||
}
|
||||
|
||||
public static class StreamLoadErrorPolicy extends DefaultLoadErrorHandlingPolicy {
|
||||
private static class StreamLoadErrorPolicy extends DefaultLoadErrorHandlingPolicy {
|
||||
@Override
|
||||
public long getRetryDelayMsFor(int dataType, long loadDurationMs, IOException exception, int errorCount) {
|
||||
return exception instanceof ParserException
|
||||
|
||||
@@ -434,8 +434,6 @@ public class FollowingFragment extends BaseFragment implements
|
||||
null,
|
||||
getContentSortOrder(),
|
||||
contentReleaseTime,
|
||||
0,
|
||||
0,
|
||||
currentClaimSearchPage == 0 ? 1 : currentClaimSearchPage,
|
||||
Helper.CONTENT_PAGE_SIZE);
|
||||
}
|
||||
|
||||
@@ -1,835 +0,0 @@
|
||||
package io.lbry.browser.ui.findcontent;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.graphics.Color;
|
||||
import android.net.Uri;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Bundle;
|
||||
import android.view.GestureDetector;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.preference.PreferenceManager;
|
||||
|
||||
import com.google.android.exoplayer2.C;
|
||||
import com.google.android.exoplayer2.PlaybackParameters;
|
||||
import com.google.android.exoplayer2.Player;
|
||||
import com.google.android.exoplayer2.SimpleExoPlayer;
|
||||
import com.google.android.exoplayer2.audio.AudioAttributes;
|
||||
import com.google.android.exoplayer2.database.ExoDatabaseProvider;
|
||||
import com.google.android.exoplayer2.extractor.DefaultExtractorsFactory;
|
||||
import com.google.android.exoplayer2.source.MediaSource;
|
||||
import com.google.android.exoplayer2.source.ProgressiveMediaSource;
|
||||
import com.google.android.exoplayer2.ui.PlayerView;
|
||||
import com.google.android.exoplayer2.upstream.DefaultDataSourceFactory;
|
||||
import com.google.android.exoplayer2.upstream.cache.CacheDataSourceFactory;
|
||||
import com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor;
|
||||
import com.google.android.exoplayer2.upstream.cache.SimpleCache;
|
||||
import com.google.android.exoplayer2.util.Util;
|
||||
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import io.lbry.browser.MainActivity;
|
||||
import io.lbry.browser.R;
|
||||
import io.lbry.browser.data.DatabaseHelper;
|
||||
import io.lbry.browser.exceptions.LbryUriException;
|
||||
import io.lbry.browser.model.Claim;
|
||||
import io.lbry.browser.model.lbryinc.Reward;
|
||||
import io.lbry.browser.tasks.BufferEventTask;
|
||||
import io.lbry.browser.tasks.GenericTaskHandler;
|
||||
import io.lbry.browser.tasks.claim.ClaimSearchResultHandler;
|
||||
import io.lbry.browser.tasks.claim.ClaimSearchTask;
|
||||
import io.lbry.browser.tasks.lbryinc.ClaimRewardTask;
|
||||
import io.lbry.browser.tasks.lbryinc.LogFileViewTask;
|
||||
import io.lbry.browser.ui.BaseFragment;
|
||||
import io.lbry.browser.utils.Helper;
|
||||
import io.lbry.browser.utils.Lbry;
|
||||
import io.lbry.browser.utils.LbryAnalytics;
|
||||
import io.lbry.browser.utils.LbryUri;
|
||||
import io.lbry.browser.utils.Lbryio;
|
||||
import io.lbry.browser.utils.Predefined;
|
||||
|
||||
public class ShuffleFragment extends BaseFragment {
|
||||
|
||||
private static final int PAGE_SIZE = 50;
|
||||
|
||||
private int currentClaimSearchPage;
|
||||
private int playlistIndex;
|
||||
private Claim current;
|
||||
private List<Claim> playlist;
|
||||
private List<String> watchedContentClaimIds;
|
||||
|
||||
private long sessionStart;
|
||||
private ProgressBar surfModeLoading;
|
||||
private TextView textTitle;
|
||||
private TextView textPublisher;
|
||||
private Player player;
|
||||
private long elapsedDuration = 0;
|
||||
private long totalDuration = 0;
|
||||
private boolean elapsedPlaybackScheduled;
|
||||
private ScheduledExecutorService elapsedPlaybackScheduler;
|
||||
private boolean playbackStarted;
|
||||
private long startTimeMillis;
|
||||
private boolean isPlaying;
|
||||
private boolean newPlayerCreated;
|
||||
private String currentUrl;
|
||||
private Player.EventListener playerListener;
|
||||
|
||||
public View onCreateView(@NonNull LayoutInflater inflater,
|
||||
ViewGroup container, Bundle savedInstanceState) {
|
||||
View root = inflater.inflate(R.layout.fragment_shuffle, container, false);
|
||||
|
||||
surfModeLoading = root.findViewById(R.id.shuffle_loading);
|
||||
textTitle = root.findViewById(R.id.shuffle_content_title);
|
||||
textPublisher = root.findViewById(R.id.shuffle_content_publisher);
|
||||
playerListener = new Player.EventListener() {
|
||||
@Override
|
||||
public void onPlayerStateChanged(boolean playWhenReady, int playbackState) {
|
||||
if (playbackState == Player.STATE_READY) {
|
||||
elapsedDuration = MainActivity.appPlayer.getCurrentPosition();
|
||||
totalDuration = MainActivity.appPlayer.getDuration() < 0 ? 0 : MainActivity.appPlayer.getDuration();
|
||||
if (!playbackStarted) {
|
||||
logPlay(currentUrl, startTimeMillis);
|
||||
playbackStarted = true;
|
||||
isPlaying = true;
|
||||
|
||||
if (current != null) {
|
||||
saveWatchedContent(current.getClaimId());
|
||||
}
|
||||
}
|
||||
|
||||
renderTotalDuration();
|
||||
scheduleElapsedPlayback();
|
||||
hideBuffering();
|
||||
} else if (playbackState == Player.STATE_BUFFERING) {
|
||||
Context ctx = getContext();
|
||||
boolean sendBufferingEvents = true;
|
||||
|
||||
if (ctx != null) {
|
||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(ctx);
|
||||
sendBufferingEvents = sp.getBoolean(MainActivity.PREFERENCE_KEY_SEND_BUFFERING_EVENTS, true);
|
||||
}
|
||||
|
||||
if (MainActivity.appPlayer != null && MainActivity.appPlayer.getCurrentPosition() > 0 && sendBufferingEvents) {
|
||||
// we only want to log a buffer event after the media has already started playing
|
||||
String mediaSourceUrl = getStreamingUrl();
|
||||
long duration = MainActivity.appPlayer.getDuration();
|
||||
long position = MainActivity.appPlayer.getCurrentPosition();
|
||||
// TODO: Determine a hash for the userId
|
||||
String userIdHash = Helper.SHA256(Lbryio.currentUser != null ? String.valueOf(Lbryio.currentUser.getId()) : "0");
|
||||
if (mediaSourceUrl.startsWith(FileViewFragment.CDN_PREFIX)) {
|
||||
BufferEventTask bufferEvent = new BufferEventTask(current.getPermanentUrl(), duration, position, 1, userIdHash);
|
||||
bufferEvent.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR);
|
||||
}
|
||||
}
|
||||
|
||||
showBuffering();
|
||||
} else if (playbackState == Player.STATE_ENDED) {
|
||||
playNextClaim();
|
||||
} else {
|
||||
hideBuffering();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Context context = getContext();
|
||||
PlayerView playerView = root.findViewById(R.id.shuffle_exoplayer_view);
|
||||
playerView.setOnTouchListener(new SwipeListener(playerView, context) {
|
||||
@Override
|
||||
public void onSwipeLeft() { playNextClaim(); }
|
||||
@Override
|
||||
public void onSwipeRight() { playPreviousClaim(); }
|
||||
});
|
||||
|
||||
root.findViewById(R.id.shuffle_share_button).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
if (current != null) {
|
||||
try {
|
||||
String shareUrl = LbryUri.parse(
|
||||
!Helper.isNullOrEmpty(current.getCanonicalUrl()) ? current.getCanonicalUrl() :
|
||||
(!Helper.isNullOrEmpty(current.getShortUrl()) ? current.getShortUrl() : current.getPermanentUrl())).toTvString();
|
||||
Intent shareIntent = new Intent();
|
||||
shareIntent.setAction(Intent.ACTION_SEND);
|
||||
shareIntent.setType("text/plain");
|
||||
shareIntent.putExtra(Intent.EXTRA_TEXT, shareUrl);
|
||||
|
||||
MainActivity.startingShareActivity = true;
|
||||
Intent shareUrlIntent = Intent.createChooser(shareIntent, getString(R.string.share_lbry_content));
|
||||
shareUrlIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
startActivity(shareUrlIntent);
|
||||
} catch (LbryUriException ex) {
|
||||
// pass
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
root.setOnTouchListener(new SwipeListener(root, context) {
|
||||
@Override
|
||||
public void onSwipeLeft() { playNextClaim(); }
|
||||
@Override
|
||||
public void onSwipeRight() { playPreviousClaim(); }
|
||||
});
|
||||
|
||||
return root;
|
||||
}
|
||||
|
||||
private String getStreamingUrl() {
|
||||
return current != null ? String.format("https://cdn.lbryplayer.xyz/content/claims/%s/%s/stream", current.getName(), current.getClaimId()) : "";
|
||||
}
|
||||
|
||||
private Map<String, Object> buildContentOptions() {
|
||||
Context context = getContext();
|
||||
boolean canShowMatureContent = false;
|
||||
if (context != null) {
|
||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||
canShowMatureContent = sp.getBoolean(MainActivity.PREFERENCE_KEY_SHOW_MATURE_CONTENT, false);
|
||||
}
|
||||
|
||||
return Lbry.buildClaimSearchOptions(
|
||||
Claim.TYPE_STREAM,
|
||||
canShowMatureContent ? null : new ArrayList<>(Predefined.MATURE_TAGS),
|
||||
null/*contentChannelIds*/,
|
||||
Arrays.asList(Claim.ORDER_BY_TRENDING_GROUP),
|
||||
121, // 2 minutes or less
|
||||
1,
|
||||
currentClaimSearchPage == 0 ? 1 : currentClaimSearchPage,
|
||||
PAGE_SIZE);
|
||||
}
|
||||
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
MainActivity activity = (MainActivity) getContext();
|
||||
if (activity != null) {
|
||||
activity.hideFloatingWalletBalance();
|
||||
}
|
||||
}
|
||||
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
sessionStart = System.currentTimeMillis();
|
||||
MainActivity activity = (MainActivity) getContext();
|
||||
if (activity != null) {
|
||||
LbryAnalytics.setCurrentScreen(activity, "Shuffle", "Shuffle");
|
||||
}
|
||||
if (MainActivity.appPlayer != null && MainActivity.nowPlayingSource != MainActivity.SOURCE_NOW_PLAYING_SHUFFLE) {
|
||||
MainActivity.appPlayer.setPlayWhenReady(false);
|
||||
}
|
||||
|
||||
if (playlist == null) {
|
||||
loadWatchedContentList();
|
||||
} else {
|
||||
if (current != null) {
|
||||
playbackCurrentClaim();
|
||||
} else {
|
||||
startPlaylist();
|
||||
}
|
||||
loadAndScheduleDurations();
|
||||
}
|
||||
|
||||
if (MainActivity.appPlayer != null) {
|
||||
if (MainActivity.playerReassigned) {
|
||||
setPlayerForPlayerView();
|
||||
MainActivity.playerReassigned = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void setPlayerForPlayerView() {
|
||||
View root = getView();
|
||||
if (root != null) {
|
||||
PlayerView view = root.findViewById(R.id.shuffle_exoplayer_view);
|
||||
view.setVisibility(View.VISIBLE);
|
||||
view.setPlayer(null);
|
||||
view.setPlayer(MainActivity.appPlayer);
|
||||
}
|
||||
}
|
||||
|
||||
public void onPause() {
|
||||
if (MainActivity.appPlayer != null && MainActivity.appPlayer.isPlaying()) {
|
||||
MainActivity.nowPlayingSource = MainActivity.SOURCE_NOW_PLAYING_SHUFFLE;
|
||||
}
|
||||
super.onPause();
|
||||
}
|
||||
|
||||
public void onStop() {
|
||||
long sessionDuration = System.currentTimeMillis() - sessionStart;
|
||||
if (sessionStart > 0 && sessionDuration > 0) {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putLong("duration_ms", sessionDuration);
|
||||
bundle.putInt("duration", Double.valueOf(Math.ceil(sessionDuration / 1000.0)).intValue());
|
||||
LbryAnalytics.logEvent(LbryAnalytics.EVENT_SHUFFLE_SESSION, bundle);
|
||||
}
|
||||
sessionStart = 0;
|
||||
|
||||
MainActivity activity = (MainActivity) getContext();
|
||||
if (activity != null) {
|
||||
activity.hideFloatingWalletBalance();
|
||||
|
||||
}
|
||||
|
||||
super.onStop();
|
||||
|
||||
}
|
||||
|
||||
private void loadWatchedContentList() {
|
||||
(new AsyncTask<Void, Void, List<String>>() {
|
||||
protected List<String> doInBackground(Void... params) {
|
||||
MainActivity activity = (MainActivity) getContext();
|
||||
if (activity != null) {
|
||||
try {
|
||||
SQLiteDatabase db = activity.getDbHelper().getReadableDatabase();
|
||||
return DatabaseHelper.getShuffleWatchedClaims(db);
|
||||
} catch (Exception ex) {
|
||||
// pass
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
protected void onPostExecute(List<String> claimIds) {
|
||||
watchedContentClaimIds = new ArrayList<>(claimIds);
|
||||
if (playlist == null) {
|
||||
loadContent();
|
||||
}
|
||||
}
|
||||
}).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
}
|
||||
|
||||
private void saveWatchedContent(final String claimId) {
|
||||
(new AsyncTask<Void, Void, Void>() {
|
||||
protected Void doInBackground(Void... params) {
|
||||
MainActivity activity = (MainActivity) getContext();
|
||||
if (activity != null) {
|
||||
try {
|
||||
SQLiteDatabase db = activity.getDbHelper().getWritableDatabase();
|
||||
DatabaseHelper.createOrUpdateShuffleWatched(claimId, db);
|
||||
} catch (Exception ex) {
|
||||
// pass
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
}
|
||||
|
||||
private void loadContent() {
|
||||
if (playlist == null || playlist.size() == 0) {
|
||||
Helper.setViewVisibility(surfModeLoading, View.VISIBLE);
|
||||
}
|
||||
|
||||
Map<String, Object> claimSearchOptions = buildContentOptions();
|
||||
ClaimSearchTask task = new ClaimSearchTask(claimSearchOptions, Lbry.LBRY_TV_CONNECTION_STRING, null, new ClaimSearchResultHandler() {
|
||||
@Override
|
||||
public void onSuccess(List<Claim> claims, boolean hasReachedEnd) {
|
||||
if (playlist == null) {
|
||||
playlist = new ArrayList<>(claims);
|
||||
startPlaylist();
|
||||
} else {
|
||||
for (Claim claim : claims) {
|
||||
if (!playlist.contains(claim)) {
|
||||
playlist.add(claim);
|
||||
}
|
||||
}
|
||||
}
|
||||
Helper.setViewVisibility(surfModeLoading, View.GONE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Exception error) {
|
||||
Helper.setViewVisibility(surfModeLoading, View.GONE);
|
||||
}
|
||||
});
|
||||
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
}
|
||||
|
||||
private void startPlaylist() {
|
||||
if (playlist == null || playlist.size() == 0) {
|
||||
return;
|
||||
}
|
||||
playlistIndex = 0;
|
||||
current = playlist.get(playlistIndex);
|
||||
checkCurrentClaimIsVideo(false);
|
||||
checkCurrentClaimWatched(false);
|
||||
playbackCurrentClaim();
|
||||
}
|
||||
|
||||
private void checkCurrentClaimIsVideo(boolean previous) {
|
||||
while (current == null || current.getMediaType() == null || !current.getMediaType().startsWith("video")) {
|
||||
// only play videos
|
||||
if (previous) {
|
||||
playlistIndex--;
|
||||
} else {
|
||||
playlistIndex++;
|
||||
checkPlaylistSize();
|
||||
}
|
||||
current = playlist.get(playlistIndex);
|
||||
}
|
||||
}
|
||||
|
||||
private void checkCurrentClaimWatched(boolean previous) {
|
||||
if (current != null && watchedContentClaimIds != null) {
|
||||
while (watchedContentClaimIds.contains(current.getClaimId())) {
|
||||
if (previous) {
|
||||
playlistIndex--;
|
||||
} else {
|
||||
playlistIndex++;
|
||||
checkPlaylistSize();
|
||||
}
|
||||
current = playlist.get(playlistIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void playPreviousClaim() {
|
||||
if (playlist == null || playlist.size() == 0) {
|
||||
return;
|
||||
}
|
||||
if (playlistIndex > 0) {
|
||||
playlistIndex--;
|
||||
}
|
||||
current = playlist.get(playlistIndex);
|
||||
checkCurrentClaimIsVideo(true);
|
||||
checkCurrentClaimWatched(true);
|
||||
playbackCurrentClaim();
|
||||
}
|
||||
private void playNextClaim() {
|
||||
if (playlist == null || playlist.size() == 0) {
|
||||
return;
|
||||
}
|
||||
if (playlistIndex < playlist.size() - 1) {
|
||||
playlistIndex++;
|
||||
}
|
||||
checkPlaylistSize();
|
||||
current = playlist.get(playlistIndex);
|
||||
checkCurrentClaimIsVideo(false);
|
||||
checkCurrentClaimWatched(false);
|
||||
playbackCurrentClaim();
|
||||
}
|
||||
|
||||
private void checkPlaylistSize() {
|
||||
if (playlist.size() - playlistIndex < 10) {
|
||||
currentClaimSearchPage++;
|
||||
loadContent();
|
||||
}
|
||||
}
|
||||
|
||||
private void playbackCurrentClaim() {
|
||||
resetPlayer();
|
||||
String publisherText = !Helper.isNullOrEmpty(current.getPublisherTitle()) ?
|
||||
String.format("%s (%s)", current.getPublisherTitle(), current.getPublisherName()) :
|
||||
!Helper.isNullOrEmpty(current.getPublisherName()) ? current.getPublisherName() : getString(R.string.anonymous);
|
||||
|
||||
textTitle.setText(current.getTitle());
|
||||
textPublisher.setText(publisherText);
|
||||
|
||||
Context context = getContext();
|
||||
if (MainActivity.appPlayer == null && context != null) {
|
||||
AudioAttributes audioAttributes = new AudioAttributes.Builder()
|
||||
.setUsage(C.USAGE_MEDIA)
|
||||
.setContentType(C.CONTENT_TYPE_MOVIE)
|
||||
.build();
|
||||
|
||||
MainActivity.appPlayer = new SimpleExoPlayer.Builder(context).build();
|
||||
MainActivity.appPlayer.setAudioAttributes(audioAttributes, true);
|
||||
MainActivity.playerCache =
|
||||
new SimpleCache(context.getCacheDir(),
|
||||
new LeastRecentlyUsedCacheEvictor(1024 * 1024 * 256), new ExoDatabaseProvider(context));
|
||||
if (context instanceof MainActivity) {
|
||||
MainActivity activity = (MainActivity) context;
|
||||
activity.initMediaSession();
|
||||
activity.initPlaybackNotification();
|
||||
}
|
||||
if (playerListener != null) {
|
||||
MainActivity.appPlayer.addListener(playerListener);
|
||||
}
|
||||
|
||||
newPlayerCreated = true;
|
||||
}
|
||||
|
||||
if (context instanceof MainActivity) {
|
||||
MainActivity activity = (MainActivity) context;
|
||||
activity.initPlaybackNotification();
|
||||
}
|
||||
|
||||
View root = getView();
|
||||
if (root != null) {
|
||||
PlayerView view = root.findViewById(R.id.shuffle_exoplayer_view);
|
||||
view.setShutterBackgroundColor(Color.TRANSPARENT);
|
||||
view.setPlayer(MainActivity.appPlayer);
|
||||
view.setUseController(true);
|
||||
if (context instanceof MainActivity) {
|
||||
((MainActivity) context).getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
}
|
||||
|
||||
if (MainActivity.nowPlayingClaim != null &&
|
||||
MainActivity.nowPlayingClaim.getClaimId().equalsIgnoreCase(current.getClaimId()) &&
|
||||
!newPlayerCreated) {
|
||||
// if the claim is already playing, we don't need to reload the media source
|
||||
return;
|
||||
}
|
||||
|
||||
if (MainActivity.appPlayer != null) {
|
||||
showBuffering();
|
||||
if (context instanceof MainActivity) {
|
||||
((MainActivity) context).setNowPlayingClaim(current, current.getPermanentUrl());
|
||||
}
|
||||
|
||||
MainActivity.appPlayer.setPlayWhenReady(true);
|
||||
String userAgent = Util.getUserAgent(context, getString(R.string.app_name));
|
||||
String mediaSourceUrl = getStreamingUrl();
|
||||
MediaSource mediaSource = new ProgressiveMediaSource.Factory(
|
||||
new CacheDataSourceFactory(MainActivity.playerCache, new DefaultDataSourceFactory(context, userAgent)),
|
||||
new DefaultExtractorsFactory()
|
||||
).setLoadErrorHandlingPolicy(new FileViewFragment.StreamLoadErrorPolicy()).createMediaSource(Uri.parse(mediaSourceUrl));
|
||||
|
||||
MainActivity.appPlayer.prepare(mediaSource, true, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void resetPlayer() {
|
||||
elapsedDuration = 0;
|
||||
totalDuration = 0;
|
||||
renderElapsedDuration();
|
||||
renderTotalDuration();
|
||||
|
||||
elapsedPlaybackScheduled = false;
|
||||
if (elapsedPlaybackScheduler != null) {
|
||||
elapsedPlaybackScheduler.shutdownNow();
|
||||
elapsedPlaybackScheduler = null;
|
||||
}
|
||||
|
||||
playbackStarted = false;
|
||||
startTimeMillis = 0;
|
||||
|
||||
/*if (MainActivity.appPlayer != null) {
|
||||
MainActivity.appPlayer.stop(true);
|
||||
MainActivity.appPlayer.removeListener(fileViewPlayerListener);
|
||||
PlaybackParameters params = new PlaybackParameters(1.0f);
|
||||
MainActivity.appPlayer.setPlaybackParameters(params);
|
||||
}*/
|
||||
}
|
||||
|
||||
private void logPlay(String url, long startTimeMillis) {
|
||||
long timeToStartMillis = startTimeMillis > 0 ? System.currentTimeMillis() - startTimeMillis : 0;
|
||||
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString("uri", url);
|
||||
bundle.putLong("time_to_start_ms", timeToStartMillis);
|
||||
bundle.putLong("time_to_start_seconds", Double.valueOf(timeToStartMillis / 1000.0).longValue());
|
||||
LbryAnalytics.logEvent(LbryAnalytics.EVENT_PLAY, bundle);
|
||||
|
||||
logFileView(current.getPermanentUrl(), timeToStartMillis);
|
||||
}
|
||||
|
||||
private void logFileView(String url, long timeToStart) {
|
||||
if (current != null) {
|
||||
LogFileViewTask task = new LogFileViewTask(url, current, timeToStart, new GenericTaskHandler() {
|
||||
@Override
|
||||
public void beforeStart() { }
|
||||
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
claimEligibleRewards();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Exception error) { }
|
||||
});
|
||||
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
}
|
||||
}
|
||||
|
||||
private void showBuffering() {
|
||||
View root = getView();
|
||||
if (root != null) {
|
||||
root.findViewById(R.id.player_buffering_progress).setVisibility(View.VISIBLE);
|
||||
|
||||
PlayerView playerView = root.findViewById(R.id.shuffle_exoplayer_view);
|
||||
playerView.findViewById(R.id.player_skip_back_10).setVisibility(View.INVISIBLE);
|
||||
playerView.findViewById(R.id.player_skip_forward_10).setVisibility(View.INVISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
private void hideBuffering() {
|
||||
View root = getView();
|
||||
if (root != null) {
|
||||
root.findViewById(R.id.player_buffering_progress).setVisibility(View.INVISIBLE);
|
||||
|
||||
PlayerView playerView = root.findViewById(R.id.shuffle_exoplayer_view);
|
||||
playerView.findViewById(R.id.player_skip_back_10).setVisibility(View.VISIBLE);
|
||||
playerView.findViewById(R.id.player_skip_forward_10).setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
private void renderElapsedDuration() {
|
||||
View view = getView();
|
||||
if (view != null) {
|
||||
Helper.setViewText(view.findViewById(R.id.player_duration_elapsed), Helper.formatDuration(Double.valueOf(elapsedDuration / 1000.0).longValue()));
|
||||
}
|
||||
}
|
||||
|
||||
private void renderTotalDuration() {
|
||||
View view = getView();
|
||||
if (view != null) {
|
||||
Helper.setViewText(view.findViewById(R.id.player_duration_total), Helper.formatDuration(Double.valueOf(totalDuration / 1000.0).longValue()));
|
||||
}
|
||||
}
|
||||
|
||||
private void loadAndScheduleDurations() {
|
||||
if (MainActivity.appPlayer != null && playbackStarted) {
|
||||
elapsedDuration = MainActivity.appPlayer.getCurrentPosition() < 0 ? 0 : MainActivity.appPlayer.getCurrentPosition();
|
||||
totalDuration = MainActivity.appPlayer.getDuration() < 0 ? 0 : MainActivity.appPlayer.getDuration();
|
||||
|
||||
renderElapsedDuration();
|
||||
renderTotalDuration();
|
||||
scheduleElapsedPlayback();
|
||||
}
|
||||
}
|
||||
|
||||
private void scheduleElapsedPlayback() {
|
||||
if (!elapsedPlaybackScheduled) {
|
||||
elapsedPlaybackScheduler = Executors.newSingleThreadScheduledExecutor();
|
||||
elapsedPlaybackScheduler.scheduleAtFixedRate(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Context context = getContext();
|
||||
if (context instanceof MainActivity) {
|
||||
((MainActivity) context).runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (MainActivity.appPlayer != null) {
|
||||
elapsedDuration = MainActivity.appPlayer.getCurrentPosition();
|
||||
int elapsedSeconds = Double.valueOf(elapsedDuration / 1000.0).intValue();
|
||||
renderElapsedDuration();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}, 0, 500, TimeUnit.MILLISECONDS);
|
||||
elapsedPlaybackScheduled = true;
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Move this call to MainActivity?
|
||||
private void claimEligibleRewards() {
|
||||
// attempt to claim eligible rewards after viewing or playing a file (fail silently)
|
||||
Context context = getContext();
|
||||
ClaimRewardTask firstStreamTask = new ClaimRewardTask(Reward.TYPE_FIRST_STREAM, null, null, context, eligibleRewardHandler);
|
||||
ClaimRewardTask dailyViewTask = new ClaimRewardTask(Reward.TYPE_DAILY_VIEW, null, null, context, eligibleRewardHandler);
|
||||
firstStreamTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
dailyViewTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
||||
}
|
||||
|
||||
private ClaimRewardTask.ClaimRewardHandler eligibleRewardHandler = new ClaimRewardTask.ClaimRewardHandler() {
|
||||
@Override
|
||||
public void onSuccess(double amountClaimed, String message) {
|
||||
if (Helper.isNullOrEmpty(message)) {
|
||||
message = getResources().getQuantityString(
|
||||
R.plurals.claim_reward_message,
|
||||
amountClaimed == 1 ? 1 : 2,
|
||||
new DecimalFormat(Helper.LBC_CURRENCY_FORMAT_PATTERN).format(amountClaimed));
|
||||
}
|
||||
Context context = getContext();
|
||||
if (context instanceof MainActivity) {
|
||||
((MainActivity) context).showMessage(message);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Exception error) {
|
||||
// pass
|
||||
}
|
||||
};
|
||||
|
||||
private static class SwipeListener implements View.OnTouchListener {
|
||||
private final GestureDetector gestureDetector;
|
||||
private final View control;
|
||||
public SwipeListener(View control, Context context) {
|
||||
this.control = control;
|
||||
gestureDetector = new GestureDetector(context, new SwipeGestureListener());
|
||||
}
|
||||
@Override
|
||||
public boolean onTouch(View view, MotionEvent motionEvent) {
|
||||
return gestureDetector.onTouchEvent(motionEvent);
|
||||
}
|
||||
|
||||
public void onSwipeLeft() { }
|
||||
public void onSwipeRight() { }
|
||||
public void onSwipeTop() { }
|
||||
public void onSwipeBottom() { }
|
||||
|
||||
private final class SwipeGestureListener extends GestureDetector.SimpleOnGestureListener {
|
||||
private static final int SWIPE_THRESHOLD = 100;
|
||||
private static final int SWIPE_VELOCITY_THRESHOLD = 100;
|
||||
|
||||
@Override
|
||||
public boolean onDown(MotionEvent e) {
|
||||
if (control instanceof PlayerView) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
|
||||
boolean result = false;
|
||||
try {
|
||||
float diffY = e2.getY() - e1.getY();
|
||||
float diffX = e2.getX() - e1.getX();
|
||||
if (Math.abs(diffX) > Math.abs(diffY)) {
|
||||
if (Math.abs(diffX) > SWIPE_THRESHOLD && Math.abs(velocityX) > SWIPE_VELOCITY_THRESHOLD) {
|
||||
if (diffX > 0) {
|
||||
onSwipeRight();
|
||||
} else {
|
||||
onSwipeLeft();
|
||||
}
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
else if (Math.abs(diffY) > SWIPE_THRESHOLD && Math.abs(velocityY) > SWIPE_VELOCITY_THRESHOLD) {
|
||||
if (diffY > 0) {
|
||||
onSwipeBottom();
|
||||
} else {
|
||||
onSwipeTop();
|
||||
}
|
||||
result = true;
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
// pass
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldHideGlobalPlayer() {
|
||||
return true;
|
||||
}
|
||||
|
||||
private static final List<String> contentChannelIds = Arrays.asList(
|
||||
"3fec094c5937e9eb4e8f5e71e4ca430e8a993d03",
|
||||
"6184648aab0431c4c95c649072d1f9ff08b9bb7c",
|
||||
"b5d31cde873073718c033076656a27471e392afc",
|
||||
"7317cdf6f62be93b22295062e191f6ba59a5db26",
|
||||
"1cdb5d0bdcb484907d0a2fea4efdfe0153838642",
|
||||
"b516294f541a18ce00b71a60b2c82ad2f87ff78d",
|
||||
"91e42cc450075f2c4c245bac7617bf903f16b4ce",
|
||||
"b6e207c5f8c58e7c8362cd05a1501bf2f5b694f2",
|
||||
"25f384bd95e218f6ac37fcaca99ed40f36760d8c",
|
||||
"f33657a2fcbab2dc3ce555d5d6728f8758af7bc7",
|
||||
"294f5c164da5ac9735658b2d58d8fee6745dfc45",
|
||||
"119a2e8c0b50f78d3861636d37c3b44ba8e689b5",
|
||||
"7b23cca3f49059f005e812be03931c81272eaac4",
|
||||
"fb0efeaa3788d1292bb49a94d77622503fe08129",
|
||||
"797a528c49b6535560f7fd8222b121b0223287c8",
|
||||
"bc490776f367b8afccf0ea7349d657431ba1ded6",
|
||||
"48c7ea8bc2c4adba09bf21a29689e3b8c2967522",
|
||||
"bf7490f905904e79de5c90e472bb9e6f26e634a0",
|
||||
"df961194a798cc76306b9290701130c592530fb6",
|
||||
"cf0be9078d76951e2e228df68b5b0bbf71313aaa",
|
||||
"d746ac8d782f94d12d176c7a591f5bf8365bef3d",
|
||||
"1f30267438257020f08abf452746a48e53a71ad5",
|
||||
"4ad942982e43326c7700b1b6443049b3cfd82161",
|
||||
"1cdb5d0bdcb484907d0a2fea4efdfe0153838642",
|
||||
"6616707e1109aaa1c11b9f399f914d0cfb4f5303",
|
||||
"4ee7cfaf1fc50a6df858ed0b99c278d633bccca9",
|
||||
"b7d02b4a0036114732c072269adb891dc5e34ca4",
|
||||
"9c51c1a119137cd17ed5ae09daa80c1cab6ac01d",
|
||||
"5f2a5c14b971a6f5eed0a67dc7af3a3fe5c0b6a4",
|
||||
"0e2b5b4cf59e859860000ff123dc12a317ad416b",
|
||||
"3fe68ad3da93065e35c37b14fbeef88b4b7785ed",
|
||||
"fd7ffcbafb74412a8812df4720feaf11fe70fe12",
|
||||
"b4c30fe36b79870a79c55e1e909adb5ad23f323f",
|
||||
"92c0f2f3239f1f61496997bd2cdc197ec51bd423",
|
||||
"29193e9240a71a735639c66ee954e68414f11236",
|
||||
"25f384bd95e218f6ac37fcaca99ed40f36760d8c",
|
||||
"87b13b074936b1f42a7c6758c7c2995f58c602e7",
|
||||
"8d935c6c30510e1dfc10f803a9646fa8aa128b07",
|
||||
"8f4fecfc836ea33798ee3e5cef56926fa54e2cf9",
|
||||
"9a5dfcb1a4b29c3a1598392d039744b9938b5a26",
|
||||
"c5724e280283cd985186af9a62494aae377daabd",
|
||||
"b39833be3032bbe1005f4f719f379a4621faeb13",
|
||||
"589276465a23c589801d874f484cc39f307d7ec7",
|
||||
"fb364ef587872515f545a5b4b3182b58073f230f",
|
||||
"6c0bf1fed2705d675da950a94e4af004ec975a06",
|
||||
"b924ac36b7499591f7929d9c4903de79b07b1cb9",
|
||||
"113515e893b8186595595e594ecc410bae50c026",
|
||||
"72f9815b087b6d346745e3de71a6ce5fe73a8677",
|
||||
"b0198a465290f065378f3535666bee0653d6a9bb",
|
||||
"020ebeb40642bfb4bc3d9f6d28c098afc0a47481",
|
||||
"5c15e604c4207f52c8cf58fe21e63164c230e257",
|
||||
"273a2fa759f1a9f56b078633ea2f08fc2406002a",
|
||||
"930fc43ca7bae20d4706543e97175d1872b0671f",
|
||||
"0cb2ec46f06ba85520a1c1a56706acf35d5176dd",
|
||||
"057053dfb657aaa98553e2c544b06e1a2371557e",
|
||||
"64e091964a611a48424d254a3de2b952d0d6565a",
|
||||
"50ebba2b06908f93d7963b1c6826cc0fd6104477",
|
||||
"374ff82251a384601da73f30485c3ac8d7f4176b",
|
||||
"1487afc813124abbeb0629d2172be0f01ccec3bf",
|
||||
"6a4fa1a68b92336e64006a4310cb160b07854329",
|
||||
"15f986a262fc6eff5774050c94d174c0533d505d",
|
||||
"6184648aab0431c4c95c649072d1f9ff08b9bb7c",
|
||||
"1efa9b640ad980b2ec53834d60e9cff9554979cd",
|
||||
"064d4999ea15e433e06f16f391922390acab01cb",
|
||||
"4884e30b93b3c4c123a83154516196095f9e831e",
|
||||
"2827bfc459c12d7c6d280cbacee750811291d4ba",
|
||||
"9626816275585ac3443e7cddd1272c8652c23f1d",
|
||||
"a2e1bb1fed32c6a6290b679785dd31ca5c59cb5f",
|
||||
"d9535951222dd7a1ff7f763872cb0df44f7962bf",
|
||||
"243b6f18093ff97c861d0568c7d3379606201a4b",
|
||||
"1ce5ac7bab7f2e82af02305ced3c095e320b52e5",
|
||||
"3e63119a8503a6f666b0a736c8fdeb9e79d11eb4",
|
||||
"e33372c0d8b2cdd3e12252962ee1671d66143075",
|
||||
"7364ba2ac9090e468855ce9074bb50c306196f4c",
|
||||
"d6350f9158825662b99e4b5e0442bcc94d39bc11",
|
||||
"2a294ea41312c6da8de5ebd0f18dbfb2963bb1a4",
|
||||
"44c49bbab8a3e9999f3ba9dee0186288b1d960a7",
|
||||
"2305db36455aa0d18571015b9e9bd0950262aa0f",
|
||||
"82f1d8c257d3e76b711a5cecd1e49bd3fa6a9de9",
|
||||
"faed2b028a9b5a712d5180eaa6fd2aa619f941bc",
|
||||
"39ac239b5687f7d1c2ba74cd020b3547545dfdaf",
|
||||
"5737eb22f6119f27c9afccfe73ba710afd885371",
|
||||
"5f22b6daf7204d73cf79d3ff0b46fc4fe237c7f7",
|
||||
"3583f5a570af6870504eea5a5f7afad6e1508508",
|
||||
"b0e489f986c345aef23c4a48d91cbcf5a6fdb9ac",
|
||||
"ba79c80788a9e1751e49ad401f5692d86f73a2db",
|
||||
"c54323436f50c633c870298bb374ac8e7560e6cd",
|
||||
"83725c7ee23bd4a8ca28a4fab0e313409def1dc7",
|
||||
"61c4e8636704f2f38bbe88b1f30ef0d74d6c0f49",
|
||||
"87ef9ba36019f7f3bf217cf47511645893b13f2e",
|
||||
"1bd0adfcf1c75bafc1ba3fc9b65a1a0470df6a91",
|
||||
"1be15348c51955179b7bf9aa90230a9425927ef6",
|
||||
"1f45ab3495df2c3be7d9c882bca9966305115cbb",
|
||||
"7317777e3751efa66218f6da5ef0d01dda69af48",
|
||||
"3346a4ff80b70ee7eea8a79fc79f19c43bb4464a",
|
||||
"452916a904030d2ce4ea2440fad2d0774e7296d9",
|
||||
"2675ef3adf52ebf8a44ff5da4306c293dfa6f901",
|
||||
"e2a76643735f8611a561794509c6bb2aac70eb04",
|
||||
"dc577db3caf5ff83a3b573ba92f2d447f067eee1",
|
||||
"89c4cf244099918b1d3ed413df27d4216e97b499",
|
||||
"4b2b5822c8af3074c6ef9b789a8142d0ef623402",
|
||||
"3c5794f775975669745c412b0c30f48991d9e455",
|
||||
"1df464dbb302ced815c61431a5548a273e6de8e1"
|
||||
);
|
||||
}
|
||||
@@ -4,13 +4,9 @@ import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Bundle;
|
||||
import android.text.InputType;
|
||||
import android.widget.EditText;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.ActionBar;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.preference.EditTextPreference;
|
||||
import androidx.preference.PreferenceFragmentCompat;
|
||||
import androidx.preference.PreferenceManager;
|
||||
|
||||
@@ -27,15 +23,6 @@ public class SettingsFragment extends PreferenceFragmentCompat implements Shared
|
||||
@Override
|
||||
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
|
||||
setPreferencesFromResource(R.xml.settings, rootKey);
|
||||
PreferenceManager manager = getPreferenceManager();
|
||||
|
||||
EditTextPreference miniPlayerBottomMarginPreference = manager.findPreference(MainActivity.PREFERENCE_KEY_MINI_PLAYER_BOTTOM_MARGIN);
|
||||
miniPlayerBottomMarginPreference.setOnBindEditTextListener(new EditTextPreference.OnBindEditTextListener() {
|
||||
@Override
|
||||
public void onBindEditText(@NonNull EditText editText) {
|
||||
editText.setInputType(InputType.TYPE_CLASS_NUMBER);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -20,6 +20,7 @@ import android.provider.MediaStore;
|
||||
import android.text.method.LinkMovementMethod;
|
||||
import android.view.ContextMenu;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.TextView;
|
||||
|
||||
@@ -31,7 +32,6 @@ import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.google.android.gms.common.util.Hex;
|
||||
|
||||
import org.bitcoinj.core.Base58;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
@@ -103,11 +103,6 @@ public final class Helper {
|
||||
}
|
||||
}
|
||||
|
||||
public static String getDisplayValueForPlaybackSpeed(Double speed) {
|
||||
DecimalFormat formatter = new DecimalFormat("0.##");
|
||||
return String.format("%sx", formatter.format(speed));
|
||||
}
|
||||
|
||||
public static String capitalize(String value) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
boolean capitalizeNext = true;
|
||||
|
||||
@@ -2,15 +2,12 @@ package io.lbry.browser.utils;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import org.bitcoinj.core.Base58;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.security.KeyStore;
|
||||
import java.security.MessageDigest;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
@@ -20,7 +17,6 @@ import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import io.lbry.browser.exceptions.ApiCallException;
|
||||
@@ -375,23 +371,6 @@ public final class Lbry {
|
||||
"any_tags", "channel_ids", "order_by", "not_tags", "not_channel_ids", "urls"
|
||||
};
|
||||
|
||||
// build claim search for surf mode
|
||||
public static Map<String, Object> buildClaimSearchOptions(
|
||||
String claimType, List<String> notTags, List<String> channelIds, List<String> orderBy, long maxDuration, int limitClaimsPerChannel, int page, int pageSize) {
|
||||
return buildClaimSearchOptions(
|
||||
Collections.singletonList(claimType),
|
||||
null,
|
||||
notTags,
|
||||
channelIds,
|
||||
null,
|
||||
orderBy,
|
||||
null,
|
||||
maxDuration,
|
||||
limitClaimsPerChannel,
|
||||
page,
|
||||
pageSize);
|
||||
}
|
||||
|
||||
public static Map<String, Object> buildClaimSearchOptions(
|
||||
String claimType,
|
||||
List<String> anyTags,
|
||||
@@ -410,8 +389,6 @@ public final class Lbry {
|
||||
notChannelIds,
|
||||
orderBy,
|
||||
releaseTime,
|
||||
0,
|
||||
0,
|
||||
page,
|
||||
pageSize);
|
||||
}
|
||||
@@ -424,8 +401,6 @@ public final class Lbry {
|
||||
List<String> notChannelIds,
|
||||
List<String> orderBy,
|
||||
String releaseTime,
|
||||
long maxDuration,
|
||||
int limitClaimsPerChannel,
|
||||
int page,
|
||||
int pageSize) {
|
||||
Map<String, Object> options = new HashMap<>();
|
||||
@@ -438,12 +413,6 @@ public final class Lbry {
|
||||
if (!Helper.isNullOrEmpty(releaseTime)) {
|
||||
options.put("release_time", releaseTime);
|
||||
}
|
||||
if (maxDuration > 0) {
|
||||
options.put("duration", String.format("<%d", maxDuration));
|
||||
}
|
||||
if (limitClaimsPerChannel > 0) {
|
||||
options.put("limit_claims_per_channel", limitClaimsPerChannel);
|
||||
}
|
||||
|
||||
addClaimSearchListOption("any_tags", anyTags, options);
|
||||
addClaimSearchListOption("not_tags", notTags, options);
|
||||
@@ -553,20 +522,4 @@ public final class Lbry {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static String generateId() {
|
||||
return generateId(64);
|
||||
}
|
||||
public static String generateId(int numBytes) {
|
||||
byte[] arr = new byte[numBytes];
|
||||
new Random().nextBytes(arr);
|
||||
try {
|
||||
MessageDigest md = MessageDigest.getInstance("SHA-384");
|
||||
byte[] hash = md.digest(arr);
|
||||
return Base58.encode(hash);
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
// pass
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,7 +28,6 @@ public class LbryAnalytics {
|
||||
public static final String EVENT_PUBLISH_UPDATE = "publish_update";
|
||||
public static final String EVENT_CHANNEL_CREATE = "channel_create";
|
||||
public static final String EVENT_SEARCH = "search";
|
||||
public static final String EVENT_SHUFFLE_SESSION = "shuffle_session";
|
||||
|
||||
private static FirebaseAnalytics analytics;
|
||||
|
||||
|
||||
@@ -57,7 +57,6 @@ public final class Lbryio {
|
||||
|
||||
public static final String TAG = "Lbryio";
|
||||
public static final String CONNECTION_STRING = "https://api.lbry.com";
|
||||
public static final String WS_CONNECTION_BASE_URL = "wss://api.lbry.com/subscribe?auth_token=";
|
||||
public static final String AUTH_TOKEN_PARAM = "auth_token";
|
||||
public static List<Subscription> subscriptions = new ArrayList<>();
|
||||
public static List<Claim> cacheResolvedSubscriptions = new ArrayList<>();
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
android:id="@+id/welcome_progress_bar"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_gravity="center_vertical"/>
|
||||
<TextView
|
||||
android:id="@+id/welcome_wait_text"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
android:visibility="gone"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
|
||||
@@ -33,17 +33,17 @@
|
||||
android:id="@+id/wunderbar"
|
||||
android:background="@android:color/transparent"
|
||||
android:layout_centerVertical="true"
|
||||
android:drawableStart="@drawable/ic_search"
|
||||
android:drawableLeft="@drawable/ic_search"
|
||||
android:drawablePadding="8dp"
|
||||
android:drawableTint="@color/actionBarForeground"
|
||||
android:fontFamily="@font/inter"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_marginRight="24dp"
|
||||
android:hint="@string/uri_placeholder"
|
||||
android:imeOptions="actionGo"
|
||||
android:inputType="textNoSuggestions"
|
||||
android:paddingEnd="36dp"
|
||||
android:paddingRight="36dp"
|
||||
android:selectAllOnFocus="true"
|
||||
android:singleLine="true"
|
||||
android:textFontWeight="300"
|
||||
@@ -54,8 +54,8 @@
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginRight="24dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:visibility="gone">
|
||||
<ImageView
|
||||
@@ -71,7 +71,7 @@
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true">
|
||||
<ImageView
|
||||
android:id="@+id/notifications_toggle_icon"
|
||||
@@ -88,10 +88,10 @@
|
||||
android:fontFamily="@font/inter"
|
||||
android:gravity="center_horizontal"
|
||||
android:minWidth="12dp"
|
||||
android:paddingStart="2dp"
|
||||
android:paddingEnd="2dp"
|
||||
android:paddingLeft="2dp"
|
||||
android:paddingRight="2dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="10sp"
|
||||
android:visibility="invisible"
|
||||
@@ -171,7 +171,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/installation_id_loaded"
|
||||
@@ -195,7 +195,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/known_tags_loaded"
|
||||
@@ -219,7 +219,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/exchange_rate_loaded"
|
||||
@@ -243,7 +243,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/user_authenticated"
|
||||
@@ -267,7 +267,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/installation_registered"
|
||||
@@ -291,7 +291,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/subscriptions_loaded"
|
||||
@@ -315,7 +315,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/subscriptions_resolved"
|
||||
|
||||
@@ -47,14 +47,14 @@
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_toStartOf="@id/invites_email_button"
|
||||
android:layout_marginRight="24dp"
|
||||
android:layout_toLeftOf="@id/invites_email_button"
|
||||
android:visibility="gone" />
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/invites_email_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:enabled="false"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/invite" />
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
android:id="@+id/invites_loading_channels_progress"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
@@ -54,11 +54,11 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@id/invites_copy_invite_link"
|
||||
android:layout_toLeftOf="@id/invites_copy_invite_link"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp">
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingRight="12dp">
|
||||
<TextView
|
||||
android:id="@+id/invites_invite_link"
|
||||
android:clickable="true"
|
||||
@@ -72,14 +72,14 @@
|
||||
</LinearLayout>
|
||||
<ImageButton
|
||||
android:id="@+id/invites_copy_invite_link"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@null"
|
||||
android:src="@drawable/ic_copy"
|
||||
android:tint="@color/lbryGreen"
|
||||
android:layout_alignParentEnd="true" />
|
||||
android:layout_alignParentRight="true" />
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
android:id="@+id/invites_loading_status_progress"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_toEndOf="@id/reward_driver_icon"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_toRightOf="@id/reward_driver_icon"
|
||||
android:fontFamily="@font/inter"
|
||||
android:lineSpacingMultiplier="1.2"
|
||||
android:textColor="@color/white"
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/lbc"
|
||||
android:textColor="@color/white"
|
||||
@@ -76,8 +76,8 @@
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/buy_lbc"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_marginRight="12dp"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
@@ -85,8 +85,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/convert_credits"
|
||||
android:textColorLink="@color/lbryGreen"
|
||||
@@ -97,7 +97,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/convert_credits_bittrex"
|
||||
android:textColorLink="@color/lbryGreen"
|
||||
@@ -115,8 +115,8 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp">
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp">
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
@@ -129,7 +129,7 @@
|
||||
android:textColor="@color/lbryGreen" />
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
@@ -155,7 +155,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/lbc"
|
||||
android:textAllCaps="true"
|
||||
@@ -189,9 +189,9 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toEndOf="@id/wallet_in_tips_label"
|
||||
android:layout_toRightOf="@id/wallet_in_tips_label"
|
||||
android:fontFamily="@font/inter"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:text="@string/unlock"
|
||||
android:textColor="@color/lbryGreen"
|
||||
android:textSize="14sp"
|
||||
@@ -201,8 +201,8 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_toEndOf="@id/wallet_in_tips_label"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_toRightOf="@id/wallet_in_tips_label"
|
||||
android:visibility="gone" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -232,7 +232,7 @@
|
||||
android:textColor="@color/lbryGreen" />
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
@@ -258,7 +258,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/lbc"
|
||||
android:textAllCaps="true"
|
||||
@@ -288,7 +288,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/lbc"
|
||||
android:textAllCaps="true"
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
android:id="@+id/wallet_receive_address"
|
||||
android:clickable="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toStartOf="@id/wallet_copy_receive_address"
|
||||
android:layout_toLeftOf="@id/wallet_copy_receive_address"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter"
|
||||
@@ -45,21 +45,21 @@
|
||||
android:letterSpacing="0.05"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="center"
|
||||
android:ellipsize="middle" />
|
||||
<ImageButton
|
||||
android:id="@+id/wallet_copy_receive_address"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@null"
|
||||
android:src="@drawable/ic_copy"
|
||||
android:tint="@color/lbryGreen"
|
||||
android:layout_alignParentEnd="true" />
|
||||
android:layout_alignParentRight="true" />
|
||||
</RelativeLayout>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="16dp">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -63,7 +63,7 @@
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:text="@string/loading_transactions"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textSize="14sp"
|
||||
|
||||
@@ -52,10 +52,10 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/wallet_input_currency"
|
||||
android:layout_toEndOf="@id/wallet_input_layout_amount"
|
||||
android:layout_toRightOf="@id/wallet_input_layout_amount"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/lbc"
|
||||
@@ -65,8 +65,8 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/wallet_inline_balance_container"
|
||||
android:layout_toEndOf="@id/wallet_input_currency"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_toRightOf="@id/wallet_input_currency"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -82,21 +82,21 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:layout_marginStart="2dp" />
|
||||
android:layout_marginLeft="2dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/wallet_send_progress"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_toStartOf="@id/wallet_send"
|
||||
android:layout_toLeftOf="@id/wallet_send"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/wallet_send"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textStyle="bold"
|
||||
@@ -29,8 +29,8 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:weightSum="10">
|
||||
<TextView
|
||||
android:layout_weight="4"
|
||||
@@ -66,8 +66,8 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:weightSum="10">
|
||||
<TextView
|
||||
android:layout_weight="4"
|
||||
@@ -106,8 +106,8 @@
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:weightSum="2">
|
||||
<TextView
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
android:textFontWeight="300" />
|
||||
<ProgressBar
|
||||
android:id="@+id/comment_form_channels_loading"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
@@ -57,12 +57,12 @@
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp">
|
||||
android:layout_marginLeft="8dp">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginEnd="40dp">
|
||||
android:layout_marginRight="40dp">
|
||||
<TextView
|
||||
android:id="@+id/comment_form_replying_to_text"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -87,7 +87,7 @@
|
||||
android:id="@+id/comment_form_clear_reply_to"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp">
|
||||
<ImageView
|
||||
@@ -136,8 +136,8 @@
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toEndOf="@id/comment_form_avatar_container"
|
||||
android:layout_marginStart="16dp">
|
||||
android:layout_toRightOf="@id/comment_form_avatar_container"
|
||||
android:layout_marginLeft="16dp">
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/comment_form_body"
|
||||
android:hint="@string/comment"
|
||||
@@ -179,8 +179,8 @@
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toEndOf="@id/comment_form_post"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_toRightOf="@id/comment_form_post"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -42,10 +42,10 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/inline_channel_form_inline_currency"
|
||||
android:layout_toEndOf="@id/inline_channel_form_layout_deposit"
|
||||
android:layout_toRightOf="@id/inline_channel_form_layout_deposit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/lbc"
|
||||
@@ -55,8 +55,8 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/inline_channel_form_inline_balance_container"
|
||||
android:layout_toEndOf="@id/inline_channel_form_inline_currency"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_toRightOf="@id/inline_channel_form_inline_currency"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -72,7 +72,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:layout_marginStart="2dp" />
|
||||
android:layout_marginLeft="2dp" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -105,15 +105,15 @@
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_toStartOf="@id/inline_channel_form_create_button"
|
||||
android:layout_marginRight="24dp"
|
||||
android:layout_toLeftOf="@id/inline_channel_form_create_button"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/inline_channel_form_create_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/create"/>
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/sdk_initializing"
|
||||
android:textSize="14sp"
|
||||
@@ -118,8 +118,8 @@
|
||||
android:clickable="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:visibility="gone"
|
||||
app:cardElevation="8dp"
|
||||
@@ -133,9 +133,9 @@
|
||||
android:layout_width="160dp"
|
||||
android:layout_height="90dp" />
|
||||
<LinearLayout
|
||||
android:layout_toEndOf="@id/global_now_playing_player_view"
|
||||
android:layout_toStartOf="@id/global_now_playing_close"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_toRightOf="@id/global_now_playing_player_view"
|
||||
android:layout_toLeftOf="@id/global_now_playing_close"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
@@ -165,7 +165,7 @@
|
||||
android:layout_width="36dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:clickable="true"
|
||||
android:layout_marginStart="8dp">
|
||||
android:layout_marginLeft="8dp">
|
||||
<ImageView
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -19,8 +19,8 @@
|
||||
android:layout_height="0.5dp"
|
||||
android:background="@color/divider"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp" />
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/content_from_past_24_hours_item"
|
||||
@@ -41,7 +41,7 @@
|
||||
android:id="@+id/content_from_past_24_hours_item_selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_check"
|
||||
android:tint="@color/lbryGreen"
|
||||
@@ -67,7 +67,7 @@
|
||||
android:id="@+id/content_from_past_week_item_selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_check"
|
||||
android:tint="@color/lbryGreen"
|
||||
@@ -93,7 +93,7 @@
|
||||
android:id="@+id/content_from_past_month_item_selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_check"
|
||||
android:tint="@color/lbryGreen"
|
||||
@@ -119,7 +119,7 @@
|
||||
android:id="@+id/content_from_past_year_item_selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_check"
|
||||
android:tint="@color/lbryGreen"
|
||||
@@ -145,7 +145,7 @@
|
||||
android:id="@+id/content_from_all_time_item_selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_check"
|
||||
android:tint="@color/lbryGreen"
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -19,8 +19,8 @@
|
||||
android:layout_height="0.5dp"
|
||||
android:background="@color/divider"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp" />
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/content_scope_everyone_item"
|
||||
@@ -37,10 +37,10 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:text="@string/fa_globe_americas" />
|
||||
<TextView
|
||||
android:layout_toEndOf="@+id/content_scope_everyone_item_icon"
|
||||
android:layout_toRightOf="@+id/content_scope_everyone_item_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/everyone"
|
||||
@@ -50,7 +50,7 @@
|
||||
android:id="@+id/content_scope_everyone_item_selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_check"
|
||||
android:tint="@color/lbryGreen"
|
||||
@@ -72,10 +72,10 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:text="@string/fa_hashtag" />
|
||||
<TextView
|
||||
android:layout_toEndOf="@+id/content_scope_tags_item_icon"
|
||||
android:layout_toRightOf="@+id/content_scope_tags_item_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/tags_you_follow"
|
||||
@@ -85,7 +85,7 @@
|
||||
android:id="@+id/content_scope_tags_item_selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_check"
|
||||
android:tint="@color/lbryGreen"
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -19,8 +19,8 @@
|
||||
android:layout_height="0.5dp"
|
||||
android:background="@color/divider"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp" />
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/sort_by_trending_item"
|
||||
@@ -37,10 +37,10 @@
|
||||
android:src="@drawable/ic_trending"
|
||||
android:tint="@color/foreground" />
|
||||
<TextView
|
||||
android:layout_toEndOf="@+id/sort_by_trending_item_icon"
|
||||
android:layout_toRightOf="@+id/sort_by_trending_item_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/trending_content"
|
||||
@@ -50,7 +50,7 @@
|
||||
android:id="@+id/sort_by_trending_item_selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_check"
|
||||
android:tint="@color/lbryGreen"
|
||||
@@ -72,10 +72,10 @@
|
||||
android:src="@drawable/ic_new"
|
||||
android:tint="@color/foreground" />
|
||||
<TextView
|
||||
android:layout_toEndOf="@+id/sort_by_new_item_icon"
|
||||
android:layout_toRightOf="@+id/sort_by_new_item_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/new_content"
|
||||
@@ -85,7 +85,7 @@
|
||||
android:id="@+id/sort_by_new_item_selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_check"
|
||||
android:tint="@color/lbryGreen"
|
||||
@@ -107,10 +107,10 @@
|
||||
android:src="@drawable/ic_top"
|
||||
android:tint="@color/foreground" />
|
||||
<TextView
|
||||
android:layout_toEndOf="@+id/sort_by_top_item_icon"
|
||||
android:layout_toRightOf="@+id/sort_by_top_item_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/top_content"
|
||||
@@ -120,7 +120,7 @@
|
||||
android:id="@+id/sort_by_top_item_selected"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_check"
|
||||
android:tint="@color/lbryGreen"
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
android:text="@string/channel_to_show_support_as" />
|
||||
<ProgressBar
|
||||
android:id="@+id/create_support_channel_progress"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
@@ -83,10 +83,10 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/create_support_input_currency"
|
||||
android:layout_toEndOf="@id/create_support_input_layout_amount"
|
||||
android:layout_toRightOf="@id/create_support_input_layout_amount"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/lbc"
|
||||
@@ -96,8 +96,8 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/create_support_inline_balance_container"
|
||||
android:layout_toEndOf="@id/create_support_input_currency"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_toRightOf="@id/create_support_input_currency"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -113,7 +113,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:layout_marginStart="2dp" />
|
||||
android:layout_marginLeft="2dp" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -148,9 +148,9 @@
|
||||
android:id="@+id/create_support_progress"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_toStartOf="@id/create_support_send"
|
||||
android:layout_toLeftOf="@id/create_support_send"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
@@ -159,7 +159,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/send_lbc_tip"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -23,22 +23,22 @@
|
||||
android:layout_height="0.5dp"
|
||||
android:background="@color/divider"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_marginBottom="16dp"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/customize_tags_followed_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp" />
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp" />
|
||||
<TextView
|
||||
android:id="@+id/customize_no_followed_tags"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="6dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/no_followed_tags"
|
||||
@@ -51,23 +51,23 @@
|
||||
android:layout_height="0.5dp"
|
||||
android:background="@color/divider"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_marginBottom="16dp"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/customize_tags_suggested_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp" />
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/customize_no_tag_results"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="6dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/no_tag_results"
|
||||
@@ -79,8 +79,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="16dp">
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/customize_tag_filter_input"
|
||||
@@ -97,8 +97,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/done" />
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
android:id="@+id/discover_loading"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
@@ -46,8 +46,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/done" />
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toEndOf="@id/repost_name_prefix"
|
||||
android:layout_toRightOf="@id/repost_name_prefix"
|
||||
android:fontFamily="@font/inter"
|
||||
android:singleLine="true"
|
||||
android:textSize="14sp"
|
||||
@@ -107,10 +107,10 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/repost_input_currency"
|
||||
android:layout_toEndOf="@id/repost_input_layout_amount"
|
||||
android:layout_toRightOf="@id/repost_input_layout_amount"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/lbc"
|
||||
@@ -120,8 +120,8 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/repost_inline_balance_container"
|
||||
android:layout_toEndOf="@id/repost_input_currency"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_toRightOf="@id/repost_input_currency"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -137,7 +137,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:layout_marginStart="2dp" />
|
||||
android:layout_marginLeft="2dp" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
@@ -165,8 +165,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_toStartOf="@id/repost_button"
|
||||
android:layout_marginRight="24dp"
|
||||
android:layout_toLeftOf="@id/repost_button"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textSize="14sp"
|
||||
android:text="@string/show_advanced" />
|
||||
@@ -174,9 +174,9 @@
|
||||
android:id="@+id/repost_progress"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_toStartOf="@id/repost_button"
|
||||
android:layout_toLeftOf="@id/repost_button"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:visibility="gone" />
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/repost_button"
|
||||
@@ -184,7 +184,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/repost"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="72dp"
|
||||
android:layout_height="72dp"
|
||||
android:layout_toStartOf="@id/player_play_pause">
|
||||
android:layout_toLeftOf="@id/player_play_pause">
|
||||
<ImageView
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
@@ -66,7 +66,7 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="72dp"
|
||||
android:layout_height="72dp"
|
||||
android:layout_toEndOf="@id/player_play_pause">
|
||||
android:layout_toRightOf="@id/player_play_pause">
|
||||
<ImageView
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
@@ -84,7 +84,7 @@
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:visibility="gone">
|
||||
<ImageView
|
||||
android:id="@+id/player_image_cast_toggle"
|
||||
@@ -103,14 +103,14 @@
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_toStartOf="@id/player_toggle_fullscreen">
|
||||
android:layout_toLeftOf="@id/player_toggle_fullscreen">
|
||||
<TextView
|
||||
android:id="@+id/player_playback_speed_label"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:letterSpacing="0.05"
|
||||
android:singleLine="true"
|
||||
@@ -126,7 +126,7 @@
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentEnd="true">
|
||||
android:layout_alignParentRight="true">
|
||||
<ImageView
|
||||
android:id="@+id/player_image_full_screen_toggle"
|
||||
android:layout_width="24dp"
|
||||
@@ -140,9 +140,9 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_toStartOf="@id/player_playback_speed"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="4dp">
|
||||
android:layout_toLeftOf="@id/player_playback_speed"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="4dp">
|
||||
<TextView
|
||||
android:id="@+id/player_duration_elapsed"
|
||||
android:layout_width="64dp"
|
||||
@@ -155,12 +155,12 @@
|
||||
android:textSize="14sp" />
|
||||
<com.google.android.exoplayer2.ui.DefaultTimeBar
|
||||
android:id="@id/exo_progress"
|
||||
android:layout_toStartOf="@id/player_duration_total"
|
||||
android:layout_toEndOf="@id/player_duration_elapsed"
|
||||
android:layout_toLeftOf="@id/player_duration_total"
|
||||
android:layout_toRightOf="@id/player_duration_elapsed"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:layout_centerVertical="true"
|
||||
app:scrubber_color="@color/scrubberColor"
|
||||
app:played_color="@color/playedColor"
|
||||
@@ -170,7 +170,7 @@
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:gravity="end"
|
||||
android:fontFamily="@font/inter"
|
||||
android:singleLine="true"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:elevation="4dp"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent">
|
||||
@@ -19,8 +19,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="44dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="44dp"
|
||||
android:visibility="invisible">
|
||||
<io.lbry.browser.ui.controls.SolidIconView
|
||||
android:layout_width="16dp"
|
||||
@@ -33,7 +33,7 @@
|
||||
android:id="@+id/floating_reward_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@color/white"
|
||||
@@ -51,11 +51,11 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@id/floating_reward_container"
|
||||
android:layout_marginStart="-36dp"
|
||||
android:layout_marginLeft="-36dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="16dp">
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingRight="16dp">
|
||||
<io.lbry.browser.ui.controls.SolidIconView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
@@ -73,7 +73,7 @@
|
||||
android:id="@+id/floating_balance_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@color/white"
|
||||
@@ -87,7 +87,7 @@
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginStart="2dp" />
|
||||
android:layout_marginLeft="2dp" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp">
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp">
|
||||
<TextView
|
||||
android:id="@+id/all_content_page_title"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -41,7 +41,7 @@
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true" />
|
||||
android:layout_alignParentRight="true" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
@@ -50,8 +50,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:visibility="visible">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
@@ -76,7 +76,7 @@
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/ic_arrow_dropdown"
|
||||
android:tint="@color/foreground" />
|
||||
@@ -85,10 +85,10 @@
|
||||
<TextView
|
||||
android:id="@+id/all_content_for_prefix"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toEndOf="@id/all_content_sort_link"
|
||||
android:layout_toRightOf="@id/all_content_sort_link"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:textSize="12sp"
|
||||
@@ -96,12 +96,12 @@
|
||||
android:visibility="gone" />
|
||||
<LinearLayout
|
||||
android:id="@+id/all_content_scope_link"
|
||||
android:layout_toEndOf="@id/all_content_sort_link"
|
||||
android:layout_toRightOf="@id/all_content_sort_link"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:visibility="gone">
|
||||
<TextView
|
||||
@@ -109,7 +109,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:textSize="12sp"
|
||||
@@ -117,7 +117,7 @@
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/ic_arrow_dropdown"
|
||||
android:tint="@color/foreground" />
|
||||
@@ -126,10 +126,10 @@
|
||||
<TextView
|
||||
android:id="@+id/all_content_from_prefix"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toEndOf="@id/all_content_sort_link"
|
||||
android:layout_toRightOf="@id/all_content_sort_link"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:textSize="12sp"
|
||||
@@ -142,15 +142,15 @@
|
||||
android:clickable="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_toEndOf="@id/all_content_sort_link"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_toRightOf="@id/all_content_sort_link"
|
||||
android:visibility="gone">
|
||||
<TextView
|
||||
android:id="@+id/all_content_time_link_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:textSize="12sp"
|
||||
@@ -158,7 +158,7 @@
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/ic_arrow_dropdown"
|
||||
android:tint="@color/foreground" />
|
||||
@@ -170,7 +170,7 @@
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:clickable="true"
|
||||
android:fontFamily="@font/inter"
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<ProgressBar
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_gravity="center_vertical" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -53,18 +53,18 @@
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_marginRight="12dp"
|
||||
android:layout_above="@+id/channel_view_tabs"
|
||||
android:layout_toEndOf="@id/channel_view_icon_container"
|
||||
android:layout_toRightOf="@id/channel_view_icon_container"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/channel_view_title"
|
||||
android:background="@color/channelCoverBackground"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="4dp"
|
||||
android:paddingEnd="4dp"
|
||||
android:paddingLeft="4dp"
|
||||
android:paddingRight="4dp"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:ellipsize="end"
|
||||
@@ -80,8 +80,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:paddingStart="4dp"
|
||||
android:paddingEnd="4dp"
|
||||
android:paddingLeft="4dp"
|
||||
android:paddingRight="4dp"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:fontFamily="@font/inter"
|
||||
@@ -95,7 +95,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:paddingStart="110dp"
|
||||
android:paddingLeft="110dp"
|
||||
app:tabGravity="fill"
|
||||
app:tabMode="scrollable"/>
|
||||
<RelativeLayout
|
||||
@@ -103,7 +103,7 @@
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_marginBottom="12dp">
|
||||
<RelativeLayout
|
||||
android:layout_centerHorizontal="true"
|
||||
@@ -143,7 +143,7 @@
|
||||
android:elevation="4dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:padding="8dp">
|
||||
<RelativeLayout
|
||||
android:id="@+id/channel_view_edit"
|
||||
@@ -151,7 +151,7 @@
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:visibility="gone">
|
||||
<ImageView
|
||||
android:layout_centerInParent="true"
|
||||
@@ -166,7 +166,7 @@
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:visibility="gone">
|
||||
<ImageView
|
||||
android:layout_centerInParent="true"
|
||||
@@ -181,7 +181,7 @@
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginEnd="8dp">
|
||||
android:layout_marginRight="8dp">
|
||||
<ImageView
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_width="22dp"
|
||||
@@ -195,7 +195,7 @@
|
||||
android:clickable="true"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginEnd="8dp">
|
||||
android:layout_marginRight="8dp">
|
||||
<io.lbry.browser.ui.controls.SolidIconView
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_width="24dp"
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp">
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp">
|
||||
<ProgressBar
|
||||
android:id="@+id/channel_comments_progress"
|
||||
android:layout_width="20dp"
|
||||
@@ -31,16 +31,16 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="0dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="16dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/channel_no_comments"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/no_comments"
|
||||
@@ -52,8 +52,8 @@
|
||||
android:id="@+id/channel_comments_sdk_initializing"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/sdk_initializing_comments"
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:visibility="visible">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
@@ -53,7 +53,7 @@
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/ic_arrow_dropdown"
|
||||
android:tint="@color/foreground" />
|
||||
@@ -66,15 +66,15 @@
|
||||
android:clickable="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_toEndOf="@id/channel_content_sort_link"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_toRightOf="@id/channel_content_sort_link"
|
||||
android:visibility="gone">
|
||||
<TextView
|
||||
android:id="@+id/channel_content_time_link_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:textSize="12sp"
|
||||
@@ -82,7 +82,7 @@
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/ic_arrow_dropdown"
|
||||
android:tint="@color/foreground" />
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
android:background="@drawable/bg_small_icon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_alignParentBottom="true">
|
||||
<ImageView
|
||||
@@ -45,16 +45,16 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/channel_form_upload_progress"
|
||||
android:background="@color/channelCoverBackground"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:visibility="gone">
|
||||
<ProgressBar
|
||||
android:layout_width="16dp"
|
||||
@@ -62,7 +62,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/uploading"
|
||||
android:textColor="@color/white"
|
||||
@@ -103,7 +103,7 @@
|
||||
android:background="@drawable/bg_small_icon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true">
|
||||
@@ -169,7 +169,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="28dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:text="@string/at"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
@@ -195,10 +195,10 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/channel_form_input_currency"
|
||||
android:layout_toEndOf="@id/channel_form_input_layout_deposit"
|
||||
android:layout_toRightOf="@id/channel_form_input_layout_deposit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/lbc"
|
||||
@@ -208,8 +208,8 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/channel_form_inline_balance_container"
|
||||
android:layout_toEndOf="@id/channel_form_input_currency"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_toRightOf="@id/channel_form_input_currency"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -225,7 +225,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:layout_marginStart="2dp" />
|
||||
android:layout_marginLeft="2dp" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -323,8 +323,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_toStartOf="@id/channel_form_save_button"
|
||||
android:layout_marginRight="24dp"
|
||||
android:layout_toLeftOf="@id/channel_form_save_button"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textSize="14sp"
|
||||
android:text="@string/show_optional_fields" />
|
||||
@@ -333,14 +333,14 @@
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_toStartOf="@+id/channel_form_save_button"
|
||||
android:layout_marginRight="24dp"
|
||||
android:layout_toLeftOf="@+id/channel_form_save_button"
|
||||
android:visibility="gone" />
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/channel_form_save_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/save" />
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
android:id="@+id/channel_manager_list_loading"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:visibility="gone" />
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/channel_manager_list"
|
||||
@@ -66,9 +66,9 @@
|
||||
android:id="@+id/channel_manager_fab_new_channel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:src="@drawable/ic_add"
|
||||
android:visibility="gone" />
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<ProgressBar
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_gravity="center_vertical" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -75,13 +75,13 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:paddingStart="6dp"
|
||||
android:paddingEnd="7dp"
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingRight="7dp"
|
||||
android:visibility="gone">
|
||||
<io.lbry.browser.ui.controls.SolidIconView
|
||||
android:layout_width="12dp"
|
||||
@@ -95,7 +95,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="1dp"
|
||||
android:layout_marginLeft="1dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="14sp"
|
||||
@@ -136,11 +136,11 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_height="wrap_content" />
|
||||
<LinearLayout
|
||||
android:layout_toEndOf="@id/file_view_unsupported_gerbil"
|
||||
android:layout_toRightOf="@id/file_view_unsupported_gerbil"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_centerVertical="true">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -183,15 +183,15 @@
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="4dp">
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="4dp">
|
||||
<LinearLayout
|
||||
android:id="@+id/file_view_title_layout"
|
||||
android:orientation="vertical"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="48dp">
|
||||
android:layout_marginRight="48dp">
|
||||
<TextView
|
||||
android:id="@+id/file_view_title"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -208,7 +208,7 @@
|
||||
android:id="@+id/file_view_view_count"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textSize="12sp"
|
||||
android:textFontWeight="300"
|
||||
@@ -226,8 +226,8 @@
|
||||
<ImageView
|
||||
android:id="@+id/file_view_desc_toggle_arrow"
|
||||
android:src="@drawable/ic_arrow_dropdown"
|
||||
android:layout_toStartOf="@+id/file_view_title_layout"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_toLeftOf="@+id/file_view_title_layout"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
@@ -482,15 +482,15 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:layout_toStartOf="@id/file_view_icon_follow">
|
||||
android:layout_toLeftOf="@id/file_view_icon_follow">
|
||||
<RelativeLayout
|
||||
android:id="@+id/file_view_publisher_avatar"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:visibility="gone">
|
||||
<RelativeLayout
|
||||
android:layout_centerHorizontal="true"
|
||||
@@ -545,12 +545,12 @@
|
||||
android:id="@+id/file_view_icon_follow"
|
||||
android:clickable="true"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:text="@string/fa_heart"
|
||||
android:textColor="@color/red"
|
||||
android:textSize="20dp" />
|
||||
@@ -559,12 +559,12 @@
|
||||
android:id="@+id/file_view_icon_unfollow"
|
||||
android:clickable="true"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:text="@string/fa_heart_broken"
|
||||
android:textSize="20dp"
|
||||
android:visibility="invisible" />
|
||||
@@ -591,8 +591,8 @@
|
||||
android:autoLink="all"
|
||||
android:textColorLink="@color/lbryGreen"
|
||||
android:textFontWeight="300"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp" />
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp" />
|
||||
<LinearLayout
|
||||
android:id="@+id/file_view_tag_area"
|
||||
android:orientation="horizontal"
|
||||
@@ -600,8 +600,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="10"
|
||||
android:paddingTop="36dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp">
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp">
|
||||
<TextView
|
||||
android:layout_weight="2"
|
||||
android:layout_width="0dp"
|
||||
@@ -613,7 +613,7 @@
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/file_view_tag_list"
|
||||
android:layout_weight="8"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
@@ -635,8 +635,8 @@
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp">
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -657,8 +657,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/no_related_content"
|
||||
android:textSize="14sp"
|
||||
@@ -687,8 +687,8 @@
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp">
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp">
|
||||
<ProgressBar
|
||||
android:id="@+id/file_view_comments_progress"
|
||||
android:layout_width="16dp"
|
||||
@@ -712,8 +712,8 @@
|
||||
android:id="@+id/file_view_no_comments"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/no_comments"
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="6dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp">
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp">
|
||||
<TextView
|
||||
android:id="@+id/following_page_title"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -41,14 +41,14 @@
|
||||
android:layout_height="16dp"
|
||||
android:visibility="gone"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true" />
|
||||
android:layout_alignParentRight="true" />
|
||||
<ProgressBar
|
||||
android:id="@+id/following_content_progress"
|
||||
android:visibility="gone"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true" />
|
||||
android:layout_alignParentRight="true" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
@@ -57,8 +57,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:visibility="gone">
|
||||
<LinearLayout
|
||||
android:id="@+id/following_sort_link"
|
||||
@@ -79,7 +79,7 @@
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/ic_arrow_dropdown"
|
||||
android:tint="@color/foreground" />
|
||||
@@ -87,12 +87,12 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/following_time_link"
|
||||
android:layout_toEndOf="@id/following_sort_link"
|
||||
android:layout_toRightOf="@id/following_sort_link"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:visibility="gone">
|
||||
<TextView
|
||||
@@ -107,7 +107,7 @@
|
||||
<ImageView
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@drawable/ic_arrow_dropdown"
|
||||
android:tint="@color/foreground" />
|
||||
@@ -118,7 +118,7 @@
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:clickable="true"
|
||||
android:fontFamily="@font/inter"
|
||||
@@ -131,8 +131,8 @@
|
||||
android:id="@+id/following_page_info"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:text="@string/lbry_works_better"
|
||||
@@ -188,8 +188,8 @@
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/following_suggested_done_button"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
android:layout_alignParentBottom="true">
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/invites_get_started_button"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
android:id="@+id/library_filter_card"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="16dp">
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -32,8 +32,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_toEndOf="@id/library_filter_link_downloads"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_toRightOf="@id/library_filter_link_downloads"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/purchases" />
|
||||
<TextView
|
||||
@@ -43,8 +43,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_toEndOf="@id/library_filter_link_purchases"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_toRightOf="@id/library_filter_link_purchases"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/history"
|
||||
android:textSize="14sp" />
|
||||
@@ -52,7 +52,7 @@
|
||||
android:id="@+id/library_list_loading"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:visibility="gone" />
|
||||
<TextView
|
||||
@@ -61,7 +61,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/stats"
|
||||
android:textColor="@color/lbryGreen"
|
||||
@@ -75,8 +75,8 @@
|
||||
android:layout_below="@id/library_filter_card"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:visibility="gone">
|
||||
<LinearLayout
|
||||
@@ -105,7 +105,7 @@
|
||||
android:id="@+id/library_storage_stat_unit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="3dp"
|
||||
android:layout_marginLeft="3dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/mb"
|
||||
android:textColor="@color/lbryGreen"
|
||||
@@ -119,7 +119,7 @@
|
||||
android:clickable="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/hide"
|
||||
@@ -174,13 +174,13 @@
|
||||
android:layout_height="10dp"
|
||||
android:layout_centerVertical="true" />
|
||||
<TextView
|
||||
android:layout_toEndOf="@id/library_storage_legend_video_icon"
|
||||
android:layout_toRightOf="@id/library_storage_legend_video_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/video"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:textFontWeight="300"
|
||||
android:textSize="12sp" />
|
||||
|
||||
@@ -190,7 +190,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/zero_mb"
|
||||
android:textFontWeight="300"
|
||||
@@ -210,13 +210,13 @@
|
||||
android:layout_height="10dp"
|
||||
android:layout_centerVertical="true" />
|
||||
<TextView
|
||||
android:layout_toEndOf="@id/library_storage_legend_audio_icon"
|
||||
android:layout_toRightOf="@id/library_storage_legend_audio_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/audio"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:textFontWeight="300"
|
||||
android:textSize="12sp" />
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/zero_mb"
|
||||
android:textFontWeight="300"
|
||||
@@ -246,13 +246,13 @@
|
||||
android:layout_height="10dp"
|
||||
android:layout_centerVertical="true" />
|
||||
<TextView
|
||||
android:layout_toEndOf="@id/library_storage_legend_image_icon"
|
||||
android:layout_toRightOf="@id/library_storage_legend_image_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/images"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:textFontWeight="300"
|
||||
android:textSize="12sp" />
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/zero_mb"
|
||||
android:textFontWeight="300"
|
||||
@@ -282,13 +282,13 @@
|
||||
android:layout_height="10dp"
|
||||
android:layout_centerVertical="true" />
|
||||
<TextView
|
||||
android:layout_toEndOf="@id/library_storage_legend_other_icon"
|
||||
android:layout_toRightOf="@id/library_storage_legend_other_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/other"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:textFontWeight="300"
|
||||
android:textSize="12sp" />
|
||||
|
||||
@@ -298,7 +298,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/zero_mb"
|
||||
android:textFontWeight="300"
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
android:layout_weight="1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="-1.5dp">
|
||||
android:layout_marginLeft="-1.5dp">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -64,7 +64,7 @@
|
||||
android:clickable="true"
|
||||
android:background="@android:color/black"
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
android:layout_toEndOf="@id/publish_vertical_divider"
|
||||
android:layout_toRightOf="@id/publish_vertical_divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="148.5dp">
|
||||
<LinearLayout
|
||||
@@ -106,7 +106,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/publish_photo_upload_divider"
|
||||
android:layout_toEndOf="@id/publish_vertical_divider">
|
||||
android:layout_toRightOf="@id/publish_vertical_divider">
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -168,7 +168,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/loading_videos"
|
||||
android:textColor="@color/white"
|
||||
|
||||
@@ -29,16 +29,16 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/publish_form_thumbnail_upload_progress"
|
||||
android:background="@color/channelCoverBackground"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:visibility="gone">
|
||||
<ProgressBar
|
||||
android:layout_width="16dp"
|
||||
@@ -46,7 +46,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/uploading"
|
||||
android:textColor="@color/white"
|
||||
@@ -58,7 +58,7 @@
|
||||
android:background="@drawable/bg_small_icon"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true">
|
||||
@@ -149,7 +149,7 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:textSize="16sp" />
|
||||
@@ -183,7 +183,7 @@
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
@@ -191,7 +191,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toEndOf="@id/publish_form_video_opt_progress"
|
||||
android:layout_toRightOf="@id/publish_form_video_opt_progress"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:textSize="14sp" />
|
||||
@@ -243,7 +243,7 @@
|
||||
android:id="@+id/publish_form_loading_channels"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
@@ -280,7 +280,7 @@
|
||||
android:id="@+id/publish_form_price_switch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true" />
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -318,8 +318,8 @@
|
||||
android:entries="@array/publish_currencies"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toEndOf="@+id/publish_form_price_layout"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_toRightOf="@+id/publish_form_price_layout"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginTop="24dp" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
@@ -349,7 +349,7 @@
|
||||
android:id="@+id/publish_form_generate_address"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -416,10 +416,10 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/publish_form_input_currency"
|
||||
android:layout_toEndOf="@id/publish_form_input_layout_deposit"
|
||||
android:layout_toRightOf="@id/publish_form_input_layout_deposit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/lbc"
|
||||
@@ -429,8 +429,8 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/publish_form_inline_balance_container"
|
||||
android:layout_toEndOf="@id/publish_form_input_currency"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_toRightOf="@id/publish_form_input_currency"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -446,7 +446,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
android:layout_marginStart="2dp" />
|
||||
android:layout_marginLeft="2dp" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -538,7 +538,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/show_extra_fields"
|
||||
android:textFontWeight="300" />
|
||||
@@ -546,8 +546,8 @@
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:layout_marginTop="24dp">
|
||||
<TextView
|
||||
android:id="@+id/publish_form_cancel"
|
||||
@@ -567,14 +567,14 @@
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_toStartOf="@id/publish_form_publish_button"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_toLeftOf="@id/publish_form_publish_button"
|
||||
android:visibility="gone" />
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/publish_form_publish_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/publish" />
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
android:id="@+id/publishes_list_loading"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:visibility="gone" />
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/publishes_list"
|
||||
@@ -66,9 +66,9 @@
|
||||
android:id="@+id/publishes_fab_new_publish"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:src="@drawable/ic_add"
|
||||
android:visibility="gone" />
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp">
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp">
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/rewards_filter_card"
|
||||
android:layout_width="match_parent"
|
||||
@@ -35,8 +35,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_toEndOf="@id/rewards_filter_link_unclaimed"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_toRightOf="@id/rewards_filter_link_unclaimed"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/all"
|
||||
android:textSize="14sp" />
|
||||
@@ -44,7 +44,7 @@
|
||||
android:id="@+id/rewards_list_loading"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
@@ -87,7 +87,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textSize="24sp"
|
||||
android:textColor="@color/white" />
|
||||
@@ -143,7 +143,7 @@
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/rewards_get_started_button"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"/>
|
||||
|
||||
|
||||
@@ -1,87 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<RelativeLayout
|
||||
android:background="@android:color/black"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/shuffle_exoplayer_container"
|
||||
android:background="@android:color/black"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_above="@id/shuffle_content_details">
|
||||
<com.google.android.exoplayer2.ui.PlayerView
|
||||
android:id="@+id/shuffle_exoplayer_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:controller_layout_id="@layout/exo_playback_control_view"/>
|
||||
<ProgressBar
|
||||
android:id="@+id/player_buffering_progress"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/shuffle_content_details"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_alignParentBottom="true">
|
||||
<TextView
|
||||
android:id="@+id/shuffle_content_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@color/white"
|
||||
android:textFontWeight="300"
|
||||
android:minLines="1"
|
||||
android:maxLines="3"
|
||||
android:textSize="20sp"
|
||||
/>
|
||||
<TextView
|
||||
android:id="@+id/shuffle_content_publisher"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@color/white"
|
||||
android:textFontWeight="300"
|
||||
android:minLines="1"
|
||||
android:maxLines="1"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/shuffle_loading"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:visibility="gone" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/shuffle_share_button"
|
||||
android:layout_width="72dp"
|
||||
android:layout_height="72dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:clickable="true"
|
||||
android:background="?attr/selectableItemBackground">
|
||||
<ImageView
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:tint="@color/white"
|
||||
android:src="@drawable/ic_share" />
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ui.slideshow.SlideshowFragment">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_slideshow"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:textAlignment="center"
|
||||
android:textSize="20sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -9,8 +9,8 @@
|
||||
android:id="@+id/transaction_history_no_transactions"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textSize="14sp"
|
||||
android:text="@string/no_transactions"
|
||||
|
||||
@@ -136,8 +136,8 @@
|
||||
android:id="@+id/verification_phone_verify_progress"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_toEndOf="@id/verification_phone_verify_button"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_toRightOf="@id/verification_phone_verify_button"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:visibility="gone" />
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/edit"
|
||||
android:textColor="@color/white"
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginTop="24dp" />
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/wallet_sign_up_button"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:clickable="true"
|
||||
@@ -32,7 +32,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@color/lightForeground"
|
||||
android:textFontWeight="300"
|
||||
@@ -41,7 +41,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/reposted"
|
||||
android:textColor="@color/lightForeground"
|
||||
@@ -83,13 +83,13 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:paddingTop="1dp"
|
||||
android:paddingBottom="1dp"
|
||||
android:paddingStart="2dp"
|
||||
android:paddingEnd="2dp"
|
||||
android:paddingLeft="2dp"
|
||||
android:paddingRight="2dp"
|
||||
android:visibility="gone">
|
||||
<io.lbry.browser.ui.controls.SolidIconView
|
||||
android:layout_width="16dp"
|
||||
@@ -102,7 +102,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textSize="14sp"
|
||||
android:textFontWeight="300" />
|
||||
@@ -128,8 +128,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_toEndOf="@id/claim_media_container">
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_toRightOf="@id/claim_media_container">
|
||||
<TextView
|
||||
android:id="@+id/claim_vanity_url"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
android:background="@drawable/bg_selected_item"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="2dp">
|
||||
android:layout_marginRight="2dp">
|
||||
<RelativeLayout
|
||||
android:id="@+id/channel_filter_media_container"
|
||||
android:layout_width="80dp"
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
android:focusable="true"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="8dp">
|
||||
|
||||
<RelativeLayout
|
||||
@@ -46,8 +46,8 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toEndOf="@id/comment_avatar_container"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_toRightOf="@id/comment_avatar_container"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
@@ -66,7 +66,7 @@
|
||||
android:id="@+id/comment_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerInParent="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@color/lightGrey"
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
android:id="@+id/editors_choice_header_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textSize="24sp"
|
||||
@@ -22,8 +22,8 @@
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="16dp">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -49,10 +49,10 @@
|
||||
android:layout_centerVertical="true"/>
|
||||
<TextView
|
||||
android:id="@+id/editors_choice_content_description"
|
||||
android:layout_toEndOf="@id/editors_choice_content_thumbnail"
|
||||
android:layout_toRightOf="@id/editors_choice_content_thumbnail"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:lineSpacingMultiplier="1.2"
|
||||
android:fontFamily="@font/inter"
|
||||
android:ellipsize="end"
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:clickable="true"
|
||||
@@ -27,7 +27,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:clickable="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textFontWeight="300"
|
||||
@@ -36,7 +36,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/reposted"
|
||||
android:textSize="12sp"
|
||||
@@ -78,8 +78,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="4dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@android:color/white"
|
||||
@@ -93,13 +93,13 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:paddingStart="6dp"
|
||||
android:paddingEnd="7dp"
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingRight="7dp"
|
||||
android:visibility="gone">
|
||||
<io.lbry.browser.ui.controls.SolidIconView
|
||||
android:layout_width="12dp"
|
||||
@@ -113,7 +113,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="1dp"
|
||||
android:layout_marginLeft="1dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="14sp"
|
||||
@@ -139,8 +139,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_toEndOf="@id/claim_media_container">
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_toRightOf="@id/claim_media_container">
|
||||
<TextView
|
||||
android:id="@+id/claim_vanity_url"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="4dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@android:color/white"
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:layout_marginBottom="4dp">
|
||||
<TextView
|
||||
android:id="@+id/nav_menu_title"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:paddingStart="20dp"
|
||||
android:paddingEnd="20dp"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:background="@drawable/bg_selected_nav_item"
|
||||
@@ -22,7 +22,7 @@
|
||||
<TextView
|
||||
android:id="@+id/nav_menu_title"
|
||||
android:fontFamily="@font/inter"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
android:clickable="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_marginBottom="8dp">
|
||||
<LinearLayout
|
||||
android:id="@+id/notification_layout"
|
||||
@@ -14,7 +14,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<RelativeLayout
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_gravity="center_vertical">
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:clickable="true"
|
||||
@@ -32,7 +32,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@color/lightForeground"
|
||||
android:textFontWeight="300"
|
||||
@@ -41,7 +41,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:text="@string/reposted"
|
||||
android:textColor="@color/lightForeground"
|
||||
@@ -83,8 +83,8 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="4dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@android:color/white"
|
||||
@@ -98,13 +98,13 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingBottom="2dp"
|
||||
android:paddingStart="6dp"
|
||||
android:paddingEnd="7dp"
|
||||
android:paddingLeft="6dp"
|
||||
android:paddingRight="7dp"
|
||||
android:visibility="gone">
|
||||
<io.lbry.browser.ui.controls.SolidIconView
|
||||
android:layout_width="12dp"
|
||||
@@ -118,7 +118,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginStart="1dp"
|
||||
android:layout_marginLeft="1dp"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="14sp"
|
||||
@@ -151,8 +151,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_toEndOf="@id/claim_media_container">
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_toRightOf="@id/claim_media_container">
|
||||
<LinearLayout
|
||||
android:id="@+id/claim_text_loading_placeholder_1"
|
||||
android:background="@color/lighterGrey"
|
||||
@@ -217,7 +217,7 @@
|
||||
android:id="@+id/claim_file_size"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:fontFamily="@font/inter"
|
||||
android:textSize="11sp"
|
||||
android:textFontWeight="300" />
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
android:focusable="true"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp">
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp">
|
||||
<RelativeLayout
|
||||
android:id="@+id/suggested_media_container"
|
||||
android:layout_width="80dp"
|
||||
@@ -64,6 +64,6 @@
|
||||
android:textSize="12sp"
|
||||
android:paddingTop="2dp"
|
||||
android:paddingBottom="3dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp" />
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp" />
|
||||
</LinearLayout>
|
||||
@@ -5,19 +5,19 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="6dp"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_marginRight="6dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingBottom="4dp"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="12dp"
|
||||
android:foreground="?attr/selectableItemBackground">
|
||||
<ImageView
|
||||
android:id="@+id/tag_action"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:layout_marginRight="4dp"
|
||||
android:tint="@color/darkForeground" />
|
||||
<TextView
|
||||
android:id="@+id/tag_name"
|
||||
@@ -25,7 +25,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:fontFamily="@font/inter"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:textSize="12sp"
|
||||
android:textFontWeight="300" />
|
||||
</LinearLayout>
|
||||
@@ -2,8 +2,8 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent" android:layout_height="wrap_content"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingRight="12dp"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:clickable="true"
|
||||
@@ -18,9 +18,9 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toEndOf="@id/url_suggestion_icon"
|
||||
android:layout_toRightOf="@id/url_suggestion_icon"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/url_suggestion_title"
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
style="@style/Widget.MaterialComponents.Button.TextButton"/>
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,605 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
|
||||
<string name="app_name">LBRY</string>
|
||||
<string name="navigation_drawer_open">Avaa navigointilaatikko</string>
|
||||
<string name="navigation_drawer_close">Sulje navigointilaatikko</string>
|
||||
|
||||
<!-- Nav menu -->
|
||||
<string name="find_content">Etsi sisältöä</string>
|
||||
<string name="your_content">Sinun sisältö</string>
|
||||
<string name="wallet">Lompakko</string>
|
||||
<string name="following">Seuraamassa</string>
|
||||
<string name="editors_choice">Toimittajan valinta</string>
|
||||
<string name="your_tags">Sinun Tunnisteet</string>
|
||||
<string name="all_content">Kaikki sisältö</string>
|
||||
<string name="channels">Kanavat</string>
|
||||
<string name="library">Kirjasto</string>
|
||||
<string name="publishes">Julkaisut</string>
|
||||
<string name="new_publish">Uusi julkaisu</string>
|
||||
<string name="rewards">Palkinnot</string>
|
||||
<string name="invites">Kutsut</string>
|
||||
<string name="settings">Asetukset</string>
|
||||
<string name="about">Noin</string>
|
||||
<string name="sign_in">Kirjaudu sisään</string>
|
||||
<string name="startup_failed">Sovelluksen käynnistys epäonnistui. Tarkista datayhteys ja yritä uudelleen. Jos tämä ongelma jatkuu, lähetä sähköpostia osoitteeseen hello@lbry.com</string>
|
||||
<string name="no_claim_search_content">Ei näytettävää sisältöä tällä hetkellä. Tarkenna valintaasi tai tarkista myöhemmin uudelleen.</string>
|
||||
|
||||
<!-- Welcome Page -->
|
||||
<string name="welcome_to_lbry">Tervetuloa LBRY:lle</string>
|
||||
<string name="welcome_paragraph">LBRY on yhteisön ohjaama sisältöalusta, josta voit löytää ja julkaista videoita, musiikkia, kirjoja ja paljon muuta.</string>
|
||||
<string name="welcome_tos">Jatkamalla, hyväksyn <a href=\"https://lbry.com/termsofservice\">Terms of Service</a> ja vahvistan että olen yli 13vuotias.</string>
|
||||
<string name="welcome_please_wait">Odota, kunnes saamme asiat valmiiksi ...</string>
|
||||
<string name="use_lbry">Käytä LBRY »</string>
|
||||
|
||||
<!-- URI bar -->
|
||||
<string name="uri_placeholder">Etsi videoita, musiikkia ja muuta</string>
|
||||
|
||||
<!-- Following page -->
|
||||
<string name="find_channels_to_follow">Etsi seurattavat kanavat</string>
|
||||
<string name="channels_you_follow">Kanavat joita seuraat</string>
|
||||
<string name="discover">Tutustu</string>
|
||||
<string name="lbry_works_better">LBRY toimii paremmin, jos seuraat vähintään 5 haluamaasi tekijää. Kirjaudu sisään näyttääksesi seuraamasi tekijät, jos sinulla on jo tili.</string>
|
||||
<string name="select_five_subscriptions">Valitse enintään 5 tekijää jatkaaksesi.</string>
|
||||
<string name="n_remaining">%1$djäljellä...</string>
|
||||
<string name="done">Tehty</string>
|
||||
<string name="all">Kaikki</string>
|
||||
<string name="discover_channels">Löydä uusia kanavia</string>
|
||||
|
||||
<!-- Claim lists -->
|
||||
<string name="anonymous">Anonyymi</string>
|
||||
|
||||
<!-- File view -->
|
||||
<string name="tags">Tunnisteet</string>
|
||||
<string name="share">Jaa</string>
|
||||
<string name="repost">Repost</string>
|
||||
<string name="tip">Tippi</string>
|
||||
<string name="edit">Muokkaa</string>
|
||||
<string name="delete">Poista</string>
|
||||
<string name="download">Lataa</string>
|
||||
<string name="open">Avoin</string>
|
||||
<string name="report">Ilmianna</string>
|
||||
<string name="loading_decentralized_data">Ladataan hajautettua tietoa ...</string>
|
||||
<string name="related_content">Samankaltaista sisältöä</string>
|
||||
<string name="comments">Kommentit</string>
|
||||
<string name="no_comments">Ei kommentteja näytettäväksi tällä hetkellä.</string>
|
||||
<string name="sdk_initializing_comments">Kommentit tulevat näkyviin, kun taustapalvelu on alustettu.</string>
|
||||
<string name="comment_error">Kommenttiasi ei voitu lähettää tällä hetkellä. Yritä uudelleen myöhemmin.</string>
|
||||
<string name="share_lbry_content">Jaa LBRY-sisältö</string>
|
||||
<string name="view">Näytä</string>
|
||||
<string name="play">Toista</string>
|
||||
<string name="unsupported_content">Ei tuettu sisältö</string>
|
||||
<string name="unsupported_content_desc">Valitettavasti emme pysty näyttämään tätä sisältöä sovelluksessa. Löydät tiedoston %1$s latauskansiostasi.</string>
|
||||
<string name="nothing_at_this_location">Tässä paikassa ei ole mitään.</string>
|
||||
<string name="publish_something_here">Julkaise jotain täällä</string>
|
||||
<string name="cannot_view_claim">Tätä sisältöä ei voida käyttää tällä hetkellä. Yritä uudelleen myöhemmin.</string>
|
||||
<string name="zero_duration">0:00</string>
|
||||
<string name="claim_file_not_found">Tiedostoa kohteessa \"%1$s\" ei ole.</string>
|
||||
<string name="confirm_purchase">Vahvista ostos</string>
|
||||
<string name="delete_file">Poista tiedosto</string>
|
||||
<string name="confirm_delete_file_message">Haluatko varmasti poistaa tämän tiedoston laitteestasi?</string>
|
||||
<string name="unable_to_view_url">Lataus epäonnistui %1$s.Yritä uudelleen myöhemmin.</string>
|
||||
<string name="no_cast_session_available">Tällä hetkellä ei ole saatavana suoratoistoistuntoa.</string>
|
||||
<string name="delete_content">Poistetaanko sisältö?</string>
|
||||
<string name="confirm_delete_content_message">Haluatko varmasti poistaa tämän sisällön julkaisun? Laitteistasi ei poisteta tiedostoja.</string>
|
||||
<string name="content_deleted">Sisältö poistettiin onnistuneesti lohkoketjusta.</string>
|
||||
<string name="content_failed_delete">Sisältöä ei voitu poistaa tällä hetkellä. Yritä uudelleen myöhemmin.</string>
|
||||
<string name="comment">Kommentti</string>
|
||||
<string name="comment_as">Kommentoi nimellä</string>
|
||||
<string name="please_enter_comment">Kirjoita kommentti lähettääksesi viestin.</string>
|
||||
<string name="please_select_channel">Valitse kanava, johon haluat lähettää kommenttisi.</string>
|
||||
<string name="comment_posted">Kommenttisi lähetetty onnistuneesti.</string>
|
||||
<string name="please_select_repost_channel">Valitse kanava, johon haluat lähettää uudelleen.</string>
|
||||
<string name="reply">Vastaa</string>
|
||||
<string name="replying_to">Vastaa käyttäjille %1$s</string>
|
||||
<plurals name="post_and_tip">
|
||||
<item quantity="one">Posti- ja tip-l%1$s uottotiedot?</item>
|
||||
<item quantity="other">Posti- ja tippi %1$s krediitit?</item>
|
||||
</plurals>
|
||||
<plurals name="post_for_credits">
|
||||
<item quantity="one">Lähetä %1$s krediitillä</item>
|
||||
<item quantity="other">Post for %1$scredits</item>
|
||||
</plurals>
|
||||
<plurals name="confirm_post_comment">
|
||||
<item quantity="one">Tämä lähettää kommenttisi %1$s hyvityksellä %2$s</item>
|
||||
<item quantity="other">Tämä lähettää kommenttisi %1$s hyvityksellä %2$s</item>
|
||||
</plurals>
|
||||
<plurals name="view_count">
|
||||
<item quantity="one">%1$s Näyttökertaa</item>
|
||||
<item quantity="other">%1$s Näyttökertaa</item>
|
||||
</plurals>
|
||||
<plurals name="confirm_purchase_message">
|
||||
<item quantity="one">Tämä ostos \"%1$s\" maksaa %2$s Crediittiä</item>
|
||||
<item quantity="other">Tämä ostos \"%1$s\" maksaa %2$s Crediittiä</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Channel view -->
|
||||
<string name="no_channel_info">Täällä ei ole vielä mitään.\nTarkista myöhemmin uudelleen.</string>
|
||||
<string name="content">Sisältö</string>
|
||||
<string name="website">Nettisivu</string>
|
||||
<string name="reposted">uudelleen julkaistu</string>
|
||||
<plurals name="follower_count">
|
||||
<item quantity="one">%1$s Seuraaja</item>
|
||||
<item quantity="other">%1$s Seuraajaa</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Publish -->
|
||||
<string name="no_publishes_created">Näyttää siltä, että et ole vielä julkaissut sisältöä LBRY: lle.</string>
|
||||
<string name="record">Tallentaa</string>
|
||||
<string name="take_photo">Ota kuva</string>
|
||||
<string name="upload_file">Lähetä tiedosto</string>
|
||||
<string name="no_videos_found">Laitteestasi ei löytynyt videoita. Ota valokuva tai nauhoita video aloittaaksesi.</string>
|
||||
<string name="loading_videos">Odota, kun lataamme videoitasi ...</string>
|
||||
<string name="storage_permission_rationale_videos">LBRY vaatii pääsyn voidaksesi näyttää ja julkaista videoitasi, kuvia ja muita tiedostoja laitteeltasi.</string>
|
||||
<string name="camera_permission_rationale_record">LBRY vaatii pääsyn kameraan videoiden tallentamiseksi.</string>
|
||||
<string name="camera_permission_rationale_photo">LBRY vaatii pääsyn kameraan valokuvien ottamista varten.</string>
|
||||
<string name="edit_content">Muokkaa sisältöä</string>
|
||||
<string name="mature_tags">Kypsät tunnisteet</string>
|
||||
<string name="price">Hinta</string>
|
||||
<string name="free_publish">Sisältösi on ilmaista. Aseta hinta painamalla kytkintä.</string>
|
||||
<string name="content_address">Sisältöosoite</string>
|
||||
<string name="randomize">Satunnainen</string>
|
||||
<string name="address">Osoite</string>
|
||||
<string name="content_address_desc">Osoite, josta ihmiset voivat löytää sisältösi (esim. Lbry://myvideo)</string>
|
||||
<string name="license">Lisenssi</string>
|
||||
<string name="license_desc">Kuvaus</string>
|
||||
<string name="additional_options">Lisävaihtoehtoja</string>
|
||||
<string name="show_extra_fields">Näytä ylimääräiset kentät</string>
|
||||
<string name="hide_extra_fields">Piilota ylimääräiset kentät</string>
|
||||
<string name="no_file_found">Tiedostoa ei löytynyt julkaistavaksi.</string>
|
||||
<string name="publish_invalid_claim_type">Muokkaamiseen määritetty virheellinen vaatimus.</string>
|
||||
<string name="video_optimization">Videon optimointi</string>
|
||||
<string name="thumbnail_creation_failed">Pikkukuvaa ei voitu luoda automaattisesti sisältötiedostostasi.</string>
|
||||
<string name="video_being_optimized">Videosi on optimoitu paremman tuen tarjoamiseksi monille laitteille. Voit täyttää jäljellä olevat kentät alla, kun tämä on käynnissä.</string>
|
||||
<string name="video_optimized">Videosi optimoitiin onnistuneesti parempaan toistoon mahdollisimman monissa laitteissa. Jatka julkaisemasi sisältöä.</string>
|
||||
<string name="video_optimize_failed">Videota ei voitu optimoida. Tiedosto ladataan ilman muutoksia.</string>
|
||||
<string name="completed_video_duration">Valmistunut videon kesto: %1$s</string>
|
||||
<string name="sdk_initializing_publish">Et voi julkaista sisältöä tällä hetkellä, koska taustapalvelu on edelleen alustamassa.</string>
|
||||
<string name="publish_successful">Sisällön julkaiseminen onnistui. Voi kestää hetken, että näyttöön pääsyketju.</string>
|
||||
<string name="transcode_in_progress">Videon optimointi on käynnissä. Jos haluat peruuttaa, paina Peruuta sivun alaosassa.</string>
|
||||
<string name="optimization_in_progress">Videon optimointi on käynnissä.</string>
|
||||
<string name="cannot_capture_video">Tällä laitteella ei ole käytettävissä kamerasovellusta videoiden nauhoittamiseen.</string>
|
||||
<string name="cannot_take_photo">Tällä laitteella ei ole käytettävissä kamerasovellusta valokuvien ottamiseen.</string>
|
||||
|
||||
<string name="please_provide_title">Anna otsikko.</string>
|
||||
<string name="please_specify_address">Määritä osoite, josta ihmiset voivat löytää sisältösi.</string>
|
||||
<string name="address_invalid_characters">Sisältöosoitteesi sisältää virheellisiä merkkejä.</string>
|
||||
<string name="address_already_used">Olet jo julkaissut määritettyyn sisältöosoitteeseen. Anna uusi osoite.</string>
|
||||
<string name="no_file_selected">Ei tiedostoa valittuna. Valitse video tai ota valokuva tai valitse tiedosto ennen julkaisemista.</string>
|
||||
<string name="price_amount_not_set">Anna hinta tai kytke kytkin pois päältä, jotta sisältösi on ilmaista.</string>
|
||||
<string name="publish_no_thumbnail">Valitse ladattava pikkukuva ennen julkaisua.</string>
|
||||
<string name="publish_thumbnail_in_progress">Odota, että pikkukuva latautuu loppuun ennen julkaisua.</string>
|
||||
|
||||
<string name="language">Kieli</string>
|
||||
<string name="english">Englanti</string>
|
||||
<string name="chinese">Kiina</string>
|
||||
<string name="french">Ranska</string>
|
||||
<string name="german">Saksa</string>
|
||||
<string name="japanese">Japani</string>
|
||||
<string name="russian">Venäjä</string>
|
||||
<string name="spanish">Espanja</string>
|
||||
<string name="indonesian">Indoneesia</string>
|
||||
<string name="italian">Italia</string>
|
||||
<string name="dutch">Hollanti</string>
|
||||
<string name="turkish">Turkki</string>
|
||||
<string name="polish">Puola</string>
|
||||
<string name="malay">Malaiji</string>
|
||||
<string name="portuguese">Portugali</string>
|
||||
<string name="vietnamese">Vietnami</string>
|
||||
<string name="thai">Thaimaa</string>
|
||||
<string name="arabic">Arabi</string>
|
||||
<string name="czech">Tshekki</string>
|
||||
<string name="croatian">Kroatia</string>
|
||||
<string name="cambodian">Kambodžan</string>
|
||||
<string name="korean">Korea</string>
|
||||
<string name="norwegian">Norja</string>
|
||||
<string name="romanian">Romaania</string>
|
||||
<string name="hindi">Hindi</string>
|
||||
<string name="greek">Kreikka</string>
|
||||
<string name="catalan">Katalaani</string>
|
||||
|
||||
<string name="none">Ei mitään</string>
|
||||
<string name="public_domain">Julkinen</string>
|
||||
<string name="copyrighted">Tekijänoikeudella suojattuja ...</string>
|
||||
<string name="cca_4_0_international">Creative Commons Attribution 4.0 International</string>
|
||||
<string name="cca_sa_4_0_international">Creative Commons Attribution-ShareAlike 4.0 International</string>
|
||||
<string name="cca_nd_4_0_international">Creative Commons Attribution-NoDerivatives 4.0 International</string>
|
||||
<string name="cca_nc_4_0_international">Creative Commons Attribution-NonCommercial 4.0 International</string>
|
||||
<string name="cca_nc_sa_4_0_international">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International</string>
|
||||
<string name="cca_nc_nd_4_0_international">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International</string>
|
||||
|
||||
<string-array name="publish_currencies">
|
||||
<item>LBC</item>
|
||||
<item>USD</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Publishes -->
|
||||
<string name="one_or_more_publishes_failed_abandon">Yhtä tai useampaa sisältökohdetta ei voitu poistaa tällä hetkellä. Yritä uudelleen myöhemmin.</string>
|
||||
<plurals name="confirm_delete_publishes">
|
||||
<item quantity="one">Haluatko varmasti poistaa valitut sisältökohteet?</item>
|
||||
<item quantity="other">Haluatko varmasti poistaa valitut sisältökohteet?</item>
|
||||
</plurals>
|
||||
<plurals name="publishes_deleted">
|
||||
<item quantity="one">Sisältökohteet poistettiin onnistuneesti.</item>
|
||||
<item quantity="other">Sisältökohteet poistettiin onnistuneesti.</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Splash -->
|
||||
<string name="oops_something_went_wrong">Oho! Jotain meni pieleen.</string>
|
||||
<string name="installation_id_loaded">Ladattu asennustunnus.</string>
|
||||
<string name="known_tags_loaded">Ladattu paikalliset tunnetut ja seuratut tunnisteet.</string>
|
||||
<string name="exchange_rate_loaded">Ladattu LBC / USD-vaihtokurssi.</string>
|
||||
<string name="user_authenticated">Käyttäjän todennettu.</string>
|
||||
<string name="installation_registered">Asennus rekisteröity.</string>
|
||||
<string name="subscriptions_loaded">Ladatut tilaukset.</string>
|
||||
<string name="subscriptions_resolved">Ratkaistut tilaukset.</string>
|
||||
|
||||
<!-- Settings -->
|
||||
<string name="user_interface">Content & Käyttäjä näkymä</string>
|
||||
<string name="other">Muu</string>
|
||||
<string name="enable_background_playback">Ota taustamedian toisto käyttöön</string>
|
||||
<string name="enable_dark_mode">Ota tumma teema käyttöön</string>
|
||||
<string name="show_mature_content">Näytä kypsä sisältö</string>
|
||||
<string name="show_url_suggestions">Näytä URL-ehdotukset</string>
|
||||
<string name="notifications">Ilmoitukset</string>
|
||||
<string name="subscriptions">Tilaukset</string>
|
||||
<string name="content_interests">Sisältö kiinnostaa</string>
|
||||
|
||||
<string name="keep_sdk_in_background">Pidä LBRY-palvelu käynnissä taustalla parantaaksesi lompakkoa ja verkon suorituskykyä</string>
|
||||
<string name="participate_in_data_network">Osallistu tietoverkkoon (vaatii sovelluksen ja taustapalvelun uudelleenkäynnistyksen)</string>
|
||||
|
||||
<!-- URL suggestions -->
|
||||
<string name="search_url_title">%1$s - Etsi</string>
|
||||
<string name="tag_url_title">%1$s - Tunniste</string>
|
||||
<string name="search_url_desc">Etsi \'%1$s\'</string>
|
||||
<string name="explore_tag_url_desc">Tutustu \'%1$s\' Tunnisteeseen</string>
|
||||
<string name="view_file_url_desc">Näytä sisältöä %1$s</string>
|
||||
<string name="view_channel_url_desc">Näytä %1$s kanava</string>
|
||||
|
||||
<!-- Search -->
|
||||
<string name="search_no_results">Ei tuloksia, joita näyttää \'%1$s\'. Kokeile toista hakutermiä.</string>
|
||||
<string name="search_no_query">Voit etsiä mitä tahansa, mukaan lukien elokuvat, musiikki, e-kirjat, ohjelmistot ja paljon muuta.</string>
|
||||
<string name="no_related_content">Ei liittyvää sisältöä näytettäväksi tällä hetkellä.</string>
|
||||
|
||||
<!-- Wallet -->
|
||||
<string name="balance">Saldo</string>
|
||||
<string name="you_currently_have">Sinulla on tällä hetkellä</string>
|
||||
<string name="convert_credits">Voit muuntaa luotosi USD: iin ja nostaa muunnetun summan vaihdon avulla. <a href=\"https://lbry.com/faq/exchanges\">Learn more</a>.</string>
|
||||
<string name="convert_credits_bittrex"><a href=\"https://bittrex.com/Account/Register?referralCode=4M1-P30-BON\">Convert Muunna hyvitykset USD: ksi Bittrexillä</a></string>
|
||||
<string name="you_also_have">Sinulla on myös</string>
|
||||
<string name="you_staked">Olet panostanut</string>
|
||||
<string name="in_tips">Lahjoituksissa</string>
|
||||
<string name="in_your_publishes">julkaisuissasi</string>
|
||||
<string name="in_your_supports">tuillasi</string>
|
||||
<string name="earn_more_tips">Ansaitse lisää vinkkejä lähettämällä hienoja videoita</string>
|
||||
<string name="sdk_initializing">Taustapalvelu alustetaan ...</string>
|
||||
<string name="sdk_still_initializing">Taustapalvelu on edelleen alustamassa. Voit tutkia ja katsella sisältöä sillä välin.</string>
|
||||
<string name="sdk_initializing_functionality">Et voi tehdä tätä nyt, koska taustapalvelu on edelleen käynnistymässä.</string>
|
||||
|
||||
<string name="backup_synced">Varmuuskopio lompakostasi synkronoidaan lbry.tv-tiedoston kanssa</string>
|
||||
<string name="backup_notsynced">Lompakkoasi ei ole tällä hetkellä synkronoitu lbry.tv: n kanssa. Olet vastuussa lompakkosi varmuuskopiosta.</string>
|
||||
<string name="synced_what_does_this_mean"><a href=\"https://lbry.com/faq/account-sync\">What Mitä se tarkoittaa?</a></string>
|
||||
<string name="backup_what_does_this_mean"><a href=\"https://lbry.com/faq/how-to-backup-wallet#android\">What Mitä se tarkoittaa?</a></string>
|
||||
|
||||
<string name="receive_credits">Saa krediittejä</string>
|
||||
<string name="use_this_address_hint">Käytä tätä lompakko-osoitetta saadaksesi toisen käyttäjän (tai itsesi) lähettämiä krediittejä.</string>
|
||||
<string name="get_new_address">Saa uusi osoite</string>
|
||||
<string name="generate_address_hint">Voit luoda uuden osoitteen milloin tahansa, ja kaikki aiemmat osoitteet toimivat edelleen. Useiden osoitteiden käyttäminen voi olla hyödyllistä seurata useista lähteistä tulevia maksuja.</string>
|
||||
|
||||
<string name="send_credits">Lähetä krediittejä</string>
|
||||
<string name="recipient_address">Vastaanottajan osoite</string>
|
||||
<string name="recipient_address_placeholder">bbFxRyXXXXXXXXXXXZD8nE7XTLUxYnddTs</string>
|
||||
<string name="amount">Määrä</string>
|
||||
<string name="send">Lähetä</string>
|
||||
|
||||
<string name="recent_transactions">Viimeaikaiset tapahtumat</string>
|
||||
<string name="view_all">Näytä kaikki</string>
|
||||
<string name="receive">Vastaanota</string>
|
||||
<string name="spend">Tuhlaa</string>
|
||||
<string name="publish">Julkaise</string>
|
||||
<string name="support">Tue</string>
|
||||
<string name="abandon">Hylätä</string>
|
||||
<string name="channel">Kanava</string>
|
||||
<string name="channel_update">Kanavan päivitys</string>
|
||||
<string name="publish_update">Julkaise päivitys</string>
|
||||
|
||||
<string name="wallet_sync">Synkronoi lompakko</string>
|
||||
<string name="sync_status">Synkronoinnin tila</string>
|
||||
<string name="on">Päällä</string>
|
||||
<string name="off">Kiinni</string>
|
||||
<string name="email">Sähköposti</string>
|
||||
<string name="no_connected_email">Ei yhdistettyjä sähköposteja</string>
|
||||
<string name="manual_backup"><a href=\"https://lbry.com/faq/how-to-backup-wallet#android\">Manual Manuaalinen palautus</a></string>
|
||||
<string name="sync_faq"><a href=\"https://lbry.com/faq/how-to-backup-wallet#sync\">Sync FAQ</a></string>
|
||||
<string name="zero">0</string>
|
||||
<string name="lbc">LBC</string>
|
||||
|
||||
<string name="account_recommended">Suositellut tilit</string>
|
||||
<string name="wallet_account_desc">Lbry.tv-tilin avulla voit ansaita palkintoja, varmuuskopioida lompakkosi ja pitää kaiken synkronoituna.</string>
|
||||
<string name="wallet_without_account">Ilman tiliäsi olet vastuussa lompakon ja LBRY-tietojen suojaamisesta.</string>
|
||||
<string name="skip_account">Ohita tili</string>
|
||||
<string name="sign_up">Rekisteröidy</string>
|
||||
<string name="address_copied">Osoite kopioitu</string>
|
||||
|
||||
<string name="invalid_recipient_address">Anna kelvollinen osoite, johon haluat lähettää hyvityksiä</string>
|
||||
<string name="insufficient_balance">Riittämätön tasapaino</string>
|
||||
<string name="invalid_amount">Anna oikea summa</string>
|
||||
<string name="send_credit_error">Hyvityksiäsi ei voitu lähettää tällä hetkellä. Yritä uudelleen myöhemmin.</string>
|
||||
<string name="loading_transactions">Ladataan tapahtumia ...</string>
|
||||
<string name="no_recent_transactions">Viimeisimmät näytettävät tapahtumat eivät ole.</string>
|
||||
<string name="no_transactions">Tällä hetkellä ei ole näkyviä tapahtumia.</string>
|
||||
<string name="tx_list_fee">maksu %1$s</string>
|
||||
<string name="transaction_history">Tapahtumahistoria</string>
|
||||
|
||||
<string name="unlock">Avata</string>
|
||||
<string name="unlock_tips">Avaako tippejä?</string>
|
||||
<string name="confirm_unlock_tips">Haluatko varmasti avata kaikki tippisi?</string>
|
||||
<string name="min_spend_required">Anna summa, joka on enemmän kuin 0,0001 krediittiä.</string>
|
||||
|
||||
<string name="buy_lbc">Osta LBC</string>
|
||||
<string name="hash_not_supported">Laitteesi ei tue vähimmäisvaatimuksia ostopyynnön turvaamiseksi.</string>
|
||||
<string name="receive_address_not_set">Sinulla ei ole lompakon osoitetta määritetty. Luo uusi osoite ja yritä uudelleen.</string>
|
||||
|
||||
<plurals name="you_sent_credits">
|
||||
<item quantity="one">Sinä lähetät %1$s krediittiä</item>
|
||||
<item quantity="other">Sinä lähetät %1$s krediittiä</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Dialogs -->
|
||||
<string name="customize_your_tags">Muokkaa sinun tunnisteita</string>
|
||||
<string name="sort_content_by">Lajittele sisältö</string>
|
||||
<string name="content_from">Sisältö</string>
|
||||
<string name="trending_content">Trendikäs sisältö</string>
|
||||
<string name="new_content">Uusi sisältö</string>
|
||||
<string name="top_content">Suosituin sisältö</string>
|
||||
<string name="trending">Nousussa</string>
|
||||
<string name="top">Paras</string>
|
||||
<string name="new_text">Uusi</string>
|
||||
<string name="past_24_hours">Viimeisen 24 tunnin aikana</string>
|
||||
<string name="past_week">Mennyt viikko</string>
|
||||
<string name="past_month">Viime kuukausi</string>
|
||||
<string name="past_year">Viime vuosi</string>
|
||||
<string name="all_time">Koko aikana</string>
|
||||
<string name="from">tullut</string>
|
||||
<string name="for_text">varten</string>
|
||||
<string name="filter_for">Suodata</string>
|
||||
<string name="everyone">Jokaiselle</string>
|
||||
<string name="tags_you_follow">Tunnisteet mitä sinä seuraat</string>
|
||||
<string name="customize">Muokkaa</string>
|
||||
<string name="not_yet_implemented">Valittu näkymä ei ole vielä käytettävissä.</string>
|
||||
<string name="customize_tags_hint">Näyttää siltä, että et ole vielä seurannut yhtään tunnistetta.</string>
|
||||
<string name="search_for_more_tags">Etsi lisää tunnisteita</string>
|
||||
<string name="no_followed_tags">Et ole vielä seurannut yhtään tunnistetta. Aloita lisäämällä kiinnostavia tunnisteita!</string>
|
||||
<string name="no_tag_results">Emme löytäneet uusia tunnisteita, joita et seuraa.</string>
|
||||
<string name="tag_already_added">\'%1$s\' tunniste on jo lisätty.</string>
|
||||
<string name="tag_limit_reached">Et voi lisätä enempää kuin 5 tunnistetta.</string>
|
||||
<string name="send_a_tip">Lähetä tippi</string>
|
||||
<string name="send_a_tip_to">Lähetä tippiä %1$s</string>
|
||||
<string name="support_this_content">Tue tätä sisältöä</string>
|
||||
<string name="support_info">Tämä nostaa tämän sisällön kokonaishintamäärää, mikä parantaa sen kykyä löytää edelleen aktiivisena. <a href=\"https://lbry.com/faq/tipping\">Learn more</a>.</string>
|
||||
<string name="channel_to_show_support_as">Kanava tuen näyttämiseksi nimellä</string>
|
||||
<string name="make_this_a_tip">Tee tästä Tippi</string>
|
||||
<string name="send_revocable_support">Lähetä peruutettava tuki</string>
|
||||
<string name="send_lbc_tip">Lähetä %1$s LBC tippi</string>
|
||||
<string name="send_tip_info_content">Tämä näyttää tipille %1$s, mikä parantaa sen kykyä löytää edelleen aktiivisena. <a href=\"https://lbry.com/faq/tipping\">Learn more</a>.</string>
|
||||
<string name="send_tip_info_channel">Tämä näyttää tipille %1$s, mikä parantaa sen kykyä löytää edelleen aktiivisena. <a href=\"https://lbry.com/faq/tipping\">Learn more</a>.</string>
|
||||
<string name="cancel">Peruuta</string>
|
||||
<string name="repost_title">Repost %1$s</string>
|
||||
<string name="repost_your_favorite">Lähetä suosikkisisältösi uudelleen, jotta useammat ihmiset löytävät ne!</string>
|
||||
<string name="channel_to_post_on">Kanava, johon lähettää viesti</string>
|
||||
<string name="show_advanced">Näytä edistyneet</string>
|
||||
<string name="hide_advanced">Piilota edistynyt</string>
|
||||
<string name="name">Nimi</string>
|
||||
<string name="min_deposit">0.001</string>
|
||||
<string name="content_successfully_reposted">Sisältö postitettiin onnistuneesti!</string>
|
||||
<string name="repost_name_invalid_characters">Jälleenlähetys nimi sisältää virheellisiä merkkejä.</string>
|
||||
<plurals name="you_sent_a_tip">
|
||||
<item quantity="one">Sinä lähetit %1$s LBC tippinä, Mahtavaa!</item>
|
||||
<item quantity="other">Sinä lähetit %1$s LBC tippinä, Mahtavaa!</item>
|
||||
</plurals>
|
||||
<plurals name="you_sent_a_support">
|
||||
<item quantity="one">Panosit %1$s hyvityksiä tueksi. Voit peruuttaa tuen milloin tahansa. </item>
|
||||
<item quantity="other">Panosit %1$s hyvityksiä tueksi. Voit peruuttaa tuen milloin tahansa. </item>
|
||||
</plurals>
|
||||
|
||||
<!-- Verification -->
|
||||
<string name="provide_email_address">Anna sähköpostiosoite.</string>
|
||||
<string name="email_placeholder">you@example.com</string>
|
||||
<string name="email_sent_to">Sähköposti on lähetetty osoitteeseen</string>
|
||||
<string name="please_click_link">Napsauta viestin linkkiä suorittaaksesi kirjautumisen loppuun.</string>
|
||||
<string name="resend">Uudelleen lähetä</string>
|
||||
<string name="continue_text">Jatka</string>
|
||||
<string name="provide_valid_email">Ole hyvä ja syötä toimiva sähköpostiosoite</string>
|
||||
<string name="please_follow_instructions">Noudata osoitteeseesi lähetetyn sähköpostin ohjeita jatkaaksesi.</string>
|
||||
<string name="sign_in_successful">Olet onnistuneesti kirjautunut sisään lbry.tv-sivustoon</string>
|
||||
<string name="retrieving_account_information">Haetaan tilitietoja ...</string>
|
||||
<string name="apply_wallet_data">Sovelletaan lompakotietoja ...</string>
|
||||
<string name="please_enter_your_password">Anna salasana, jolla turvasit lompakon.</string>
|
||||
<string name="please_enter_a_password">Anna salasana suojataksesi lompakon.</string>
|
||||
<string name="wallet_security_purposes">Huomaa: LBRY ei pysty uudelleen asettaa salasanaa lompakon suojausta varten.</string>
|
||||
<string name="password">Salasana</string>
|
||||
<string name="enable_sync">Ota synkronointi käyttöön</string>
|
||||
<string name="wallet_sync_op_failed">Lompakon synkronointia ei voitu suorittaa tällä hetkellä. Yritä uudelleen myöhemmin. Jos ongelma jatkuu, lähetä sähköpostia osoitteeseen hello@lbry.com</string>
|
||||
<string name="phone_number">Puhelinnumero</string>
|
||||
<string name="enter_phone_number">Ole hyvä ja anna puhelinnumerosi.</string>
|
||||
<string name="not_interested">Ei kiinnostunut</string>
|
||||
<string name="manual_reward_verification">Manuaalinen palkkion todentaminen</string>
|
||||
<string name="account_undergo_review">Tämä tili on tarkistettava ennen kuin voit osallistua palkitsemisohjelmaan. Tämä voi viedä useita minuutteja useisiin päiviin.</string>
|
||||
<string name="enjoy_free_content">Nauti ilmaisesta sisällöstä sillä välin!</string>
|
||||
<string name="verify_phone_number">Vahvista puhelinnumero</string>
|
||||
<string name="enter_phone_verify_code">Anna vahvistuskoodi, joka lähetettiin osoitteeseen %1$s</string>
|
||||
<string name="code_placeholder">0000</string>
|
||||
<string name="verify">Vahvista</string>
|
||||
<string name="please_enter_valid_phone">Ole hyvä ja näppäile voimassaoleva puhelinnumero.</string>
|
||||
<string name="please_enter_verification_code">Anna puhelinnumeroosi lähetetty vahvistuskoodi.</string>
|
||||
<string name="fetch_current_user_error">Käyttäjätiliä ei voitu noutaa tällä hetkellä. Yritä uudelleen myöhemmin.</string>
|
||||
<!-- Forms -->
|
||||
<string name="no_added_tags">Et ole vielä lisännyt tageja. Lisää tunnisteita etsinnän parantamiseksi.</string>
|
||||
<string name="form_no_tag_results">Emme löytäneet uusia tunnisteita, joita ei ole vielä lisätty.</string>
|
||||
|
||||
<!-- Channels -->
|
||||
<string name="no_channel_created">Et ole luonut kanavaa.
|
||||
Aloita nyt luomalla uusi kanava!</string>
|
||||
<string name="create_a_channel">Tee kanava</string>
|
||||
<string name="create_a_channel_item">Tee kanava...</string>
|
||||
<string name="edit_channel">Muokkaa kanavaa</string>
|
||||
<string name="delete_selection">Poistetaanko valinta?</string>
|
||||
<string name="delete_channel">Poistetaanko kanava?</string>
|
||||
<string name="confirm_delete_channel">Haluatko varmasti poistaa tämän kanavan?</string>
|
||||
<string name="channel_deleted">Kanava poistettiin onnistuneesti.</string>
|
||||
<string name="channel_failed_delete">Kanavaa ei voitu poistaa tällä hetkellä. Yritä uudelleen myöhemmin.</string>
|
||||
<string name="description">Kuvaus</string>
|
||||
<string name="yes">Kyllä</string>
|
||||
<string name="no">Ei</string>
|
||||
<string name="show_optional_fields">Näytä valinnaiset kentät</string>
|
||||
<string name="hide_optional_fields">Näytä valinnaiset kentät</string>
|
||||
<string name="save">Tallenna</string>
|
||||
<string name="channel_name">Kanavan nimi</string>
|
||||
<string name="title">Otsikko</string>
|
||||
<string name="at">\@</string>
|
||||
<string name="deposit">Tallettaa</string>
|
||||
<string name="deposit_remains_yours">Tämä LBC on sinun. Nimen varaaminen on talletus, ja sen voi peruuttaa milloin tahansa.</string>
|
||||
<string name="storage_permission_rationale_download">LBRY vaatii pääsyn sisällön lataamiseen laitteellesi.</string>
|
||||
<string name="storage_permission_rationale_images">LBRY vaatii pääsyn kuvien lataamiseen laitteen varastosta.</string>
|
||||
<string name="select_thumbnail">Valitse pikkukuva</string>
|
||||
<string name="select_cover">Valitse kannen kuva</string>
|
||||
<string name="undetermined_image_filepath">Tiedostopolkua ei voitu määrittää valitulle kuvalle. Valitse kuva eri sijainnista.</string>
|
||||
<string name="wait_for_upload">Odota, että nykyinen lataus on valmis.</string>
|
||||
<string name="image_upload_failed">Kuvan lähetyspyyntö epäonnistui. Yritä uudelleen.</string>
|
||||
<string name="uploading">Lataaminen ...</string>
|
||||
<string name="please_enter_channel_name">Anna kanavan nimi.</string>
|
||||
<string name="channel_name_invalid_characters">Kanavasi nimi sisältää virheellisiä merkkejä.</string>
|
||||
<string name="channel_name_already_created">Olet jo luonut kanavan samalla nimellä.</string>
|
||||
<string name="please_enter_valid_deposit">Anna oikea talletussumma.</string>
|
||||
<string name="deposit_more_than_balance">Talletus ei voi olla suurempi kuin saldosi.</string>
|
||||
<string name="channel_save_failed">Kanavan tallennuspyyntö epäonnistui. Yritä uudelleen.</string>
|
||||
<string name="channel_save_successful">Kanava tallennettiin onnistuneesti.</string>
|
||||
<string name="item_pending_blockchain">Vaatimus odottaa julkaisua lohkoketjussa. Voit käyttää vaatimusta tai muokata sitä hetkessä.</string>
|
||||
<string name="pending">vireillä</string>
|
||||
<string name="create">Luo</string>
|
||||
<string name="one_or_more_channels_failed_abandon">Yhtä tai useampaa sisältökohdetta ei voitu poistaa tällä hetkellä. Yritä uudelleen myöhemmin.</string>
|
||||
<plurals name="min_deposit_required">
|
||||
<item quantity="one">Vaaditaan vähintään %1$s luottojen talletus.</item>
|
||||
<item quantity="other">Vaaditaan vähintään %1$s luottojen talletus.</item>
|
||||
</plurals>
|
||||
<plurals name="confirm_delete_channels">
|
||||
<item quantity="one">Haluatko varmasti poistaa valitut kanava?</item>
|
||||
<item quantity="other">Haluatko varmasti poistaa valitut kanavat?</item>
|
||||
</plurals>
|
||||
<plurals name="channels_deleted">
|
||||
<item quantity="one">Kanava poistettiin onnistuneesti.</item>
|
||||
<item quantity="other">Kanava poistettiin onnistuneesti.</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Rewards -->
|
||||
<string name="lbry_credits_allow">LBRY-crediitit antavat sinun julkaista tai ostaa sisältöä.</string>
|
||||
<string name="free_credits_worth">Voit saada ilmaisia hyvityksiä, joiden arvo on %1$s, kun olet antanut sähköpostiosoitteen.</string>
|
||||
<string name="rewards_learn_more"><a href=\"https://lbry.com/faq/earn-credits\">Learn more</a>.</string>
|
||||
<string name="get_started">Pääse alkuun</string>
|
||||
<string name="reward_code_placeholder">abc123</string>
|
||||
<string name="claim">vaatimus</string>
|
||||
<string name="please_enter_claim_code">Anna mukautettu palkituskoodi vaatiaksesi.</string>
|
||||
<string name="unclaimed">Lunastamattomat</string>
|
||||
<string name="custom_reward_title">Kustomoitu koodi</string>
|
||||
<string name="up_to">aikeissa</string>
|
||||
<string name="custom_reward_description">Oletko supermalli tai rockstar, joka sai mukautetun palkinnon? Vaadi sitä täältä.</string>
|
||||
<plurals name="claim_reward_message">
|
||||
<item quantity="one">Olet vaatinut %1$s hyvitystä palkkiona.</item>
|
||||
<item quantity="other">Olet vaatinut %1$shyvitystä palkkiona.</item>
|
||||
</plurals>
|
||||
<plurals name="available_credits">
|
||||
<item quantity="one">%1$s käytettävissä olevia krediittejä</item>
|
||||
<item quantity="other">%1$s käytettävissä olevia krediittejä</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Reward drivers -->
|
||||
<string name="publishing_requires_credits">Julkaiseminen vaatii krediittejä.</string>
|
||||
<string name="channel_creation_requires_credits">Kanavien luominen vaatii krediittejä.</string>
|
||||
<string name="earn_rewards_for_inviting">Ansaitse palkkioita ystävien kutsumisesta.</string>
|
||||
<string name="earn_some_credits_to_access">Ansaitse joitakin hyvityksiä tämän sisällön käyttämiseksi.</string>
|
||||
<string name="tap_here_to_get_some">Napauta tätä saadaksesi ilmaiseksi.</string>
|
||||
<string name="free_credits_available">Ilmaisia hyvityksiä palkkioina.</string>
|
||||
<plurals name="wallet_signed_in_free_credits">
|
||||
<item quantity="one"> %1$s Ilmaisia hyvityksiä palkkioina.</item>
|
||||
<item quantity="other">%1$s Ilmaisia hyvityksiä palkkioina.</item>
|
||||
</plurals>
|
||||
<plurals name="wallet_get_free_credits">
|
||||
<item quantity="one">Hanki %1$s ilmaisia krediittejä tilin luomisen jälkeen.</item>
|
||||
<item quantity="other">Hanki %1$s ilmaisia krediittejä tilin luomisen jälkeen.</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Invites -->
|
||||
<string name="lbry_invite_program">LBRY-kutsuohjelma</string>
|
||||
<string name="earn_extra_credits_invites">Voit ansaita ylimääräisiä krediittejä jokaisesta henkilöstä, jonka kutsut käyttämään LBRY: tä.</string>
|
||||
<string name="invites_learn_more"><a href=\"https://lbry.com/faq/invites\">Learn more</a>.</string>
|
||||
<string name="invite_link">Kutsu linkki</string>
|
||||
<string name="share_this_link">Jaa tämä linkki ystävien (tai vihollisten) kanssa ja hanki krediittejä liittyessään lbry.tv.</string>
|
||||
<string name="your_invite_link">Kutsu-linkkisi</string>
|
||||
<string name="customize_invite_link">Mukauta kutsulinkki</string>
|
||||
<string name="invite_by_email">Kutsu sähköpostitse</string>
|
||||
<string name="invite_someone">Kutsu tuntemaasi henkilö sähköpostilla ja ansaitse krediittejä liittyessään lbry.tv.</string>
|
||||
<string name="invite_email_placeholder">imaginary@friend.com</string>
|
||||
<string name="invite">Kutsu</string>
|
||||
<string name="invite_history">Kutsu historia</string>
|
||||
<string name="earn_credits_for_inviting">Ansaitse pisteitä ystävän, vihollisen, frenemian tai eneystävän kutsumiseen. Jokainen tarvitsee sisältövapauden.</string>
|
||||
<string name="reward">Palkinto</string>
|
||||
<string name="claimed">noutaa</string>
|
||||
<string name="claimable">lunastettavana</string>
|
||||
<string name="unclaimable">Ei vaadittavissa</string>
|
||||
<string name="invite_link_copied">Kutsu linkki kopioitu.</string>
|
||||
<string name="invite_sent_to">Kutsu lähetetty %1$s</string>
|
||||
|
||||
<!-- Library -->
|
||||
<string name="downloads">Lataukset</string>
|
||||
<string name="purchases">ostos</string>
|
||||
<string name="history">Historia</string>
|
||||
<string name="library_no_downloads">Sinulla ei ole yhtään ladattua sisältöä tälle laitteelle.</string>
|
||||
<string name="library_no_history">Et ole katsellut mitään sisältöä tällä laitteella.</string>
|
||||
<string name="library_no_purchases">Et ole ostanut sisältöä tililtäsi.</string>
|
||||
<string name="hide">Piilota</string>
|
||||
<string name="stats">Tilastot</string>
|
||||
<string name="video">Video</string>
|
||||
<string name="audio">Ääni</string>
|
||||
<string name="images">Kuvat</string>
|
||||
<string name="mb">MB</string>
|
||||
<string name="kb">KB</string>
|
||||
<string name="gb">GB</string>
|
||||
<string name="zero_mb">0MB</string>
|
||||
<plurals name="confirm_delete_files">
|
||||
<item quantity="one">Haluatko varmasti poistaa valitut tiedostot laitteestasi?</item>
|
||||
<item quantity="other">Haluatko varmasti poistaa valitut tiedostot laitteestasi?</item>
|
||||
</plurals>
|
||||
<plurals name="files_deleted">
|
||||
<item quantity="one">Tiedostot poistettiin onnistuneesti.</item>
|
||||
<item quantity="other">Tiedostot poistettiin onnistuneesti.</item>
|
||||
</plurals>
|
||||
|
||||
<!-- About -->
|
||||
<string name="about_lbry">Tietoa LBRY</string>
|
||||
<string name="content_freedom">Sisällönvapaus</string>
|
||||
<string name="about_paragraph">LBRY on ilmainen, avoin ja yhteisömäinen digitaalinen markkinapaikka. Se on hajautettu vertaisverkkosisällön jakelualusta, jonka avulla tekijät voivat ladata ja jakaa sisältöä sekä ansaita LBRY-krediittejä työstään. Käyttäjät voivat löytää laajan valikoiman videoita, musiikkia, e-kirjoja ja muuta kiinnostavaa digitaalista sisältöä.</string>
|
||||
<string name="get_social">Hanki sosiaalinen</string>
|
||||
<string name="social_paragraph">Voit olla tekemisissä LBRY-tiimin ja yhteisön jäsenten kanssa Discordissa, Facebookissa, Instagramissa, Twitterissä tai Redditissä.</string>
|
||||
<string name="app_info">Sovellustiedot</string>
|
||||
<string name="loading">Latautuu...</string>
|
||||
<string name="about_link_what_is_lbry"><a href=\"https://lbry.com/faq/what-is-lbry\">What is LBRY?</a></string>
|
||||
<string name="about_link_android_basics"><a href=\"https://lbry.com/faq/android-basics\">Android Basics</a></string>
|
||||
<string name="about_link_faq"><a href=\"https://lbry.com/faq\">FAQ</a></string>
|
||||
<string name="about_link_discord"><a href=\"https://discordapp.com/invite/Z3bERWA\">Discord</a></string>
|
||||
<string name="about_link_facebook"><a href=\"https://www.facebook.com/LBRYio\">Facebook</a></string>
|
||||
<string name="about_link_instagram"><a href=\"https://www.instagram.com/LBRYio\">Instagram</a></string>
|
||||
<string name="about_link_reddit"><a href=\"https://reddit.com/r/lbry\">Reddit</a></string>
|
||||
<string name="about_link_telegram"><a href=\"https://t.me/lbryofficial\">Telegram</a></string>
|
||||
<string name="about_link_twitter"><a href=\"https://twitter.com/LBRYio\">Twitter</a></string>
|
||||
<string name="update_mailing_preferences">Päivitä postitusasetukset</string>
|
||||
<string name="app_version">Sovellus versio</string>
|
||||
<string name="lbry_sdk">LBRY SDK</string>
|
||||
<string name="platform">Alusta</string>
|
||||
<string name="installation_id">Asennustunnus</string>
|
||||
<string name="firebase_token">Firebase-tunnus</string>
|
||||
<string name="logs">Lokit</string>
|
||||
<string name="send_log">Lähetä loki</string>
|
||||
<string name="connected_email">Yhdistetty sähköposti</string>
|
||||
<string name="unknown">Tuntematon</string>
|
||||
<string name="cannot_find_lbrynet_log">Lbrynet.log-tiedostoa ei löytynyt.</string>
|
||||
<string name="cannot_share_lbrynet_log">Lbrynet.log-tiedostoa ei voi jakaa luparajoitusten takia.</string>
|
||||
|
||||
</resources>
|
||||
@@ -20,7 +20,6 @@
|
||||
<string name="settings">Settings</string>
|
||||
<string name="about">About</string>
|
||||
<string name="sign_in">Sign In</string>
|
||||
<string name="shuffle">Shuffle</string>
|
||||
<string name="startup_failed">App startup failed. Please check your data connection and try again. If this problem persists, please email hello@lbry.com</string>
|
||||
<string name="no_claim_search_content">No content to display at this time. Please refine your selection or check back later.</string>
|
||||
|
||||
@@ -243,11 +242,9 @@
|
||||
<string name="notifications">Notifications</string>
|
||||
<string name="subscriptions">Subscriptions</string>
|
||||
<string name="content_interests">Content Interests</string>
|
||||
<string name="mini_player_bottom_spacing">Mini-player bottom spacing</string>
|
||||
|
||||
<string name="keep_sdk_in_background">Keep the LBRY service running in the background for improved wallet and network performance</string>
|
||||
<string name="participate_in_data_network">Participate in the data network (requires app and background service restart)</string>
|
||||
<string name="send_buffering_events">Send buffering events to LBRY servers</string>
|
||||
|
||||
<!-- URL suggestions -->
|
||||
<string name="search_url_title">%1$s - Search</string>
|
||||
@@ -651,6 +648,4 @@
|
||||
|
||||
<string name="fa_asterisk" translatable="false"></string>
|
||||
<string name="fa_comment_alt" translatable="false"></string>
|
||||
<string name="fa_broadcast_tower" translatable="false"></string>
|
||||
<string name="fa_random" translatable="false"></string>
|
||||
</resources>
|
||||
@@ -23,12 +23,6 @@
|
||||
app:title="@string/show_url_suggestions"
|
||||
app:defaultValue="true"
|
||||
app:iconSpaceReserved="false" />
|
||||
<EditTextPreference
|
||||
android:inputType="numberDecimal|numberSigned"
|
||||
app:key="io.lbry.browser.preference.userinterface.MiniPlayerBottomMargin"
|
||||
app:title="@string/mini_player_bottom_spacing"
|
||||
app:defaultValue="4"
|
||||
app:iconSpaceReserved="false" />
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
@@ -70,11 +64,5 @@
|
||||
app:title="@string/participate_in_data_network"
|
||||
app:iconSpaceReserved="false"
|
||||
app:singleLineTitle="false" />
|
||||
<SwitchPreferenceCompat
|
||||
app:key="io.lbry.browser.preference.other.SendBufferingEvents"
|
||||
app:title="@string/send_buffering_events"
|
||||
app:defaultValue="true"
|
||||
app:iconSpaceReserved="false"
|
||||
app:singleLineTitle="false" />
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
||||
Reference in new issue
Block a user