Compare commits

..
35 Commits
Author SHA1 Message Date
Akinwale Ariwodola 288e35dd64 fix margins 2020-06-02 09:40:17 +01:00
Akinwale Ariwodola d4af28d1c5 display publisher title and thumbnail on file page 2020-06-02 09:34:59 +01:00
Akinwale Ariwodola 37cf85a5f6 bumpversion 0.15.10 --> 0.15.11 2020-06-02 09:05:04 +01:00
Akinwale Ariwodola c2cbd76f49 change comment confirmation title 2020-06-02 09:03:56 +01:00
Akinwale Ariwodola 3d874435c3 change BigDecimal initialisation for comment cost 2020-06-02 08:57:12 +01:00
Akinwale Ariwodola 9ed8864f23 More crash fixes. Change comment cost to 2 LBC. 2020-06-02 08:55:34 +01:00
Akinwale Ariwodola 61263dd59d bumpversion 0.15.9 --> 0.15.10 2020-06-01 08:56:38 +01:00
Akinwale Ariwodola 2707e135c6 comment creation event 2020-06-01 08:53:58 +01:00
Akinwale Ariwodola f9de0d7937 do not prompt again for content that is already purchased 2020-06-01 08:48:17 +01:00
Akinwale Ariwodola f03d58d648 tweak PIP player for certain aspect ratios 2020-06-01 08:33:07 +01:00
Akinwale Ariwodola f49a3570e9 fix file view display for cached reposts 2020-05-31 21:22:37 +01:00
Akinwale Ariwodola 1d97f9008d implement commenting with tips (#922)
* implement commenting with tips
* add comments to channel page
2020-05-31 21:06:03 +01:00
Akinwale Ariwodola e85ca9114c Merge pull request #921 from lbryio/crash-fixes
fixes for Play Store crash reports
2020-05-31 16:20:59 +01:00
Akinwale Ariwodola 85ed2da518 fixes for Play Store crash reports 2020-05-31 16:19:33 +01:00
Clayton Hickey dcc91f75cc Added ability to read comments on claims (#920)
* Added ability to read comments on claims
* Added simple handling for pagination in CommentListTask
2020-05-30 00:47:50 +01:00
Akinwale Ariwodola a40c160ac6 fix selection mode for reposts on Publishes page 2020-05-28 03:45:56 +01:00
Akinwale Ariwodola e6861c8436 set timestamp when building claim object from edited claim 2020-05-28 03:25:42 +01:00
Akinwale Ariwodola e6a5d97fb8 bumpversion 0.15.8 --> 0.15.9 2020-05-28 03:23:45 +01:00
Akinwale Ariwodola ddeb209d51 fix publish release time and crash bug on publish form 2020-05-28 03:22:20 +01:00
Akinwale Ariwodola 3283b3a607 fix channel links on history page 2020-05-27 23:22:08 +01:00
Akinwale Ariwodola 83a41ca6ce auto-rotate video to sensor landscape orientation 2020-05-27 23:16:25 +01:00
Akinwale Ariwodola 6c63eb7d66 better handling of permanent storage permission denial on file view page 2020-05-27 23:11:09 +01:00
Akinwale Ariwodola 7cf9de8c2a fix typo 2020-05-27 23:01:00 +01:00
Akinwale Ariwodola a859682954 fix permission request handling for permanently denied permissions 2020-05-27 22:56:07 +01:00
Akinwale Ariwodola c844c4f896 fix PIP mode display for Android version < 10 2020-05-27 11:20:51 +01:00
Akinwale Ariwodola a49cfe91da remove debug logs 2020-05-27 10:58:28 +01:00
Akinwale Ariwodola 2bacba2c87 properly close all activities when service is stopped 2020-05-27 10:52:25 +01:00
Akinwale Ariwodola e473981063 fix more crash bugs reported in Play Store 2020-05-27 08:25:10 +01:00
Akinwale Ariwodola 34ea4f216c add Dutch and Hindi strings 2020-05-27 02:06:41 +01:00
Akinwale Ariwodola 52e34b3027 don't hide play / pause button while buffering 2020-05-27 01:15:02 +01:00
Akinwale Ariwodola c6a6ea0445 reset click listener onStop 2020-05-27 01:11:18 +01:00
Akinwale Ariwodola 59ae6340e1 disable gif animation in thumbnails 2020-05-27 00:56:07 +01:00
Akinwale Ariwodola cbf2aa2311 bumpversion 0.15.6 --> 0.15.7 2020-05-26 16:26:15 +01:00
Akinwale Ariwodola 94b0c7bc01 Fix additional Play Store crash bugs. 2020-05-26 16:25:37 +01:00
Akinwale Ariwodola 4c50ffac19 Merge pull request #898 from lbryio/user-bugs
fix reported bugs from 0.15.3
2020-05-26 16:09:51 +01:00
50 changed files with 4202 additions and 516 deletions

No files matched your search

+6 -6
View File
@@ -16,8 +16,8 @@ android {
applicationId "io.lbry.browser"
minSdkVersion 21
targetSdkVersion 29
versionCode 1506
versionName "0.15.6"
versionCode 1511
versionName "0.15.11"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
@@ -54,7 +54,7 @@ task printVersionName {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.2.0-rc01'
implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.2.0-alpha06'
implementation "androidx.cardview:cardview:1.0.0"
@@ -64,7 +64,7 @@ dependencies {
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.webkit:webkit:1.3.0-alpha02'
implementation 'androidx.webkit:webkit:1.3.0-alpha03'
implementation 'androidx.camera:camera-core:1.0.0-beta03'
implementation 'androidx.camera:camera-camera2:1.0.0-beta03'
implementation 'androidx.camera:camera-lifecycle:1.0.0-beta03'
@@ -72,9 +72,9 @@ dependencies {
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation 'com.squareup.okhttp3:okhttp:4.4.1'
implementation 'com.google.firebase:firebase-analytics:17.4.1'
implementation 'com.google.firebase:firebase-analytics:17.4.2'
implementation 'com.google.android.gms:play-services-base:17.2.1'
implementation 'com.google.firebase:firebase-messaging:20.1.7'
implementation 'com.google.firebase:firebase-messaging:20.2.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.google.android.exoplayer:exoplayer-core:2.11.4'
@@ -10,7 +10,6 @@ import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.text.HtmlCompat;
@@ -20,10 +19,11 @@ 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;
public class FirstRunActivity extends AppCompatActivity {
private BroadcastReceiver sdkReadyReceiver;
private BroadcastReceiver sdkReceiver;
private BroadcastReceiver authReceiver;
@Override
@@ -45,19 +45,26 @@ public class FirstRunActivity extends AppCompatActivity {
registerAuthReceiver();
if (!Lbry.SDK_READY) {
findViewById(R.id.welcome_wait_container).setVisibility(View.VISIBLE);
IntentFilter filter = new IntentFilter();
filter.addAction(MainActivity.ACTION_SDK_READY);
sdkReadyReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
// authenticate after we receive the sdk ready event
authenticate();
}
};
registerReceiver(sdkReadyReceiver, filter);
} else {
authenticate();
}
IntentFilter filter = new IntentFilter();
filter.addAction(MainActivity.ACTION_SDK_READY);
filter.addAction(LbrynetService.ACTION_STOP_SERVICE);
sdkReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (MainActivity.ACTION_SDK_READY.equals(action)) {
// authenticate after we receive the sdk ready event
authenticate();
} else if (LbrynetService.ACTION_STOP_SERVICE.equals(action)) {
finish();
}
}
};
registerReceiver(sdkReceiver, filter);
}
public void onResume() {
@@ -122,7 +129,7 @@ public class FirstRunActivity extends AppCompatActivity {
@Override
protected void onDestroy() {
Helper.unregisterReceiver(authReceiver, this);
Helper.unregisterReceiver(sdkReadyReceiver, this);
Helper.unregisterReceiver(sdkReceiver, this);
super.onDestroy();
}
@@ -115,6 +115,7 @@ import io.lbry.browser.listener.DownloadActionListener;
import io.lbry.browser.listener.FetchChannelsListener;
import io.lbry.browser.listener.FetchClaimsListener;
import io.lbry.browser.listener.FilePickerListener;
import io.lbry.browser.listener.PIPModeListener;
import io.lbry.browser.listener.ScreenOrientationListener;
import io.lbry.browser.listener.SdkStatusListener;
import io.lbry.browser.listener.StoragePermissionListener;
@@ -255,6 +256,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
public static final String ACTION_USER_AUTHENTICATION_FAILED = "io.lbry.browser.Broadcast.UserAuthenticationFailed";
public static final String ACTION_NOW_PLAYING_CLAIM_UPDATED = "io.lbry.browser.Broadcast.NowPlayingClaimUpdated";
public static final String ACTION_NOW_PLAYING_CLAIM_CLEARED = "io.lbry.browser.Broadcast.NowPlayingClaimCleared";
public static final String ACTION_PUBLISH_SUCCESSFUL = "io.lbry.browser.Broadcast.PublishSuccessful";
public static final String ACTION_OPEN_ALL_CONTENT_TAG = "io.lbry.browser.Broadcast.OpenAllContentTag";
public static final String ACTION_WALLET_BALANCE_UPDATED = "io.lbry.browser.Broadcast.WalletBalanceUpdated";
public static final String ACTION_OPEN_CHANNEL_URL = "io.lbry.browser.Broadcast.OpenChannelUrl";
@@ -315,6 +317,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
private List<CameraPermissionListener> cameraPermissionListeners;
private List<DownloadActionListener> downloadActionListeners;
private List<FilePickerListener> filePickerListeners;
private List<PIPModeListener> pipModeListeners;
private List<ScreenOrientationListener> screenOrientationListeners;
private List<SdkStatusListener> sdkStatusListeners;
private List<StoragePermissionListener> storagePermissionListeners;
@@ -350,7 +353,11 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
@Override
protected void onCreate(Bundle savedInstanceState) {
// workaround to fix dark theme because https://issuetracker.google.com/issues/37124582
new WebView(this);
try {
new WebView(this);
} catch (Exception ex) {
// pass (don't fail initialization on some _weird_ device implementations)
}
AppCompatDelegate.setDefaultNightMode(isDarkMode() ? AppCompatDelegate.MODE_NIGHT_YES : AppCompatDelegate.MODE_NIGHT_NO);
initKeyStore();
@@ -362,17 +369,20 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
initSpecialRouteMap();
LbryAnalytics.init(this);
FirebaseInstanceId.getInstance().getInstanceId().addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() {
@Override
public void onComplete(Task<InstanceIdResult> task) {
if (!task.isSuccessful()) {
return;
try {
FirebaseInstanceId.getInstance().getInstanceId().addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() {
@Override
public void onComplete(Task<InstanceIdResult> task) {
if (!task.isSuccessful()) {
return;
}
// Get new Instance ID token
firebaseMessagingToken = task.getResult().getToken();
}
// Get new Instance ID token
firebaseMessagingToken = task.getResult().getToken();
}
});
});
} catch (IllegalStateException ex) {
// pass
}
super.onCreate(savedInstanceState);
dbHelper = new DatabaseHelper(this);
@@ -392,7 +402,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
return ViewCompat.onApplyWindowInsets(v,
insets.replaceSystemWindowInsets(
insets.getSystemWindowInsetLeft(),
0,
0,
0,
insets.getSystemWindowInsetBottom()));
@@ -425,6 +435,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
fetchChannelsListeners = new ArrayList<>();
fetchClaimsListeners = new ArrayList<>();
filePickerListeners = new ArrayList<>();
pipModeListeners = new ArrayList<>();
screenOrientationListeners = new ArrayList<>();
sdkStatusListeners = new ArrayList<>();
storagePermissionListeners = new ArrayList<>();
@@ -597,6 +608,16 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
filePickerListeners.remove(listener);
}
public void addPIPModeListener(PIPModeListener listener) {
if (!pipModeListeners.contains(listener)) {
pipModeListeners.add(listener);
}
}
public void removePIPModeListener(PIPModeListener listener) {
pipModeListeners.remove(listener);
}
public void addCameraPermissionListener(CameraPermissionListener listener) {
if (!cameraPermissionListeners.contains(listener)) {
cameraPermissionListeners.add(listener);
@@ -725,8 +746,22 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
public void openPublishesOnSuccessfulPublish() {
// close publish form
getSupportFragmentManager().popBackStack();
openFragment(PublishesFragment.class, true, NavMenuItem.ID_ITEM_PUBLISHES);
runOnUiThread(new Runnable() {
@Override
public void run() {
try {
getSupportFragmentManager().popBackStack();
openFragment(PublishesFragment.class, true, NavMenuItem.ID_ITEM_PUBLISHES);
} catch (IllegalStateException ex) {
// pass
try {
onBackPressed();
} catch (IllegalStateException iex) {
// if this fails on some devices. what's the solution?
}
}
}
});
}
public void openPublishForm(Claim claim) {
@@ -807,10 +842,15 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
findViewById(R.id.app_bar_main_container).setFitsSystemWindows(true);
hideActionBar();
for (PIPModeListener listener : pipModeListeners) {
listener.onEnterPIPMode();
}
View pipPlayerContainer = findViewById(R.id.pip_player_container);
PlayerView pipPlayer = findViewById(R.id.pip_player);
pipPlayer.setVisibility(View.VISIBLE);
pipPlayer.setPlayer(appPlayer);
pipPlayer.setUseController(false);
pipPlayerContainer.setVisibility(View.VISIBLE);
playerReassigned = true;
}
private void renderFullMode() {
@@ -837,10 +877,14 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
if (!Lbry.SDK_READY && !inFullscreenMode) {
findViewById(R.id.global_sdk_initializing_status).setVisibility(View.VISIBLE);
}
for (PIPModeListener listener : pipModeListeners) {
listener.onExitPIPMode();
}
View pipPlayerContainer = findViewById(R.id.pip_player_container);
PlayerView pipPlayer = findViewById(R.id.pip_player);
pipPlayer.setVisibility(View.INVISIBLE);
pipPlayer.setPlayer(null);
pipPlayerContainer.setVisibility(View.INVISIBLE);
playerReassigned = true;
}
@@ -920,7 +964,6 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
applyNavbarSigninPadding();
checkFirstRun();
checkNowPlaying();
fetchRewards();
// check (and start) the LBRY SDK service
serviceRunning = isServiceRunning(this, LbrynetService.class);
@@ -996,7 +1039,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
public boolean canShowUrlSuggestions() {
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
return sp.getBoolean(MainActivity.PREFERENCE_KEY_SHOW_URL_SUGGESTIONS, false);
return sp.getBoolean(MainActivity.PREFERENCE_KEY_SHOW_URL_SUGGESTIONS, true);
}
public boolean keepSdkBackground() {
@@ -1368,6 +1411,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
}
findViewById(R.id.global_sdk_initializing_status).setVisibility(View.GONE);
findViewById(R.id.app_bar_main_container).setFitsSystemWindows(false);
lockDrawer();
View decorView = getWindow().getDecorView();
decorView.setSystemUiVisibility(
@@ -1404,6 +1448,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
if (actionBar != null) {
actionBar.show();
}
unlockDrawer();
inFullscreenMode = false;
}
@@ -1421,13 +1466,18 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
boolean firstRunCompleted = sp.getBoolean(PREFERENCE_KEY_INTERNAL_FIRST_RUN_COMPLETED, false);
if (!firstRunCompleted) {
findViewById(R.id.drawer_layout).setVisibility(View.INVISIBLE);
startActivity(new Intent(this, FirstRunActivity.class));
} else if (!appStarted) {
return;
}
if (!appStarted) {
// first run completed, startup
startup();
return;
}
fetchRewards();
if (getSupportFragmentManager().getBackStackEntryCount() == 0) {
openFragment(FollowingFragment.class, false, NavMenuItem.ID_ITEM_FOLLOWING);
}
@@ -1491,7 +1541,11 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
initFloatingWalletBalance();
checkAndClaimNewAndroidReward();
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
boolean firstRunCompleted = sp.getBoolean(PREFERENCE_KEY_INTERNAL_FIRST_RUN_COMPLETED, false);
if (firstRunCompleted) {
checkAndClaimNewAndroidReward();
}
}
public void checkAndClaimNewAndroidReward() {
@@ -1842,6 +1896,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
intentFilter.addAction(ACTION_OPEN_CHANNEL_URL);
intentFilter.addAction(ACTION_OPEN_WALLET_PAGE);
intentFilter.addAction(ACTION_OPEN_REWARDS_PAGE);
intentFilter.addAction(ACTION_PUBLISH_SUCCESSFUL);
intentFilter.addAction(ACTION_SAVE_SHARED_USER_STATE);
requestsReceiver = new BroadcastReceiver() {
@Override
@@ -1861,6 +1916,8 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
pendingOpenRewardsPage = true;
} else if (ACTION_SAVE_SHARED_USER_STATE.equalsIgnoreCase(action)) {
saveSharedUserState();
} else if (ACTION_PUBLISH_SUCCESSFUL.equalsIgnoreCase(action)) {
openPublishesOnSuccessfulPublish();
}
}
@@ -2192,6 +2249,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
hideActionBar();
lockDrawer();
findViewById(R.id.splash_view).setVisibility(View.VISIBLE);
findViewById(R.id.drawer_layout).setVisibility(View.VISIBLE);
LbryAnalytics.setCurrentScreen(MainActivity.this, "Splash", "Splash");
initStartupStages();
}
@@ -2451,8 +2509,14 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
!startingSignInFlowActivity) {
enteringPIPMode = true;
PictureInPictureParams params = new PictureInPictureParams.Builder().build();
enterPictureInPictureMode(params);
return true;
try {
enterPictureInPictureMode(params);
return true;
} catch (IllegalStateException ex) {
// pass
enteringPIPMode = false;
}
}
return false;
@@ -2882,16 +2946,25 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
public static void requestPermission(String permission, int requestCode, String rationale, Context context, boolean forceRequest) {
if (ContextCompat.checkSelfPermission(context, permission) != PackageManager.PERMISSION_GRANTED) {
if (!forceRequest && ActivityCompat.shouldShowRequestPermissionRationale((Activity) context, permission)) {
Toast.makeText(context, rationale, Toast.LENGTH_LONG).show();
} else {
if (ActivityCompat.shouldShowRequestPermissionRationale((Activity) context, permission)) {
if (context instanceof MainActivity) {
((MainActivity) context).showMessage(rationale);
}
} else if (forceRequest) {
startingPermissionRequest = true;
ActivityCompat.requestPermissions((Activity) context, new String[] { permission }, requestCode);
} else {
if (context instanceof MainActivity) {
((MainActivity) context).showError(rationale);
}
}
}
}
public static boolean hasPermission(String permission, Context context) {
if (context == null) {
return false;
}
return (ContextCompat.checkSelfPermission(context, permission) == PackageManager.PERMISSION_GRANTED);
}
@@ -1,6 +1,9 @@
package io.lbry.browser;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.Bundle;
@@ -18,8 +21,10 @@ import io.lbry.browser.listener.SignInListener;
import io.lbry.browser.listener.WalletSyncListener;
import io.lbry.browser.model.lbryinc.User;
import io.lbry.browser.tasks.lbryinc.FetchCurrentUserTask;
import io.lbry.browser.utils.Helper;
import io.lbry.browser.utils.LbryAnalytics;
import io.lbry.browser.utils.Lbryio;
import io.lbry.lbrysdk.LbrynetService;
public class VerificationActivity extends FragmentActivity implements SignInListener, WalletSyncListener {
@@ -27,6 +32,7 @@ public class VerificationActivity extends FragmentActivity implements SignInList
public static final int VERIFICATION_FLOW_REWARDS = 2;
public static final int VERIFICATION_FLOW_WALLET = 3;
private BroadcastReceiver sdkReceiver;
private String email;
private boolean signedIn;
private int flow;
@@ -54,6 +60,19 @@ public class VerificationActivity extends FragmentActivity implements SignInList
return;
}
IntentFilter filter = new IntentFilter();
filter.addAction(LbrynetService.ACTION_STOP_SERVICE);
sdkReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (LbrynetService.ACTION_STOP_SERVICE.equals(action)) {
finish();
}
}
};
registerReceiver(sdkReceiver, filter);
setContentView(R.layout.activity_verification);
ViewPager2 viewPager = findViewById(R.id.verification_pager);
viewPager.setUserInputEnabled(false);
@@ -158,7 +177,7 @@ public class VerificationActivity extends FragmentActivity implements SignInList
@Override
public void onError(Exception error) {
showFetchUserError(error.getMessage());
showFetchUserError(error != null ? error.getMessage() : getString(R.string.fetch_current_user_error));
hideLoading();
}
});
@@ -194,7 +213,7 @@ public class VerificationActivity extends FragmentActivity implements SignInList
}
@Override
public void onError(Exception error) {
showFetchUserError(error.getMessage());
showFetchUserError(error != null ? error.getMessage() : getString(R.string.fetch_current_user_error));
hideLoading();
}
});
@@ -231,7 +250,7 @@ public class VerificationActivity extends FragmentActivity implements SignInList
@Override
public void onError(Exception error) {
showFetchUserError(error.getMessage());
showFetchUserError(error != null ? error.getMessage() : getString(R.string.fetch_current_user_error));
hideLoading();
}
});
@@ -269,4 +288,10 @@ public class VerificationActivity extends FragmentActivity implements SignInList
public void onWalletSyncFailed(Exception error) {
findViewById(R.id.verification_close_button).setVisibility(View.VISIBLE);
}
@Override
public void onDestroy() {
Helper.unregisterReceiver(sdkReceiver, this);
super.onDestroy();
}
}
@@ -8,7 +8,6 @@ import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import androidx.recyclerview.widget.RecyclerView;
@@ -298,17 +297,13 @@ public class ClaimListAdapter extends RecyclerView.Adapter<ClaimListAdapter.View
return new ClaimListAdapter.ViewHolder(v);
}
public int getScaledValue(int value) {
return (int) (value * scale + 0.5f);
}
@Override
public void onBindViewHolder(ClaimListAdapter.ViewHolder vh, int position) {
int type = getItemViewType(position);
int paddingTop = position == 0 ? 16 : 8;
int paddingBottom = position == getItemCount() - 1 ? 16 : 8;
int paddingTopScaled = getScaledValue(paddingTop);
int paddingBottomScaled = getScaledValue(paddingBottom);
int paddingTopScaled = Helper.getScaledValue(paddingTop, scale);
int paddingBottomScaled = Helper.getScaledValue(paddingBottom, scale);
vh.itemView.setPadding(vh.itemView.getPaddingLeft(), paddingTopScaled, vh.itemView.getPaddingRight(), paddingBottomScaled);
Claim original = items.get(position);
@@ -328,7 +323,7 @@ public class ClaimListAdapter extends RecyclerView.Adapter<ClaimListAdapter.View
}
boolean isPending = item.getConfirmations() == 0;
boolean isSelected = isClaimSelected(item);
boolean isSelected = isClaimSelected(original);
vh.itemView.setSelected(isSelected);
vh.selectedOverlayView.setVisibility(isSelected ? View.VISIBLE : View.GONE);
vh.itemView.setOnClickListener(new View.OnClickListener() {
@@ -419,6 +414,7 @@ public class ClaimListAdapter extends RecyclerView.Adapter<ClaimListAdapter.View
long duration = item.getDuration();
if (!Helper.isNullOrEmpty(thumbnailUrl)) {
Glide.with(context.getApplicationContext()).
asBitmap().
load(thumbnailUrl).
centerCrop().
placeholder(R.drawable.bg_thumbnail_placeholder).
@@ -0,0 +1,218 @@
package io.lbry.browser.adapter;
import android.content.Context;
import android.text.format.DateUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import io.lbry.browser.R;
import io.lbry.browser.model.Claim;
import io.lbry.browser.model.ClaimCacheKey;
import io.lbry.browser.model.Comment;
import io.lbry.browser.utils.Helper;
import io.lbry.browser.utils.Lbry;
import io.lbry.browser.utils.LbryUri;
import lombok.Setter;
public class CommentListAdapter extends RecyclerView.Adapter<CommentListAdapter.ViewHolder> {
private List<Comment> items;
private Context context;
private boolean nested;
private float scale;
@Setter
private ClaimListAdapter.ClaimListItemListener listener;
@Setter
private ReplyClickListener replyListener;
public CommentListAdapter(List<Comment> items, Context context) {
this(items, context, false);
}
public CommentListAdapter(List<Comment> items, Context context, boolean nested) {
this.items = new ArrayList<>(items);
this.context = context;
this.nested = nested;
if (context != null) {
scale = context.getResources().getDisplayMetrics().density;
}
for (Comment item : this.items) {
ClaimCacheKey key = new ClaimCacheKey();
key.setClaimId(item.getChannelId());
if (Lbry.claimCache.containsKey(key)) {
item.setPoster(Lbry.claimCache.get(key));
}
}
}
public void clearItems() {
items.clear();
notifyDataSetChanged();
}
@Override
public int getItemCount() {
return items != null ? items.size() : 0;
}
public List<String> getClaimUrlsToResolve() {
List<String> urls = new ArrayList<>();
for (int i = 0; i < items.size(); i++) {
Comment item = items.get(i);
if (item.getPoster() == null) {
LbryUri url = LbryUri.tryParse(String.format("%s#%s", item.getChannelName(), item.getChannelId()));
if (url != null && !urls.contains(url.toString())) {
urls.add(url.toString());
}
}
if (item.getReplies().size() > 0) {
for (int j = 0; j < item.getReplies().size(); j++) {
Comment reply = item.getReplies().get(j);
if (reply.getPoster() == null) {
LbryUri url = LbryUri.tryParse(String.format("%s#%s", reply.getChannelName(), reply.getChannelId()));
if (url != null && !urls.contains(url.toString())) {
urls.add(url.toString());
}
}
}
}
}
return urls;
}
public static class ViewHolder extends RecyclerView.ViewHolder {
protected TextView channelName;
protected TextView commentText;
protected ImageView thumbnailView;
protected View noThumbnailView;
protected TextView alphaView;
protected TextView commentTimeView;
protected View replyLink;
protected RecyclerView repliesList;
public ViewHolder (View v) {
super(v);
channelName = v.findViewById(R.id.comment_channel_name);
commentTimeView = v.findViewById(R.id.comment_time);
commentText = v.findViewById(R.id.comment_text);
replyLink = v.findViewById(R.id.comment_reply_link);
thumbnailView = v.findViewById(R.id.comment_thumbnail);
noThumbnailView = v.findViewById(R.id.comment_no_thumbnail);
alphaView = v.findViewById(R.id.comment_thumbnail_alpha);
repliesList = v.findViewById(R.id.comment_replies);
}
}
public void insert(int index, Comment comment) {
if (!items.contains(comment)) {
items.add(index, comment);
notifyDataSetChanged();
}
}
public void addReply(Comment comment) {
for (int i = 0; i < items.size(); i++) {
Comment parent = items.get(i);
if (parent.getId().equalsIgnoreCase(comment.getParentId())) {
parent.addReply(comment);
notifyDataSetChanged();
break;
}
}
}
public void updatePosterForComment(String channelId, Claim channel) {
for (int i = 0 ; i < items.size(); i++) {
Comment item = items.get(i);
List<Comment> replies = item.getReplies();
if (replies != null && replies.size() > 0) {
for (int j = 0; j < replies.size(); j++) {
Comment reply = item.getReplies().get(j);
if (channelId.equalsIgnoreCase(reply.getChannelId())) {
reply.setPoster(channel);
break;
}
}
}
if (channelId.equalsIgnoreCase(item.getChannelId())) {
item.setPoster(channel);
break;
}
}
}
@Override
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View v = LayoutInflater.from(context).inflate(R.layout.list_item_comment, parent, false);
return new CommentListAdapter.ViewHolder(v);
}
@Override
public void onBindViewHolder(ViewHolder holder, int position) {
Comment comment = items.get(position);
holder.itemView.setPadding(
nested ? Helper.getScaledValue(56, scale) : holder.itemView.getPaddingLeft(),
holder.itemView.getPaddingTop(),
nested ? 0 : holder.itemView.getPaddingRight(),
holder.itemView.getPaddingBottom());
holder.channelName.setText(comment.getChannelName());
holder.commentTimeView.setText(DateUtils.getRelativeTimeSpanString(
(comment.getTimestamp() * 1000), System.currentTimeMillis(), 0, DateUtils.FORMAT_ABBREV_RELATIVE));
holder.commentText.setText(comment.getText());
holder.replyLink.setVisibility(!nested ? View.VISIBLE : View.GONE);
boolean hasThumbnail = comment.getPoster() != null && !Helper.isNullOrEmpty(comment.getPoster().getThumbnailUrl());
holder.thumbnailView.setVisibility(hasThumbnail ? View.VISIBLE : View.INVISIBLE);
holder.noThumbnailView.setVisibility(!hasThumbnail ? View.VISIBLE : View.INVISIBLE);
int bgColor = Helper.generateRandomColorForValue(comment.getChannelId());
Helper.setIconViewBackgroundColor(holder.noThumbnailView, bgColor, false, context);
if (hasThumbnail) {
Glide.with(context.getApplicationContext()).asBitmap().load(comment.getPoster().getThumbnailUrl()).
apply(RequestOptions.circleCropTransform()).into(holder.thumbnailView);
}
holder.alphaView.setText(comment.getChannelName() != null ? comment.getChannelName().substring(1, 2).toUpperCase() : null);
List<Comment> replies = comment.getReplies();
boolean hasReplies = replies != null && replies.size() > 0;
if (hasReplies) {
holder.repliesList.setLayoutManager(new LinearLayoutManager(context));
holder.repliesList.setAdapter(new CommentListAdapter(replies, context, true));
} else {
holder.repliesList.setAdapter(null);
}
holder.channelName.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (listener != null && comment.getPoster() != null) {
listener.onClaimClicked(comment.getPoster());
}
}
});
holder.replyLink.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (replyListener != null) {
replyListener.onReplyClicked(comment);
}
}
});
}
public interface ReplyClickListener {
void onReplyClicked(Comment comment);
}
}
@@ -95,6 +95,7 @@ public class EditorsChoiceItemAdapter extends RecyclerView.Adapter<EditorsChoice
vh.descriptionView.setText(item.getDescription());
if (!Helper.isNullOrEmpty(item.getThumbnailUrl())) {
Glide.with(context.getApplicationContext()).
asBitmap().
load(item.getThumbnailUrl()).
centerCrop().
placeholder(R.drawable.bg_thumbnail_placeholder).
@@ -44,7 +44,7 @@ public class InlineChannelSpinnerAdapter extends ArrayAdapter<Claim> {
public int getItemPosition(Claim item) {
for (int i = 0; i < channels.size(); i++) {
Claim channel = channels.get(i);
if (item.getClaimId().equalsIgnoreCase(channel.getClaimId())) {
if (item.getClaimId() != null && item.getClaimId().equalsIgnoreCase(channel.getClaimId())) {
return i;
}
}
@@ -192,14 +192,16 @@ public class RepostClaimDialogFragment extends BottomSheetDialogFragment impleme
private void loadChannels(List<Claim> channels) {
if (channelSpinnerAdapter == null) {
Context context = getContext();
channelSpinnerAdapter = new InlineChannelSpinnerAdapter(context, R.layout.spinner_item_channel, channels);
channelSpinnerAdapter.notifyDataSetChanged();
if (context != null) {
channelSpinnerAdapter = new InlineChannelSpinnerAdapter(context, R.layout.spinner_item_channel, channels);
channelSpinnerAdapter.notifyDataSetChanged();
}
} else {
channelSpinnerAdapter.clear();
channelSpinnerAdapter.addAll(channels);
channelSpinnerAdapter.notifyDataSetChanged();
}
if (channelSpinner != null) {
if (channelSpinner != null && channelSpinnerAdapter != null) {
channelSpinner.setAdapter(channelSpinnerAdapter);
}
}
@@ -231,6 +233,11 @@ public class RepostClaimDialogFragment extends BottomSheetDialogFragment impleme
}
Claim channel = (Claim) channelSpinner.getSelectedItem();
if (channel == null) {
showError(getString(R.string.please_select_repost_channel));
return;
}
StreamRepostTask task = new StreamRepostTask(name, bid, claim.getClaimId(), channel.getClaimId(), repostProgress, new ClaimResultHandler() {
@Override
public void beforeStart() {
@@ -256,10 +263,13 @@ public class RepostClaimDialogFragment extends BottomSheetDialogFragment impleme
}
private void showError(String message) {
Snackbar.make(getView(), message, Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).
setTextColor(Color.WHITE).
show();
View view = getView();
if (view != null && !Helper.isNullOrEmpty(message)) {
Snackbar.make(view, message, Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).
setTextColor(Color.WHITE).
show();
}
}
private void startLoading() {
@@ -91,11 +91,13 @@ public class SendTipDialogFragment extends BottomSheetDialogFragment implements
TextView infoText = view.findViewById(R.id.tip_info);
infoText.setMovementMethod(LinkMovementMethod.getInstance());
infoText.setText(HtmlCompat.fromHtml(
Claim.TYPE_CHANNEL.equalsIgnoreCase(claim.getValueType()) ?
getString(R.string.send_tip_info_channel, claim.getTitleOrName()) :
getString(R.string.send_tip_info_content, claim.getTitleOrName()),
HtmlCompat.FROM_HTML_MODE_LEGACY));
if (claim != null) {
infoText.setText(HtmlCompat.fromHtml(
Claim.TYPE_CHANNEL.equalsIgnoreCase(claim.getValueType()) ?
getString(R.string.send_tip_info_channel, claim.getTitleOrName()) :
getString(R.string.send_tip_info_content, claim.getTitleOrName()),
HtmlCompat.FROM_HTML_MODE_LEGACY));
}
sendButton.setOnClickListener(new View.OnClickListener() {
@Override
@@ -0,0 +1,6 @@
package io.lbry.browser.listener;
public interface PIPModeListener {
void onEnterPIPMode();
void onExitPIPMode();
}
@@ -289,6 +289,9 @@ public class Claim {
Claim signingChannel = new Claim();
signingChannel.setClaimId(viewHistory.getPublisherClaimId());
signingChannel.setName(viewHistory.getPublisherName());
LbryUri channelUrl = LbryUri.tryParse(String.format("%s#%s", signingChannel.getName(), signingChannel.getClaimId()));
signingChannel.setPermanentUrl(channelUrl != null ? channelUrl.toString() : null);
if (!Helper.isNullOrEmpty(viewHistory.getPublisherTitle())) {
GenericMetadata channelValue = new GenericMetadata();
channelValue.setTitle(viewHistory.getPublisherTitle());
@@ -0,0 +1,69 @@
package io.lbry.browser.model;
import org.json.JSONException;
import org.json.JSONObject;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
import io.lbry.browser.utils.Helper;
import lombok.Data;
@Data
public class Comment {
public static final double LBC_COST = 2;
public static final int MAX_LENGTH = 2000;
private Claim poster;
private String claimId;
private List<Comment> replies;
private long timestamp;
private String channelId;
private String channelName, text, id, parentId;
public Comment(String channelId, String channelName, String text, String id, String parentId) {
this.channelId = channelId;
this.channelName = channelName;
this.text = text;
this.id = id;
this.parentId = parentId;
this.replies = new ArrayList<>();
}
public Comment() {
replies = new ArrayList<>();
}
public void addReply(Comment reply) {
if (replies == null) {
replies = new ArrayList<>();
}
if (!replies.contains(reply)) {
replies.add(reply);
}
}
public static Comment fromJSONObject(JSONObject jsonObject) {
try {
String parentId = null;
if (jsonObject.has("parent_id")) {
parentId = jsonObject.getString("parent_id");
}
Comment comment = new Comment(
Helper.getJSONString("channel_id", null, jsonObject),
jsonObject.getString("channel_name"),
jsonObject.getString("comment"),
jsonObject.getString("comment_id"),
parentId
);
comment.setClaimId(Helper.getJSONString("claim_id", null, jsonObject));
comment.setTimestamp(Helper.getJSONLong("timestamp", 0, jsonObject));
return comment;
} catch (JSONException ex) {
return null;
}
}
}
@@ -0,0 +1,103 @@
package io.lbry.browser.tasks;
import android.os.AsyncTask;
import android.view.View;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import io.lbry.browser.exceptions.ApiCallException;
import io.lbry.browser.model.Comment;
import io.lbry.browser.utils.Helper;
import io.lbry.browser.utils.Lbry;
import io.lbry.browser.utils.Lbryio;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
public class CommentCreateWithTipTask extends AsyncTask<Void, Void, Comment> {
private static final String STATUS_ENDPOINT = "https://comments.lbry.com";
private Comment comment;
private BigDecimal amount;
private View progressView;
private CommentCreateWithTipHandler handler;
private Exception error;
public CommentCreateWithTipTask(Comment comment, BigDecimal amount, View progressView, CommentCreateWithTipHandler handler) {
this.comment = comment;
this.amount = amount;
this.progressView = progressView;
this.handler = handler;
}
protected void onPreExecute() {
Helper.setViewVisibility(progressView, View.VISIBLE);
}
public Comment doInBackground(Void... params) {
Comment createdComment = null;
try {
// check comments status endpoint
Request request = new Request.Builder().url(STATUS_ENDPOINT).build();
OkHttpClient client = new OkHttpClient.Builder().
writeTimeout(30, TimeUnit.SECONDS).
readTimeout(30, TimeUnit.SECONDS).
build();
Response response = client.newCall(request).execute();
JSONObject status = new JSONObject(response.body().string());
String statusText = Helper.getJSONString("text", null, status);
boolean isRunning = Helper.getJSONBoolean("is_running", false, status);
if (!"ok".equalsIgnoreCase(statusText) || !isRunning) {
throw new ApiCallException("The comment server is not available at this time. Please try again later.");
}
Map<String, Object> options = new HashMap<>();
options.put("blocking", true);
options.put("claim_id", comment.getClaimId());
options.put("amount", new DecimalFormat(Helper.SDK_AMOUNT_FORMAT, new DecimalFormatSymbols(Locale.US)).format(amount.doubleValue()));
options.put("tip", true);
Lbry.genericApiCall(Lbry.METHOD_SUPPORT_CREATE, options);
options = new HashMap<>();
options.put("comment", comment.getText());
options.put("claim_id", comment.getClaimId());
options.put("channel_id", comment.getChannelId());
options.put("channel_name", comment.getChannelName());
if (!Helper.isNullOrEmpty(comment.getParentId())) {
options.put("parent_id", comment.getParentId());
}
JSONObject jsonObject = (JSONObject) Lbry.genericApiCall(Lbry.METHOD_COMMENT_CREATE, options);
createdComment = Comment.fromJSONObject(jsonObject);
} catch (ApiCallException | ClassCastException | IOException | JSONException ex) {
error = ex;
}
return createdComment;
}
protected void onPostExecute(Comment createdComment) {
Helper.setViewVisibility(progressView, View.GONE);
if (handler != null) {
if (createdComment != null) {
handler.onSuccess(createdComment);
} else {
handler.onError(error);
}
}
}
public interface CommentCreateWithTipHandler {
void onSuccess(Comment createdComment);
void onError(Exception error);
}
}
@@ -0,0 +1,10 @@
package io.lbry.browser.tasks;
import java.util.List;
import io.lbry.browser.model.Comment;
public interface CommentListHandler {
void onSuccess(List<Comment> comments, boolean hasReachedEnd);
void onError(Exception error);
}
@@ -0,0 +1,93 @@
package io.lbry.browser.tasks;
import android.os.AsyncTask;
import android.view.View;
import android.widget.ProgressBar;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import io.lbry.browser.model.Comment;
import io.lbry.browser.utils.Helper;
import io.lbry.browser.utils.Lbry;
public class CommentListTask extends AsyncTask<Void, Void, List<Comment>> {
private final int page;
private final int pageSize;
private final String claim;
private ProgressBar progressBar;
private CommentListHandler handler;
private Exception error;
public CommentListTask(int page, int pageSize, String claim, ProgressBar progressBar, CommentListHandler handler) {
this.page = page;
this.pageSize = pageSize;
this.claim = claim;
this.progressBar = progressBar;
this.handler = handler;
}
protected void onPreExecute() {
Helper.setViewVisibility(progressBar, View.VISIBLE);
}
protected List<Comment> doInBackground(Void... voids) {
List<Comment> comments = null;
try {
Map<String, Object> options = new HashMap<>();
options.put("claim_id", claim);
options.put("page", page);
options.put("page_size", pageSize);
options.put("include_replies", false);
options.put("is_channel_signature_valid", true);
options.put("visible", true);
options.put("hidden", false);
JSONObject result = (JSONObject) Lbry.genericApiCall(Lbry.METHOD_COMMENT_LIST, options);
JSONArray items = result.getJSONArray("items");
List<Comment> children = new ArrayList<>();
comments = new ArrayList<>();
for (int i = 0; i < items.length(); i++) {
Comment comment = Comment.fromJSONObject(items.getJSONObject(i));
if (comment != null) {
if (!Helper.isNullOrEmpty(comment.getParentId())) {
children.add(comment);
} else {
comments.add(comment);
}
}
}
for (Comment child : children) {
for (Comment parent : comments) {
if (parent.getId().equalsIgnoreCase(child.getParentId())) {
parent.addReply(child);
break;
}
}
}
} catch (Exception ex) {
error = ex;
}
return comments;
}
protected void onPostExecute(List<Comment> comments) {
Helper.setViewVisibility(progressBar, View.GONE);
if (handler != null) {
if (comments != null) {
handler.onSuccess(comments, comments.size() < pageSize);
} else {
handler.onError(error);
}
}
}
}
@@ -45,13 +45,15 @@ public class UpdateSuggestedTagsTask extends AsyncTask<Void, Void, List<Tag>> {
if (suggestedTagsAdapter != null && !clearPrevious) {
tags = new ArrayList<>(suggestedTagsAdapter.getTags());
}
while (tags.size() < limit) {
Tag randomTag = Lbry.knownTags.get(random.nextInt(Lbry.knownTags.size()));
if (excludeMature && randomTag.isMature()) {
continue;
}
if (!Lbry.followedTags.contains(randomTag) && (addedTagsAdapter == null || !addedTagsAdapter.getTags().contains(randomTag))) {
tags.add(randomTag);
if (Lbry.knownTags.size() > 0) {
while (tags.size() < limit) {
Tag randomTag = Lbry.knownTags.get(random.nextInt(Lbry.knownTags.size()));
if (excludeMature && randomTag.isMature()) {
continue;
}
if (!Lbry.followedTags.contains(randomTag) && (addedTagsAdapter == null || !addedTagsAdapter.getTags().contains(randomTag))) {
tags.add(randomTag);
}
}
}
} else {
@@ -64,10 +66,15 @@ public class UpdateSuggestedTagsTask extends AsyncTask<Void, Void, List<Tag>> {
if (excludeMature && knownTag.isMature()) {
continue;
}
if ((knownTag.getLowercaseName().startsWith(filter) || knownTag.getLowercaseName().matches(filter)) &&
(!tags.contains(knownTag) &&
!Lbry.followedTags.contains(knownTag) && (addedTagsAdapter == null || !addedTagsAdapter.getTags().contains(knownTag)))) {
tags.add(knownTag);
try {
if ((knownTag.getLowercaseName().startsWith(filter) ||
knownTag.getLowercaseName().matches(filter)) &&
(!tags.contains(knownTag) && !Lbry.followedTags.contains(knownTag) && (addedTagsAdapter == null || !addedTagsAdapter.getTags().contains(knownTag)))
) {
tags.add(knownTag);
}
} catch (Exception ex) {
// continue
}
}
}
@@ -73,6 +73,14 @@ public class PublishClaimTask extends AsyncTask<Void, Void, Claim> {
options.put("license_url", metadata.getLicenseUrl());
}
if (metadata.getReleaseTime() > 0) {
options.put("release_time", metadata.getReleaseTime());
} else if (claim.getTimestamp() > 0) {
options.put("release_time", claim.getTimestamp());
} else {
options.put("release_time", Double.valueOf(Math.floor(System.currentTimeMillis() / 1000.0)).intValue());
}
Claim claimResult = null;
try {
JSONObject result = (JSONObject) Lbry.genericApiCall(Lbry.METHOD_PUBLISH, options);
@@ -18,12 +18,19 @@ import io.lbry.browser.utils.Helper;
import io.lbry.browser.utils.Lbry;
public class PurchaseListTask extends AsyncTask<Void, Void, List<Claim>> {
private String claimId;
private int page;
private int pageSize;
private ClaimSearchResultHandler handler;
private View progressView;
private Exception error;
public PurchaseListTask(String claimId, View progressView, ClaimSearchResultHandler handler) {
this.claimId = claimId;
this.progressView = progressView;
this.handler = handler;
}
public PurchaseListTask(int page, int pageSize, View progressView, ClaimSearchResultHandler handler) {
this.page = page;
this.pageSize = pageSize;
@@ -38,8 +45,15 @@ public class PurchaseListTask extends AsyncTask<Void, Void, List<Claim>> {
List<Claim> claims = null;
try {
Map<String, Object> options = new HashMap<>();
options.put("page", page);
options.put("page_size", pageSize);
if (!Helper.isNullOrEmpty(claimId)) {
options.put("claim_id", claimId);
}
if (page > 0) {
options.put("page", page);
}
if (pageSize > 0) {
options.put("page_size", pageSize);
}
options.put("resolve", true);
JSONObject result = (JSONObject) Lbry.genericApiCall(Lbry.METHOD_PURCHASE_LIST, options);
@@ -47,9 +61,10 @@ public class PurchaseListTask extends AsyncTask<Void, Void, List<Claim>> {
claims = new ArrayList<>();
for (int i = 0; i < items.length(); i++) {
Claim claim = Claim.fromJSONObject(items.getJSONObject(i).getJSONObject("claim"));
claims.add(claim);
Lbry.addClaimToCache(claim);
if (!Helper.isNullOrEmpty(claim.getClaimId())) {
claims.add(claim);
Lbry.addClaimToCache(claim);
}
}
} catch (ApiCallException | JSONException | ClassCastException ex) {
error = ex;
@@ -55,20 +55,22 @@ public class LoadGalleryItemsTask extends AsyncTask<Void, GalleryItem, List<Gall
MediaStore.Video.Media.EXTERNAL_CONTENT_URI,
projection, null, null,
String.format("%s DESC LIMIT 150", MediaStore.MediaColumns.DATE_MODIFIED));
while (cursor.moveToNext()) {
int idColumn = cursor.getColumnIndex(MediaStore.MediaColumns._ID);
int nameColumn = cursor.getColumnIndex(MediaStore.MediaColumns.DISPLAY_NAME);
int typeColumn = cursor.getColumnIndex(MediaStore.MediaColumns.MIME_TYPE);
int pathColumn = cursor.getColumnIndex(MediaStore.MediaColumns.DATA);
int durationColumn = cursor.getColumnIndex(MediaStore.Video.Media.DURATION);
if (cursor != null) {
while (cursor.moveToNext()) {
int idColumn = cursor.getColumnIndex(MediaStore.MediaColumns._ID);
int nameColumn = cursor.getColumnIndex(MediaStore.MediaColumns.DISPLAY_NAME);
int typeColumn = cursor.getColumnIndex(MediaStore.MediaColumns.MIME_TYPE);
int pathColumn = cursor.getColumnIndex(MediaStore.MediaColumns.DATA);
int durationColumn = cursor.getColumnIndex(MediaStore.Video.Media.DURATION);
GalleryItem item = new GalleryItem();
item.setId(cursor.getString(idColumn));
item.setName(cursor.getString(nameColumn));
item.setType(cursor.getString(typeColumn));
item.setFilePath(cursor.getString(pathColumn));
item.setDuration(cursor.getLong(durationColumn));
items.add(item);
GalleryItem item = new GalleryItem();
item.setId(cursor.getString(idColumn));
item.setName(cursor.getString(nameColumn));
item.setType(cursor.getString(typeColumn));
item.setFilePath(cursor.getString(pathColumn));
item.setDuration(cursor.getLong(durationColumn));
items.add(item);
}
}
} catch (SQLiteException ex) {
// failed to load videos. log and pass
@@ -91,7 +91,11 @@ public class LoadSharedUserStateTask extends AsyncTask<Void, Void, Boolean> {
if (tags != null) {
if (db != null && tags.length() > 0) {
DatabaseHelper.setAllTagsUnfollowed(db);
try {
DatabaseHelper.setAllTagsUnfollowed(db);
} catch (IllegalStateException ex) {
// pass
}
}
followedTags = new ArrayList<>();
@@ -40,6 +40,7 @@ public class SupportCreateTask extends AsyncTask<Void, Void, Boolean> {
protected Boolean doInBackground(Void... params) {
try {
Map<String, Object> options = new HashMap<>();
options.put("blocking", true);
options.put("claim_id", claimId);
options.put("amount", new DecimalFormat(Helper.SDK_AMOUNT_FORMAT, new DecimalFormatSymbols(Locale.US)).format(amount.doubleValue()));
options.put("tip", tip);
@@ -1,19 +1,36 @@
package io.lbry.browser.ui;
import android.content.Context;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatSpinner;
import androidx.fragment.app.Fragment;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.textfield.TextInputEditText;
import java.math.BigDecimal;
import java.util.Map;
import io.lbry.browser.BuildConfig;
import io.lbry.browser.MainActivity;
import io.lbry.browser.R;
import io.lbry.browser.adapter.InlineChannelSpinnerAdapter;
import io.lbry.browser.model.Claim;
import io.lbry.browser.model.WalletBalance;
import io.lbry.browser.tasks.claim.ChannelCreateUpdateTask;
import io.lbry.browser.tasks.claim.ClaimResultHandler;
import io.lbry.browser.tasks.lbryinc.LogPublishTask;
import io.lbry.browser.ui.wallet.RewardsFragment;
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 lombok.Getter;
import lombok.Setter;
@@ -48,6 +65,7 @@ public class BaseFragment extends Fragment {
MainActivity.resumeGlobalPlayer(context);
}
}
rewardDriverClickListenerSet = false;
super.onStop();
}
@@ -93,4 +111,132 @@ public class BaseFragment extends Fragment {
}
}
}
public void showError(String message) {
Context context = getContext();
if (context != null) {
Snackbar.make(getView(), message, Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
}
}
public void setupInlineChannelCreator(
View container,
TextInputEditText inputChannelName,
TextInputEditText inputDeposit,
View inlineBalanceView,
TextView inlineBalanceValue,
View linkCancel,
MaterialButton buttonCreate,
View progressView,
AppCompatSpinner channelSpinner,
InlineChannelSpinnerAdapter channelSpinnerAdapter) {
inputDeposit.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View view, boolean hasFocus) {
Helper.setViewVisibility(inlineBalanceView, hasFocus ? View.VISIBLE : View.INVISIBLE);
}
});
linkCancel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.setViewText(inputChannelName, null);
Helper.setViewText(inputDeposit, null);
Helper.setViewVisibility(container, View.GONE);
}
});
buttonCreate.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// validate deposit and channel name
String channelNameString = Helper.normalizeChannelName(Helper.getValue(inputChannelName.getText()));
Claim claimToSave = new Claim();
claimToSave.setName(channelNameString);
String channelName = claimToSave.getName().startsWith("@") ? claimToSave.getName().substring(1) : claimToSave.getName();
String depositString = Helper.getValue(inputDeposit.getText());
if ("@".equals(channelName) || Helper.isNullOrEmpty(channelName)) {
showError(getString(R.string.please_enter_channel_name));
return;
}
if (!LbryUri.isNameValid(channelName)) {
showError(getString(R.string.channel_name_invalid_characters));
return;
}
if (Helper.channelExists(channelName)) {
showError(getString(R.string.channel_name_already_created));
return;
}
double depositAmount = 0;
try {
depositAmount = Double.valueOf(depositString);
} catch (NumberFormatException ex) {
// pass
showError(getString(R.string.please_enter_valid_deposit));
return;
}
if (depositAmount == 0) {
String error = getResources().getQuantityString(R.plurals.min_deposit_required, depositAmount == 1 ? 1 : 2, String.valueOf(Helper.MIN_DEPOSIT));
showError(error);
return;
}
if (Lbry.walletBalance == null || Lbry.walletBalance.getAvailable().doubleValue() < depositAmount) {
showError(getString(R.string.deposit_more_than_balance));
return;
}
ChannelCreateUpdateTask task = new ChannelCreateUpdateTask(
claimToSave, new BigDecimal(depositString), false, progressView, new ClaimResultHandler() {
@Override
public void beforeStart() {
Helper.setViewEnabled(inputChannelName, false);
Helper.setViewEnabled(inputDeposit, false);
Helper.setViewEnabled(buttonCreate, false);
Helper.setViewEnabled(linkCancel, false);
}
@Override
public void onSuccess(Claim claimResult) {
if (!BuildConfig.DEBUG) {
LogPublishTask logPublishTask = new LogPublishTask(claimResult);
logPublishTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
// channel created
Bundle bundle = new Bundle();
bundle.putString("claim_id", claimResult.getClaimId());
bundle.putString("claim_name", claimResult.getName());
LbryAnalytics.logEvent(LbryAnalytics.EVENT_CHANNEL_CREATE, bundle);
// add the claim to the channel list and set it as the selected item
if (channelSpinnerAdapter != null) {
channelSpinnerAdapter.add(claimResult);
}
if (channelSpinner != null && channelSpinnerAdapter != null) {
channelSpinner.setSelection(channelSpinnerAdapter.getCount() - 1);
}
Helper.setViewEnabled(inputChannelName, true);
Helper.setViewEnabled(inputDeposit, true);
Helper.setViewEnabled(buttonCreate, true);
Helper.setViewEnabled(linkCancel, true);
}
@Override
public void onError(Exception error) {
Helper.setViewEnabled(inputChannelName, true);
Helper.setViewEnabled(inputDeposit, true);
Helper.setViewEnabled(buttonCreate, true);
Helper.setViewEnabled(linkCancel, true);
showError(error.getMessage());
}
});
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
});
Helper.setViewText(inlineBalanceValue, Helper.shortCurrencyFormat(Lbry.walletBalance.getAvailable().doubleValue()));
}
}
@@ -0,0 +1,713 @@
package io.lbry.browser.ui.channel;
import android.content.Context;
import android.content.DialogInterface;
import android.os.AsyncTask;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.AdapterView;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.widget.AppCompatSpinner;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.textfield.TextInputEditText;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
import io.lbry.browser.BuildConfig;
import io.lbry.browser.MainActivity;
import io.lbry.browser.R;
import io.lbry.browser.adapter.ClaimListAdapter;
import io.lbry.browser.adapter.CommentListAdapter;
import io.lbry.browser.adapter.InlineChannelSpinnerAdapter;
import io.lbry.browser.listener.SdkStatusListener;
import io.lbry.browser.listener.WalletBalanceListener;
import io.lbry.browser.model.Claim;
import io.lbry.browser.model.Comment;
import io.lbry.browser.model.WalletBalance;
import io.lbry.browser.tasks.CommentCreateWithTipTask;
import io.lbry.browser.tasks.CommentListHandler;
import io.lbry.browser.tasks.CommentListTask;
import io.lbry.browser.tasks.claim.ChannelCreateUpdateTask;
import io.lbry.browser.tasks.claim.ClaimListResultHandler;
import io.lbry.browser.tasks.claim.ClaimListTask;
import io.lbry.browser.tasks.claim.ClaimResultHandler;
import io.lbry.browser.tasks.claim.ResolveTask;
import io.lbry.browser.tasks.lbryinc.LogPublishTask;
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 lombok.Setter;
public class ChannelCommentsFragment extends Fragment implements SdkStatusListener, WalletBalanceListener {
@Setter
private Claim claim;
private CommentListAdapter commentListAdapter;
private Comment replyToComment;
private View containerReplyToComment;
private TextView textReplyingTo;
private TextView textReplyToBody;
private View buttonClearReplyToComment;
private boolean postingComment;
private boolean fetchingChannels;
private View progressLoadingChannels;
private View progressPostComment;
private InlineChannelSpinnerAdapter commentChannelSpinnerAdapter;
private AppCompatSpinner commentChannelSpinner;
private TextInputEditText inputComment;
private TextView textCommentLimit;
private MaterialButton buttonPostComment;
private ImageView commentPostAsThumbnail;
private View commentPostAsNoThumbnail;
private TextView commentPostAsAlpha;
private View inlineChannelCreator;
private TextInputEditText inlineChannelCreatorInputName;
private TextInputEditText inlineChannelCreatorInputDeposit;
private View inlineChannelCreatorInlineBalance;
private TextView inlineChannelCreatorInlineBalanceValue;
private View inlineChannelCreatorCancelLink;
private View inlineChannelCreatorProgress;
private MaterialButton inlineChannelCreatorCreateButton;
public View onCreateView(@NonNull LayoutInflater inflater,
ViewGroup container, Bundle savedInstanceState) {
View root = inflater.inflate(R.layout.fragment_channel_comments, container, false);
containerReplyToComment = root.findViewById(R.id.comment_form_reply_to_container);
textReplyingTo = root.findViewById(R.id.comment_form_replying_to_text);
textReplyToBody = root.findViewById(R.id.comment_form_reply_to_body);
buttonClearReplyToComment = root.findViewById(R.id.comment_form_clear_reply_to);
commentChannelSpinner = root.findViewById(R.id.comment_form_channel_spinner);
progressLoadingChannels = root.findViewById(R.id.comment_form_channels_loading);
progressPostComment = root.findViewById(R.id.comment_form_post_progress);
inputComment = root.findViewById(R.id.comment_form_body);
textCommentLimit = root.findViewById(R.id.comment_form_text_limit);
buttonPostComment = root.findViewById(R.id.comment_form_post);
commentPostAsThumbnail = root.findViewById(R.id.comment_form_thumbnail);
commentPostAsNoThumbnail = root.findViewById(R.id.comment_form_no_thumbnail);
commentPostAsAlpha = root.findViewById(R.id.comment_form_thumbnail_alpha);
inlineChannelCreator = root.findViewById(R.id.container_inline_channel_form_create);
inlineChannelCreatorInputName = root.findViewById(R.id.inline_channel_form_input_name);
inlineChannelCreatorInputDeposit = root.findViewById(R.id.inline_channel_form_input_deposit);
inlineChannelCreatorInlineBalance = root.findViewById(R.id.inline_channel_form_inline_balance_container);
inlineChannelCreatorInlineBalanceValue = root.findViewById(R.id.inline_channel_form_inline_balance_value);
inlineChannelCreatorProgress = root.findViewById(R.id.inline_channel_form_create_progress);
inlineChannelCreatorCancelLink = root.findViewById(R.id.inline_channel_form_cancel_link);
inlineChannelCreatorCreateButton = root.findViewById(R.id.inline_channel_form_create_button);
RecyclerView commentList = root.findViewById(R.id.channel_comments_list);
commentList.setLayoutManager(new LinearLayoutManager(getContext()));
initCommentForm(root);
setupInlineChannelCreator(
inlineChannelCreator,
inlineChannelCreatorInputName,
inlineChannelCreatorInputDeposit,
inlineChannelCreatorInlineBalance,
inlineChannelCreatorInlineBalanceValue,
inlineChannelCreatorCancelLink,
inlineChannelCreatorCreateButton,
inlineChannelCreatorProgress,
commentChannelSpinner,
commentChannelSpinnerAdapter
);
return root;
}
public void onResume() {
super.onResume();
Context context = getContext();
if (!Lbry.SDK_READY) {
if (context instanceof MainActivity) {
((MainActivity) context).addSdkStatusListener(this);
}
} else {
onSdkReady();
}
if (context instanceof MainActivity) {
((MainActivity) context).addWalletBalanceListener(this);
}
checkCommentSdkInitializing();
}
public void onStop() {
super.onStop();
Context context = getContext();
if (context instanceof MainActivity) {
MainActivity activity = (MainActivity) context;
activity.removeSdkStatusListener(this);
activity.removeWalletBalanceListener(this);
}
}
private void checkCommentSdkInitializing() {
View root = getView();
if (root != null) {
TextView commentsSDKInitializing = root.findViewById(R.id.channel_comments_sdk_initializing);
Helper.setViewVisibility(commentsSDKInitializing, Lbry.SDK_READY ? View.GONE : View.VISIBLE);
}
}
@Override
public void onSdkReady() {
fetchChannels();
checkAndLoadComments();
}
private void checkAndLoadComments() {
View root = getView();
if (root != null) {
checkCommentSdkInitializing();
RecyclerView commentsList = root.findViewById(R.id.channel_comments_list);
if (commentsList == null || commentsList.getAdapter() == null || commentsList.getAdapter().getItemCount() == 0) {
loadComments();
}
}
}
private void loadComments() {
View root = getView();
ProgressBar relatedLoading = root.findViewById(R.id.channel_comments_progress);
if (claim != null && root != null) {
CommentListTask task = new CommentListTask(1, 500, claim.getClaimId(), relatedLoading, new CommentListHandler() {
@Override
public void onSuccess(List<Comment> comments, boolean hasReachedEnd) {
Context ctx = getContext();
View root = getView();
if (ctx != null && root != null) {
commentListAdapter = new CommentListAdapter(comments, ctx);
commentListAdapter.setListener(new ClaimListAdapter.ClaimListItemListener() {
@Override
public void onClaimClicked(Claim claim) {
if (!Helper.isNullOrEmpty(claim.getName()) &&
claim.getName().startsWith("@") &&
ctx instanceof MainActivity) {
((MainActivity) ctx).openChannelClaim(claim);
}
}
});
commentListAdapter.setReplyListener(new CommentListAdapter.ReplyClickListener() {
@Override
public void onReplyClicked(Comment comment) {
setReplyToComment(comment);
}
});
RecyclerView relatedContentList = root.findViewById(R.id.channel_comments_list);
relatedContentList.setAdapter(commentListAdapter);
commentListAdapter.notifyDataSetChanged();
checkNoComments();
resolveCommentPosters();
}
}
@Override
public void onError(Exception error) {
// pass
}
});
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
}
private void resolveCommentPosters() {
if (commentListAdapter != null) {
List<String> urlsToResolve = new ArrayList<>(commentListAdapter.getClaimUrlsToResolve());
if (urlsToResolve.size() > 0) {
ResolveTask task = new ResolveTask(urlsToResolve, Lbry.SDK_CONNECTION_STRING, null, new ClaimListResultHandler() {
@Override
public void onSuccess(List<Claim> claims) {
if (commentListAdapter != null) {
for (Claim claim : claims) {
if (claim.getClaimId() != null) {
commentListAdapter.updatePosterForComment(claim.getClaimId(), claim);
}
}
commentListAdapter.notifyDataSetChanged();
}
}
@Override
public void onError(Exception error) {
// pass
}
});
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
}
}
@Override
public void onWalletBalanceUpdated(WalletBalance walletBalance) {
if (walletBalance != null && inlineChannelCreatorInlineBalanceValue != null) {
inlineChannelCreatorInlineBalanceValue.setText(Helper.shortCurrencyFormat(walletBalance.getAvailable().doubleValue()));
}
}
private void fetchChannels() {
if (Lbry.ownChannels != null && Lbry.ownChannels.size() > 0) {
updateChannelList(Lbry.ownChannels);
return;
}
fetchingChannels = true;
disableChannelSpinner();
ClaimListTask task = new ClaimListTask(Claim.TYPE_CHANNEL, progressLoadingChannels, new ClaimListResultHandler() {
@Override
public void onSuccess(List<Claim> claims) {
Lbry.ownChannels = new ArrayList<>(claims);
updateChannelList(Lbry.ownChannels);
enableChannelSpinner();
fetchingChannels = false;
}
@Override
public void onError(Exception error) {
enableChannelSpinner();
fetchingChannels = false;
}
});
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
private void disableChannelSpinner() {
Helper.setViewEnabled(commentChannelSpinner, false);
hideInlineChannelCreator();
}
private void enableChannelSpinner() {
Helper.setViewEnabled(commentChannelSpinner, true);
if (commentChannelSpinner != null) {
Claim selectedClaim = (Claim) commentChannelSpinner.getSelectedItem();
if (selectedClaim != null) {
if (selectedClaim.isPlaceholder()) {
showInlineChannelCreator();
} else {
hideInlineChannelCreator();
}
}
}
}
private void showInlineChannelCreator() {
Helper.setViewVisibility(inlineChannelCreator, View.VISIBLE);
}
private void hideInlineChannelCreator() {
Helper.setViewVisibility(inlineChannelCreator, View.GONE);
}
private void updateChannelList(List<Claim> channels) {
if (commentChannelSpinnerAdapter == null) {
Context context = getContext();
if (context != null) {
commentChannelSpinnerAdapter = new InlineChannelSpinnerAdapter(context, R.layout.spinner_item_channel, new ArrayList<>(channels));
commentChannelSpinnerAdapter.addPlaceholder(false);
commentChannelSpinnerAdapter.notifyDataSetChanged();
}
} else {
commentChannelSpinnerAdapter.clear();
commentChannelSpinnerAdapter.addAll(channels);
commentChannelSpinnerAdapter.addPlaceholder(false);
commentChannelSpinnerAdapter.notifyDataSetChanged();
}
if (commentChannelSpinner != null) {
commentChannelSpinner.setAdapter(commentChannelSpinnerAdapter);
}
if (commentChannelSpinnerAdapter != null && commentChannelSpinner != null) {
if (commentChannelSpinnerAdapter.getCount() > 1) {
commentChannelSpinner.setSelection(1);
}
}
}
private void initCommentForm(View root) {
double amount = Comment.LBC_COST;
String buttonText = getResources().getQuantityString(R.plurals.post_for_credits, amount == 1 ? 1 : 2, Helper.LBC_CURRENCY_FORMAT.format(amount));
buttonPostComment.setText(buttonText);
textCommentLimit.setText(String.format("%d / %d", Helper.getValue(inputComment.getText()).length(), Comment.MAX_LENGTH));
buttonClearReplyToComment.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
clearReplyToComment();
}
});
buttonPostComment.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!Lbry.SDK_READY) {
Snackbar.make(root.findViewById(R.id.channel_comments_area), R.string.sdk_initializing_functionality, Snackbar.LENGTH_LONG).show();
return;
}
validateAndCheckPostComment(amount);
}
});
inputComment.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
int len = charSequence.length();
textCommentLimit.setText(String.format("%d / %d", len, Comment.MAX_LENGTH));
}
@Override
public void afterTextChanged(Editable editable) {
}
});
commentChannelSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int position, long l) {
Object item = adapterView.getItemAtPosition(position);
if (item instanceof Claim) {
Claim claim = (Claim) item;
if (claim.isPlaceholder()) {
if (!fetchingChannels) {
showInlineChannelCreator();
}
} else {
hideInlineChannelCreator();
updatePostAsChannel(claim);
}
}
}
@Override
public void onNothingSelected(AdapterView<?> adapterView) {
}
});
}
private void validateAndCheckPostComment(double amount) {
String comment = Helper.getValue(inputComment.getText());
Claim channel = (Claim) commentChannelSpinner.getSelectedItem();
if (Helper.isNullOrEmpty(comment)) {
showError(getString(R.string.please_enter_comment));
return;
}
if (channel == null || Helper.isNullOrEmpty(channel.getClaimId())) {
showError(getString(R.string.please_select_channel));
return;
}
if (Lbry.walletBalance == null || amount > Lbry.walletBalance.getAvailable().doubleValue()) {
showError(getString(R.string.insufficient_balance));
return;
}
Context context = getContext();
if (context != null) {
String titleText = getResources().getQuantityString(
R.plurals.post_and_tip,
amount == 1 ? 1 : 2,
Helper.LBC_CURRENCY_FORMAT.format(amount));
String confirmText = getResources().getQuantityString(
R.plurals.confirm_post_comment,
amount == 1 ? 1 : 2,
Helper.LBC_CURRENCY_FORMAT.format(amount),
claim.getTitleOrName());
AlertDialog.Builder builder = new AlertDialog.Builder(context).
setTitle(titleText).
setMessage(confirmText)
.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
postComment(amount);
}
}).setNegativeButton(R.string.no, null);
builder.show();
}
}
private void updatePostAsChannel(Claim channel) {
boolean hasThumbnail = !Helper.isNullOrEmpty(channel.getThumbnailUrl());
Helper.setViewVisibility(commentPostAsThumbnail, hasThumbnail ? View.VISIBLE : View.INVISIBLE);
Helper.setViewVisibility(commentPostAsNoThumbnail, !hasThumbnail ? View.VISIBLE : View.INVISIBLE);
Helper.setViewText(commentPostAsAlpha, channel.getName() != null ? channel.getName().substring(1, 2).toUpperCase() : null);
Context context = getContext();
int bgColor = Helper.generateRandomColorForValue(channel.getClaimId());
Helper.setIconViewBackgroundColor(commentPostAsNoThumbnail, bgColor, false, context);
if (hasThumbnail && context != null) {
Glide.with(context.getApplicationContext()).
asBitmap().
load(channel.getThumbnailUrl()).
apply(RequestOptions.circleCropTransform()).
into(commentPostAsThumbnail);
}
}
private void beforePostComment() {
postingComment = true;
Helper.setViewEnabled(commentChannelSpinner, false);
Helper.setViewEnabled(inputComment, false);
Helper.setViewEnabled(buttonClearReplyToComment, false);
Helper.setViewEnabled(buttonPostComment, false);
}
private void afterPostComment() {
Helper.setViewEnabled(commentChannelSpinner, true);
Helper.setViewEnabled(inputComment, true);
Helper.setViewEnabled(buttonClearReplyToComment, true);
Helper.setViewEnabled(buttonPostComment, true);
postingComment = false;
}
private Comment buildPostComment() {
Comment comment = new Comment();
Claim channel = (Claim) commentChannelSpinner.getSelectedItem();
comment.setClaimId(claim.getClaimId());
comment.setChannelId(channel.getClaimId());
comment.setChannelName(channel.getName());
comment.setText(Helper.getValue(inputComment.getText()));
comment.setPoster(channel);
if (replyToComment != null) {
comment.setParentId(replyToComment.getId());
}
return comment;
}
private void setReplyToComment(Comment comment) {
replyToComment = comment;
Helper.setViewText(textReplyingTo, getString(R.string.replying_to, comment.getChannelName()));
Helper.setViewText(textReplyToBody, comment.getText());
Helper.setViewVisibility(containerReplyToComment, View.VISIBLE);
inputComment.requestFocus();
Context context = getContext();
if (context != null) {
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(inputComment, InputMethodManager.SHOW_FORCED);
}
}
private void clearReplyToComment() {
Helper.setViewText(textReplyingTo, null);
Helper.setViewText(textReplyToBody, null);
Helper.setViewVisibility(containerReplyToComment, View.GONE);
replyToComment = null;
}
private void postComment(double tipAmount) {
if (postingComment) {
return;
}
Comment comment = buildPostComment();
// only use 2 decimal places
BigDecimal amount = new BigDecimal(String.valueOf(tipAmount));
beforePostComment();
CommentCreateWithTipTask task = new CommentCreateWithTipTask(comment, amount, progressPostComment, new CommentCreateWithTipTask.CommentCreateWithTipHandler() {
@Override
public void onSuccess(Comment createdComment) {
inputComment.setText(null);
clearReplyToComment();
if (commentListAdapter != null) {
createdComment.setPoster(comment.getPoster());
if (!Helper.isNullOrEmpty(createdComment.getParentId())) {
commentListAdapter.addReply(createdComment);
} else {
commentListAdapter.insert(0, createdComment);
}
}
afterPostComment();
checkNoComments();
Bundle bundle = new Bundle();
bundle.putDouble("amount", amount.doubleValue());
bundle.putString("claim_id", claim != null ? claim.getClaimId() : null);
bundle.putString("claim_name", claim != null ? claim.getName() : null);
LbryAnalytics.logEvent(LbryAnalytics.EVENT_COMMENT_CREATE, bundle);
Context context = getContext();
if (context instanceof MainActivity) {
((MainActivity) context).showMessage(R.string.comment_posted);
}
}
@Override
public void onError(Exception error) {
showError(error.getMessage());
afterPostComment();
}
});
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
private void showError(String message) {
Context context = getContext();
if (context instanceof MainActivity) {
((MainActivity) context).showError(message);
}
}
private void checkNoComments() {
View root = getView();
if (root != null) {
Helper.setViewVisibility(root.findViewById(R.id.channel_no_comments),
commentListAdapter == null || commentListAdapter.getItemCount() == 0 ? View.VISIBLE : View.GONE);
}
}
private void setupInlineChannelCreator(
View container,
TextInputEditText inputChannelName,
TextInputEditText inputDeposit,
View inlineBalanceView,
TextView inlineBalanceValue,
View linkCancel,
MaterialButton buttonCreate,
View progressView,
AppCompatSpinner channelSpinner,
InlineChannelSpinnerAdapter channelSpinnerAdapter) {
inputDeposit.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View view, boolean hasFocus) {
Helper.setViewVisibility(inlineBalanceView, hasFocus ? View.VISIBLE : View.INVISIBLE);
}
});
linkCancel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.setViewText(inputChannelName, null);
Helper.setViewText(inputDeposit, null);
Helper.setViewVisibility(container, View.GONE);
}
});
buttonCreate.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// validate deposit and channel name
String channelNameString = Helper.normalizeChannelName(Helper.getValue(inputChannelName.getText()));
Claim claimToSave = new Claim();
claimToSave.setName(channelNameString);
String channelName = claimToSave.getName().startsWith("@") ? claimToSave.getName().substring(1) : claimToSave.getName();
String depositString = Helper.getValue(inputDeposit.getText());
if ("@".equals(channelName) || Helper.isNullOrEmpty(channelName)) {
showError(getString(R.string.please_enter_channel_name));
return;
}
if (!LbryUri.isNameValid(channelName)) {
showError(getString(R.string.channel_name_invalid_characters));
return;
}
if (Helper.channelExists(channelName)) {
showError(getString(R.string.channel_name_already_created));
return;
}
double depositAmount = 0;
try {
depositAmount = Double.valueOf(depositString);
} catch (NumberFormatException ex) {
// pass
showError(getString(R.string.please_enter_valid_deposit));
return;
}
if (depositAmount == 0) {
String error = getResources().getQuantityString(R.plurals.min_deposit_required, depositAmount == 1 ? 1 : 2, String.valueOf(Helper.MIN_DEPOSIT));
showError(error);
return;
}
if (Lbry.walletBalance == null || Lbry.walletBalance.getAvailable().doubleValue() < depositAmount) {
showError(getString(R.string.deposit_more_than_balance));
return;
}
ChannelCreateUpdateTask task = new ChannelCreateUpdateTask(
claimToSave, new BigDecimal(depositString), false, progressView, new ClaimResultHandler() {
@Override
public void beforeStart() {
Helper.setViewEnabled(inputChannelName, false);
Helper.setViewEnabled(inputDeposit, false);
Helper.setViewEnabled(buttonCreate, false);
Helper.setViewEnabled(linkCancel, false);
}
@Override
public void onSuccess(Claim claimResult) {
if (!BuildConfig.DEBUG) {
LogPublishTask logPublishTask = new LogPublishTask(claimResult);
logPublishTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
// channel created
Bundle bundle = new Bundle();
bundle.putString("claim_id", claimResult.getClaimId());
bundle.putString("claim_name", claimResult.getName());
LbryAnalytics.logEvent(LbryAnalytics.EVENT_CHANNEL_CREATE, bundle);
// add the claim to the channel list and set it as the selected item
if (channelSpinnerAdapter != null) {
channelSpinnerAdapter.add(claimResult);
}
if (channelSpinner != null && channelSpinnerAdapter != null) {
channelSpinner.setSelection(channelSpinnerAdapter.getCount() - 1);
}
Helper.setViewEnabled(inputChannelName, true);
Helper.setViewEnabled(inputDeposit, true);
Helper.setViewEnabled(buttonCreate, true);
Helper.setViewEnabled(linkCancel, true);
}
@Override
public void onError(Exception error) {
Helper.setViewEnabled(inputChannelName, true);
Helper.setViewEnabled(inputDeposit, true);
Helper.setViewEnabled(buttonCreate, true);
Helper.setViewEnabled(linkCancel, true);
showError(error.getMessage());
}
});
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
});
Helper.setViewText(inlineBalanceValue, Helper.shortCurrencyFormat(Lbry.walletBalance.getAvailable().doubleValue()));
}
}
@@ -254,7 +254,13 @@ public class ChannelFormFragment extends BaseFragment implements
private void checkParams() {
Map<String, Object> params = getParams();
if (params.containsKey("claim")) {
if (params == null) {
Context context = getContext();
if (context instanceof MainActivity) {
((MainActivity) context).onBackPressed();
return;
}
} else if (params.containsKey("claim")) {
Claim claim = (Claim) params.get("claim");
if (claim != null && !claim.equals(this.currentClaim)) {
this.currentClaim = claim;
@@ -371,13 +377,6 @@ public class ChannelFormFragment extends BaseFragment implements
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
private void showError(String message) {
Context context = getContext();
if (context != null) {
Snackbar.make(getView(), message, Snackbar.LENGTH_LONG).setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
}
}
public void checkPermissionsAndLaunchFilePicker(boolean isCover) {
Context context = getContext();
if (MainActivity.hasPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, context)) {
@@ -258,7 +258,7 @@ public class ChannelFragment extends BaseFragment implements FetchChannelsListen
} else {
View root = getView();
if (root != null) {
Snackbar.make(root, R.string.channel_failed_delete, Toast.LENGTH_LONG).
Snackbar.make(root, R.string.channel_failed_delete, Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
}
}
@@ -443,16 +443,20 @@ public class ChannelFragment extends BaseFragment implements FetchChannelsListen
if (tabPager.getAdapter() == null && context instanceof MainActivity) {
tabPager.setAdapter(new ChannelPagerAdapter(claim, (MainActivity) context));
}
new TabLayoutMediator(tabLayout, tabPager, new TabLayoutMediator.TabConfigurationStrategy() {
@Override
public void onConfigureTab(@NonNull TabLayout.Tab tab, int position) {
switch (position) {
case 0: tab.setText(R.string.content); break;
case 1: tab.setText(R.string.about); break;
case 2: tab.setText(R.string.comments); break;
}
}
}).attach();
} catch (IllegalStateException ex) {
// TODO: Fix why this is happening
// pass
}
new TabLayoutMediator(tabLayout, tabPager, new TabLayoutMediator.TabConfigurationStrategy() {
@Override
public void onConfigureTab(@NonNull TabLayout.Tab tab, int position) {
tab.setText(position == 0 ? R.string.content : R.string.about);
}
}).attach();
}
private void resetSubCount() {
@@ -516,6 +520,13 @@ public class ChannelFragment extends BaseFragment implements FetchChannelsListen
// pass
}
return aboutFragment;
case 2:
ChannelCommentsFragment commentsFragment = ChannelCommentsFragment.class.newInstance();
if (channelClaim != null) {
commentsFragment.setClaim(channelClaim);
}
return commentsFragment;
}
return null;
@@ -527,7 +538,7 @@ public class ChannelFragment extends BaseFragment implements FetchChannelsListen
@Override
public int getItemCount() {
return 2;
return 3;
}
}
}
File diff suppressed because it is too large. Load diff
@@ -102,6 +102,7 @@ public class PublishFormFragment extends BaseFragment implements
private static final int MAX_VIDEO_DIMENSION = 1920;
private static final int MAX_BITRATE = 5000000; // 5mbps
private boolean storageRefusedOnce;
private static final int SUGGESTED_LIMIT = 8;
private boolean editMode;
@@ -474,6 +475,8 @@ public class PublishFormFragment extends BaseFragment implements
}
});
channelSpinnerAdapter = new InlineChannelSpinnerAdapter(getContext(), R.layout.spinner_item_channel, new ArrayList<>());
channelSpinnerAdapter.addPlaceholder(false);
setupInlineChannelCreator(
inlineChannelCreator,
inlineChannelCreatorInputName,
@@ -482,7 +485,9 @@ public class PublishFormFragment extends BaseFragment implements
inlineChannelCreatorInlineBalanceValue,
inlineChannelCreatorCancelLink,
inlineChannelCreatorCreateButton,
inlineChannelCreatorProgress
inlineChannelCreatorProgress,
channelSpinner,
channelSpinnerAdapter
);
}
@@ -580,58 +585,63 @@ public class PublishFormFragment extends BaseFragment implements
private void updateFieldsFromCurrentClaim() {
if (currentClaim != null && !editFieldsLoaded) {
Context context = getContext();
Claim.StreamMetadata metadata = (Claim.StreamMetadata) currentClaim.getValue();
uploadedThumbnailUrl = currentClaim.getThumbnailUrl();
if (context != null && !Helper.isNullOrEmpty(uploadedThumbnailUrl)) {
Glide.with(context.getApplicationContext()).load(uploadedThumbnailUrl).centerCrop().into(imageThumbnail);
}
inputTitle.setText(currentClaim.getTitle());
inputDescription.setText(currentClaim.getDescription());
if (addedTagsAdapter != null && currentClaim.getTagObjects() != null) {
addedTagsAdapter.addTags(currentClaim.getTagObjects());
updateSuggestedTags(currentFilter, SUGGESTED_LIMIT, true);
}
if (metadata.getFee() != null) {
Fee fee = metadata.getFee();
switchPrice.setChecked(true);
inputPrice.setText(fee.getAmount());
priceCurrencySpinner.setSelection("lbc".equalsIgnoreCase(fee.getCurrency()) ? 0 : 1);
}
inputAddress.setText(currentClaim.getName());
inputDeposit.setText(currentClaim.getAmount());
if (metadata.getLanguages() != null && metadata.getLanguages().size() > 0) {
// get the first language
String langCode = metadata.getLanguages().get(0);
int langCodePosition = ((LanguageSpinnerAdapter) languageSpinner.getAdapter()).getItemPosition(langCode);
if (langCodePosition > -1) {
languageSpinner.setSelection(langCodePosition);
}
}
if (!Helper.isNullOrEmpty(metadata.getLicense())) {
LicenseSpinnerAdapter adapter = (LicenseSpinnerAdapter) licenseSpinner.getAdapter();
int licPosition = adapter.getItemPosition(metadata.getLicense());
if (licPosition == -1) {
licPosition = adapter.getItemPosition(Predefined.LICENSE_OTHER);
}
if (licPosition > -1) {
licenseSpinner.setSelection(licPosition);
try {
Claim.StreamMetadata metadata = (Claim.StreamMetadata) currentClaim.getValue();
uploadedThumbnailUrl = currentClaim.getThumbnailUrl();
if (context != null && !Helper.isNullOrEmpty(uploadedThumbnailUrl)) {
Glide.with(context.getApplicationContext()).load(uploadedThumbnailUrl).centerCrop().into(imageThumbnail);
}
License selectedLicense = (License) licenseSpinner.getSelectedItem();
boolean otherLicense = Arrays.asList(
Predefined.LICENSE_COPYRIGHTED.toLowerCase(),
Predefined.LICENSE_OTHER.toLowerCase()).contains(selectedLicense.getName().toLowerCase());
inputOtherLicenseDescription.setText(otherLicense ? metadata.getLicense() : null);
}
inputTitle.setText(currentClaim.getTitle());
inputDescription.setText(currentClaim.getDescription());
if (addedTagsAdapter != null && currentClaim.getTagObjects() != null) {
addedTagsAdapter.addTags(currentClaim.getTagObjects());
updateSuggestedTags(currentFilter, SUGGESTED_LIMIT, true);
}
inputAddress.setEnabled(false);
editMode = true;
editFieldsLoaded = true;
if (metadata.getFee() != null) {
Fee fee = metadata.getFee();
switchPrice.setChecked(true);
inputPrice.setText(fee.getAmount());
priceCurrencySpinner.setSelection("lbc".equalsIgnoreCase(fee.getCurrency()) ? 0 : 1);
}
inputAddress.setText(currentClaim.getName());
inputDeposit.setText(currentClaim.getAmount());
if (metadata.getLanguages() != null && metadata.getLanguages().size() > 0) {
// get the first language
String langCode = metadata.getLanguages().get(0);
int langCodePosition = ((LanguageSpinnerAdapter) languageSpinner.getAdapter()).getItemPosition(langCode);
if (langCodePosition > -1) {
languageSpinner.setSelection(langCodePosition);
}
}
if (!Helper.isNullOrEmpty(metadata.getLicense())) {
LicenseSpinnerAdapter adapter = (LicenseSpinnerAdapter) licenseSpinner.getAdapter();
int licPosition = adapter.getItemPosition(metadata.getLicense());
if (licPosition == -1) {
licPosition = adapter.getItemPosition(Predefined.LICENSE_OTHER);
}
if (licPosition > -1) {
licenseSpinner.setSelection(licPosition);
}
License selectedLicense = (License) licenseSpinner.getSelectedItem();
boolean otherLicense = Arrays.asList(
Predefined.LICENSE_COPYRIGHTED.toLowerCase(),
Predefined.LICENSE_OTHER.toLowerCase()).contains(selectedLicense.getName().toLowerCase());
inputOtherLicenseDescription.setText(otherLicense ? metadata.getLicense() : null);
}
inputAddress.setEnabled(false);
editMode = true;
editFieldsLoaded = true;
} catch (ClassCastException ex) {
// invalid claim value type
cancelOnFatalCondition(getString(R.string.publish_invalid_claim_type));
}
}
}
@@ -1037,6 +1047,16 @@ public class PublishFormFragment extends BaseFragment implements
metadata.setLicenseUrl(selectedLicense.getUrl());
}
// set release time from current claim (on edit)
if (currentClaim != null) {
Claim.StreamMetadata currentMetadata = (Claim.StreamMetadata) currentClaim.getValue();
metadata.setReleaseTime(currentMetadata.getReleaseTime());
if (metadata.getReleaseTime() == 0) {
metadata.setReleaseTime(currentClaim.getTimestamp());
}
claim.setTimestamp(currentClaim.getTimestamp());
}
claim.setValueType(Claim.TYPE_STREAM);
claim.setValue(metadata);
@@ -1102,7 +1122,7 @@ public class PublishFormFragment extends BaseFragment implements
if (context instanceof MainActivity) {
MainActivity activity = (MainActivity) context;
activity.showMessage(R.string.publish_successful);
activity.openPublishesOnSuccessfulPublish();
activity.sendBroadcast(new Intent(MainActivity.ACTION_PUBLISH_SUCCESSFUL));
}
}
@@ -1258,128 +1278,6 @@ public class PublishFormFragment extends BaseFragment implements
checkRewardsDriver();
}
private void setupInlineChannelCreator(
View container,
TextInputEditText inputChannelName,
TextInputEditText inputDeposit,
View inlineBalanceView,
TextView inlineBalanceValue,
View linkCancel,
MaterialButton buttonCreate,
View progressView) {
inputDeposit.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View view, boolean hasFocus) {
Helper.setViewVisibility(inlineBalanceView, hasFocus ? View.VISIBLE : View.INVISIBLE);
}
});
linkCancel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.setViewText(inputChannelName, null);
Helper.setViewText(inputDeposit, null);
Helper.setViewVisibility(container, View.GONE);
}
});
buttonCreate.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// validate deposit and channel name
String channelNameString = Helper.normalizeChannelName(Helper.getValue(inputChannelName.getText()));
Claim claimToSave = new Claim();
claimToSave.setName(channelNameString);
String channelName = claimToSave.getName().startsWith("@") ? claimToSave.getName().substring(1) : claimToSave.getName();
String depositString = Helper.getValue(inputDeposit.getText());
if ("@".equals(channelName) || Helper.isNullOrEmpty(channelName)) {
showError(getString(R.string.please_enter_channel_name));
return;
}
if (!LbryUri.isNameValid(channelName)) {
showError(getString(R.string.channel_name_invalid_characters));
return;
}
if (Helper.channelExists(channelName)) {
showError(getString(R.string.channel_name_already_created));
return;
}
double depositAmount = 0;
try {
depositAmount = Double.valueOf(depositString);
} catch (NumberFormatException ex) {
// pass
showError(getString(R.string.please_enter_valid_deposit));
return;
}
if (depositAmount == 0) {
String error = getResources().getQuantityString(R.plurals.min_deposit_required, depositAmount == 1 ? 1 : 2, String.valueOf(Helper.MIN_DEPOSIT));
showError(error);
return;
}
if (Lbry.walletBalance == null || Lbry.walletBalance.getAvailable().doubleValue() < depositAmount) {
showError(getString(R.string.deposit_more_than_balance));
return;
}
ChannelCreateUpdateTask task = new ChannelCreateUpdateTask(
claimToSave, new BigDecimal(depositString), false, progressView, new ClaimResultHandler() {
@Override
public void beforeStart() {
Helper.setViewEnabled(inputChannelName, false);
Helper.setViewEnabled(inputDeposit, false);
Helper.setViewEnabled(buttonCreate, false);
Helper.setViewEnabled(linkCancel, false);
}
@Override
public void onSuccess(Claim claimResult) {
if (!BuildConfig.DEBUG) {
LogPublishTask logPublishTask = new LogPublishTask(claimResult);
logPublishTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
// channel created
Bundle bundle = new Bundle();
bundle.putString("claim_id", claimResult.getClaimId());
bundle.putString("claim_name", claimResult.getName());
LbryAnalytics.logEvent(LbryAnalytics.EVENT_CHANNEL_CREATE, bundle);
// add the claim to the channel list and set it as the selected item
channelSpinnerAdapter.add(claimResult);
channelSpinner.setSelection(channelSpinnerAdapter.getCount() - 1);
Helper.setViewEnabled(inputChannelName, true);
Helper.setViewEnabled(inputDeposit, true);
Helper.setViewEnabled(buttonCreate, true);
Helper.setViewEnabled(linkCancel, true);
}
@Override
public void onError(Exception error) {
Helper.setViewEnabled(inputChannelName, true);
Helper.setViewEnabled(inputDeposit, true);
Helper.setViewEnabled(buttonCreate, true);
Helper.setViewEnabled(linkCancel, true);
showError(error.getMessage());
}
});
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
});
Helper.setViewText(inlineBalanceValue, Helper.shortCurrencyFormat(Lbry.walletBalance.getAvailable().doubleValue()));
}
private void showError(String message) {
Context context = getContext();
if (context != null) {
Snackbar.make(getView(), message, Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
}
}
private void checkUploadButton() {
}
@@ -1394,15 +1292,21 @@ public class PublishFormFragment extends BaseFragment implements
@Override
public void onStoragePermissionRefused() {
showError(getString(R.string.storage_permission_rationale_images));
if (!storageRefusedOnce) {
showError(getString(R.string.storage_permission_rationale_images));
storageRefusedOnce = true;
}
launchPickerPending = false;
}
@Override
public void onFilePicked(String filePath) {
if (Helper.isNullOrEmpty(filePath)) {
Snackbar.make(getView(), R.string.undetermined_image_filepath, Snackbar.LENGTH_LONG).setBackgroundTint(
ContextCompat.getColor(getContext(), R.color.red)).show();
View view = getView();
if (view != null) {
Snackbar.make(view, R.string.undetermined_image_filepath, Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
}
return;
}
@@ -12,7 +12,6 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.camera.core.Camera;
@@ -53,6 +52,7 @@ public class PublishFragment extends BaseFragment implements
CameraPermissionListener, FilePickerListener, StoragePermissionListener {
private boolean cameraPreviewInitialized;
private boolean storagePermissionRefusedOnce;
private PreviewView cameraPreview;
private RecyclerView galleryGrid;
private GalleryGridAdapter adapter;
@@ -140,7 +140,7 @@ public class PublishFragment extends BaseFragment implements
preview.setSurfaceProvider(cameraPreview.createSurfaceProvider(camera.getCameraInfo()));
cameraPreviewInitialized = true;
}
} catch (ExecutionException | InterruptedException ex) {
} catch (ExecutionException | IllegalArgumentException | InterruptedException ex) {
// pass
}
}
@@ -254,7 +254,9 @@ public class PublishFragment extends BaseFragment implements
}
}
checkStoragePermissionAndLoadVideos();
if (!storagePermissionRefusedOnce) {
checkStoragePermissionAndLoadVideos();
}
}
@SuppressLint("RestrictedApi")
@@ -399,8 +401,15 @@ public class PublishFragment extends BaseFragment implements
@Override
public void onStoragePermissionRefused() {
Snackbar.make(getView(), R.string.storage_permission_rationale_videos, Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
storagePermissionRefusedOnce = true;
View root = getView();
if (root != null) {
Snackbar.make(root, R.string.storage_permission_rationale_videos, Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
Helper.setViewText(noVideosLoaded, R.string.storage_permission_rationale_videos);
}
checkNoVideosLoaded();
}
public String getSuggestedPublishUrl() {
@@ -12,6 +12,7 @@ import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
@@ -239,7 +240,8 @@ public class PublishesFragment extends BaseFragment implements ActionMode.Callba
@Override
public boolean onPrepareActionMode(androidx.appcompat.view.ActionMode actionMode, Menu menu) {
int selectionCount = adapter != null ? adapter.getSelectedCount() : 0;
menu.findItem(R.id.action_edit).setVisible(selectionCount == 1);
menu.findItem(R.id.action_edit).setVisible(selectionCount == 1 &&
Claim.TYPE_STREAM.equalsIgnoreCase(adapter.getSelectedItems().get(0).getValueType()));
return true;
}
@@ -70,8 +70,12 @@ public class EmailVerificationFragment extends Fragment {
inputEmail.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View view, boolean hasFocus) {
String layoutHint = !hasFocus ? "" : getString(R.string.email);
inputLayoutEmail.setHint(layoutHint);
try {
String layoutHint = !hasFocus ? "" : getString(R.string.email);
inputLayoutEmail.setHint(layoutHint);
} catch (IllegalStateException ex) {
// pass
}
}
});
buttonContinue.setOnClickListener(new View.OnClickListener() {
@@ -98,9 +102,12 @@ public class EmailVerificationFragment extends Fragment {
private void addEmail() {
currentEmail = Helper.getValue(inputEmail.getText());
if (Helper.isNullOrEmpty(currentEmail) || currentEmail.indexOf("@") == -1) {
Snackbar.make(getView(), R.string.provide_valid_email, Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
if (Helper.isNullOrEmpty(currentEmail) || !currentEmail.contains("@")) {
View view = getView();
if (view != null) {
Snackbar.make(view, R.string.provide_valid_email, Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
}
return;
}
@@ -136,8 +143,11 @@ public class EmailVerificationFragment extends Fragment {
@Override
public void onError(Exception error) {
Snackbar.make(getView(), error.getMessage(), Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
View view = getView();
if (view != null && error != null) {
Snackbar.make(getView(), error.getMessage(), Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
};
Helper.setViewVisibility(buttonContinue, View.VISIBLE);
}
});
@@ -194,14 +204,20 @@ public class EmailVerificationFragment extends Fragment {
@Override
public void onSuccess() {
Snackbar.make(getView(), R.string.please_follow_instructions, Snackbar.LENGTH_LONG).show();
View view = getView();
if (view != null) {
Snackbar.make(view, R.string.please_follow_instructions, Snackbar.LENGTH_LONG).show();
}
Helper.setViewEnabled(buttonResend, true);
}
@Override
public void onError(Exception error) {
Snackbar.make(getView(), error.getMessage(), Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
View view = getView();
if (view != null && error != null) {
Snackbar.make(view, error.getMessage(), Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
}
Helper.setViewEnabled(buttonResend, true);
}
});
@@ -248,6 +248,8 @@ public class InvitesFragment extends BaseFragment implements SdkStatusListener,
}
});
channelSpinnerAdapter = new InlineChannelSpinnerAdapter(getContext(), R.layout.spinner_item_channel, new ArrayList<>());
channelSpinnerAdapter.addPlaceholder(false);
setupInlineChannelCreator(
inlineChannelCreator,
inlineChannelCreatorInputName,
@@ -256,7 +258,9 @@ public class InvitesFragment extends BaseFragment implements SdkStatusListener,
inlineChannelCreatorInlineBalanceValue,
inlineChannelCreatorCancelLink,
inlineChannelCreatorCreateButton,
inlineChannelCreatorProgress
inlineChannelCreatorProgress,
channelSpinner,
channelSpinnerAdapter
);
}
@@ -455,120 +459,6 @@ public class InvitesFragment extends BaseFragment implements SdkStatusListener,
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
private void setupInlineChannelCreator(
View container,
TextInputEditText inputChannelName,
TextInputEditText inputDeposit,
View inlineBalanceView,
TextView inlineBalanceValue,
View linkCancel,
MaterialButton buttonCreate,
View progressView) {
inputDeposit.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View view, boolean hasFocus) {
Helper.setViewVisibility(inlineBalanceView, hasFocus ? View.VISIBLE : View.INVISIBLE);
}
});
linkCancel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Helper.setViewText(inputChannelName, null);
Helper.setViewText(inputDeposit, null);
Helper.setViewVisibility(container, View.GONE);
}
});
buttonCreate.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// validate deposit and channel name
String channelNameString = Helper.normalizeChannelName(Helper.getValue(inputChannelName.getText()));
Claim claimToSave = new Claim();
claimToSave.setName(channelNameString);
String channelName = claimToSave.getName().startsWith("@") ? claimToSave.getName().substring(1) : claimToSave.getName();
String depositString = Helper.getValue(inputDeposit.getText());
if ("@".equals(channelName) || Helper.isNullOrEmpty(channelName)) {
showError(getString(R.string.please_enter_channel_name));
return;
}
if (!LbryUri.isNameValid(channelName)) {
showError(getString(R.string.channel_name_invalid_characters));
return;
}
if (Helper.channelExists(channelName)) {
showError(getString(R.string.channel_name_already_created));
return;
}
double depositAmount = 0;
try {
depositAmount = Double.valueOf(depositString);
} catch (NumberFormatException ex) {
// pass
showError(getString(R.string.please_enter_valid_deposit));
return;
}
if (depositAmount == 0) {
String error = getResources().getQuantityString(R.plurals.min_deposit_required, depositAmount == 1 ? 1 : 2, String.valueOf(Helper.MIN_DEPOSIT));
showError(error);
return;
}
if (Lbry.walletBalance == null || Lbry.walletBalance.getAvailable().doubleValue() < depositAmount) {
showError(getString(R.string.deposit_more_than_balance));
return;
}
ChannelCreateUpdateTask task = new ChannelCreateUpdateTask(
claimToSave, new BigDecimal(depositString), false, progressView, new ClaimResultHandler() {
@Override
public void beforeStart() {
Helper.setViewEnabled(inputChannelName, false);
Helper.setViewEnabled(inputDeposit, false);
Helper.setViewEnabled(buttonCreate, false);
Helper.setViewEnabled(linkCancel, false);
}
@Override
public void onSuccess(Claim claimResult) {
if (!BuildConfig.DEBUG) {
LogPublishTask logPublishTask = new LogPublishTask(claimResult);
logPublishTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
// channel created
Bundle bundle = new Bundle();
bundle.putString("claim_id", claimResult.getClaimId());
bundle.putString("claim_name", claimResult.getName());
LbryAnalytics.logEvent(LbryAnalytics.EVENT_CHANNEL_CREATE, bundle);
// add the claim to the channel list and set it as the selected item
channelSpinnerAdapter.add(claimResult);
channelSpinner.setSelection(channelSpinnerAdapter.getCount() - 1);
Helper.setViewEnabled(inputChannelName, true);
Helper.setViewEnabled(inputDeposit, true);
Helper.setViewEnabled(buttonCreate, true);
Helper.setViewEnabled(linkCancel, true);
}
@Override
public void onError(Exception error) {
Helper.setViewEnabled(inputChannelName, true);
Helper.setViewEnabled(inputDeposit, true);
Helper.setViewEnabled(buttonCreate, true);
Helper.setViewEnabled(linkCancel, true);
showError(error.getMessage());
}
});
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
});
Helper.setViewText(inlineBalanceValue, Helper.shortCurrencyFormat(Lbry.walletBalance.getAvailable().doubleValue()));
}
@Override
public void onWalletBalanceUpdated(WalletBalance walletBalance) {
if (walletBalance != null && inlineChannelCreatorInlineBalanceValue != null) {
@@ -577,14 +467,6 @@ public class InvitesFragment extends BaseFragment implements SdkStatusListener,
checkRewardsDriver();
}
private void showError(String message) {
Context context = getContext();
if (context != null) {
Snackbar.make(getView(), message, Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
}
}
private void checkRewardsDriver() {
Context ctx = getContext();
View root = getView();
@@ -286,8 +286,10 @@ public class RewardsFragment extends BaseFragment implements RewardListAdapter.R
@Override
public void onError(Exception error) {
Snackbar.make(getView(), error.getMessage(), Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
View view = getView();
if (view != null && error != null && !Helper.isNullOrEmpty(error.getMessage())) {
Snackbar.make(view, error.getMessage(), Snackbar.LENGTH_LONG).setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
}
Helper.setViewEnabled(buttonClaim, true);
Helper.setViewEnabled(inputClaimCode, true);
rewardClaimInProgress = false;
@@ -103,16 +103,20 @@ public class TransactionHistoryFragment extends BaseFragment implements Transact
TransactionListTask task = new TransactionListTask(currentTransactionPage, TRANSACTION_PAGE_LIMIT, loading, new TransactionListTask.TransactionListHandler() {
@Override
public void onSuccess(List<Transaction> transactions, boolean hasReachedEnd) {
Context context = getContext();
transactionsLoading = false;
transactionsHaveReachedEnd = hasReachedEnd;
if (adapter == null) {
adapter = new TransactionListAdapter(transactions, getContext());
adapter.setListener(TransactionHistoryFragment.this);
if (transactionList != null) {
transactionList.setAdapter(adapter);
if (context != null) {
if (adapter == null) {
adapter = new TransactionListAdapter(transactions, context);
adapter.setListener(TransactionHistoryFragment.this);
if (transactionList != null) {
transactionList.setAdapter(adapter);
}
} else {
adapter.addTransactions(transactions);
}
} else {
adapter.addTransactions(transactions);
}
checkNoTransactions();
}
@@ -409,14 +409,22 @@ public class WalletFragment extends BaseFragment implements SdkStatusListener, W
// wallet_send task
String recipientAddress = Helper.getValue(inputSendAddress.getText());
String amountString = Helper.getValue(inputSendAmount.getText());
String amount = new DecimalFormat(Helper.SDK_AMOUNT_FORMAT, new DecimalFormatSymbols(Locale.US)).
format(new BigDecimal(amountString).doubleValue());
String amount = null;
try {
amount = new DecimalFormat(Helper.SDK_AMOUNT_FORMAT, new DecimalFormatSymbols(Locale.US)).
format(new BigDecimal(amountString).doubleValue());
} catch (NumberFormatException ex) {
Snackbar.make(getView(), R.string.invalid_amount, Snackbar.LENGTH_LONG).
setBackgroundTint(Color.RED).setTextColor(Color.WHITE).show();
return;
}
disableSendControls();
double actualSendAmount = Double.valueOf(amount);
WalletSendTask task = new WalletSendTask(recipientAddress, amount, walletSendProgress, new WalletSendTask.WalletSendHandler() {
@Override
public void onSuccess() {
double sentAmount = Double.valueOf(amount);
double sentAmount = actualSendAmount;
String message = getResources().getQuantityString(
R.plurals.you_sent_credits, sentAmount == 1.0 ? 1 : 2,
new DecimalFormat("#,###.##").format(sentAmount));
@@ -530,8 +538,11 @@ public class WalletFragment extends BaseFragment implements SdkStatusListener, W
}
@Override
public void onSuccess(String newAddress) {
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getContext());
sp.edit().putString(MainActivity.PREFERENCE_KEY_INTERNAL_WALLET_RECEIVE_ADDRESS, newAddress).apply();
Context context = getContext();
if (context != null) {
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
sp.edit().putString(MainActivity.PREFERENCE_KEY_INTERNAL_WALLET_RECEIVE_ADDRESS, newAddress).apply();
}
Helper.setViewText(textWalletReceiveAddress, newAddress);
Helper.setViewEnabled(buttonGetNewAddress, true);
}
@@ -70,6 +70,7 @@ public final class Helper {
public static final MediaType JSON_MEDIA_TYPE = MediaType.get("application/json; charset=utf-8");
public static final int CONTENT_PAGE_SIZE = 25;
public static final double MIN_DEPOSIT = 0.001;
public static final String PLAIN_CURRENCY_FORMAT_PATTERN = "####.##";
public static final String LBC_CURRENCY_FORMAT_PATTERN = "#,###.##";
public static final String FILE_SIZE_FORMAT_PATTERN = "#,###.#";
public static final DecimalFormat LBC_CURRENCY_FORMAT = new DecimalFormat(LBC_CURRENCY_FORMAT_PATTERN);
@@ -89,6 +89,8 @@ public final class Lbry {
public static final String METHOD_PREFERENCE_GET = "preference_get";
public static final String METHOD_PREFERENCE_SET = "preference_set";
public static final String METHOD_COMMENT_CREATE = "comment_create";
public static final String METHOD_TXO_LIST = "txo_list";
public static final String METHOD_TXO_SPEND = "txo_spend";
@@ -102,6 +104,8 @@ public final class Lbry {
public static final String METHOD_STREAM_ABANDON = "stream_abandon";
public static final String METHOD_STREAM_REPOST = "stream_repost";
public static final String METHOD_COMMENT_LIST = "comment_list";
public static KeyStore KEYSTORE;
public static boolean SDK_READY = false;
@@ -10,6 +10,7 @@ public class LbryAnalytics {
public static final String EVENT_APP_ERROR = "app_error";
public static final String EVENT_APP_LAUNCH = "app_launch";
public static final String EVENT_COMMENT_CREATE = "comment_create";
public static final String EVENT_EMAIL_ADDED = "email_added";
public static final String EVENT_EMAIL_VERIFIED = "email_verified";
public static final String EVENT_FIRST_RUN_COMPLETED = "first_run_completed";
@@ -66,6 +66,10 @@ public class LbryUri {
REGEX_PART_MODIFIER_SEPARATOR));
String cleanUrl = url, queryString = null;
if (Helper.isNullOrEmpty(url)) {
throw new LbryUriException("Invalid url parameter.");
}
Matcher qsMatcher = PATTERN_SEPARATE_QUERY_STRING.matcher(url);
if (qsMatcher.matches()) {
queryString = qsMatcher.group(2);
@@ -25,6 +25,7 @@ import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import io.lbry.browser.BuildConfig;
import io.lbry.browser.MainActivity;
import io.lbry.browser.exceptions.LbryioRequestException;
import io.lbry.browser.exceptions.LbryioResponseException;
@@ -81,6 +82,10 @@ public final class Lbryio {
authToken = getAuthToken(context);
}
/*if (BuildConfig.DEBUG) {
Log.d(TAG, String.format("Using authToken for request: %s", authToken));
}*/
String url = String.format("%s/%s/%s", CONNECTION_STRING, resource, action);
if (Helper.METHOD_GET.equalsIgnoreCase(method)) {
Uri.Builder uriBuilder = Uri.parse(url).buildUpon();
@@ -94,6 +99,9 @@ public final class Lbryio {
}
url = uriBuilder.build().toString();
}
/*if (BuildConfig.DEBUG) {
Log.d(TAG, String.format("Request Method: %s, Sending request to URL: %s", method, url));
}*/
Request.Builder builder = new Request.Builder().url(url);
if (Helper.METHOD_POST.equalsIgnoreCase(method)) {
@@ -142,6 +150,9 @@ public final class Lbryio {
}
generatingAuthToken = true;
/*if (BuildConfig.DEBUG) {
Log.d(TAG, "Generating a new auth token");
}*/
Map<String, String> options = new HashMap<>();
options.put("auth_token", "");
@@ -150,6 +161,9 @@ public final class Lbryio {
Response response = Lbryio.call("user", "new", options, "post", context);
try {
JSONObject json = (JSONObject) parseResponse(response);
/*if (BuildConfig.DEBUG) {
Log.d(TAG, String.format("/user/new response: %s", json.toString(2)));
}*/
if (!json.has(AUTH_TOKEN_PARAM)) {
throw new LbryioResponseException("auth_token was not set in the response");
}
@@ -0,0 +1,187 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/comment_form_card"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:text="@string/comment_as"
android:fontFamily="@font/inter"
android:textSize="14sp"
android:textFontWeight="300" />
<ProgressBar
android:id="@+id/comment_form_channels_loading"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_width="20dp"
android:layout_height="20dp"
android:visibility="gone" />
</RelativeLayout>
<androidx.appcompat.widget.AppCompatSpinner
android:id="@+id/comment_form_channel_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp" />
<include layout="@layout/container_inline_channel_form" />
<LinearLayout
android:id="@+id/comment_form_reply_to_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:orientation="horizontal"
android:visibility="gone">
<View
android:id="@+id/comment_form_reply_to_vertical_bar"
android:layout_width="3dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/nextLbryGreen" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginRight="40dp">
<TextView
android:id="@+id/comment_form_replying_to_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/inter"
android:text="@string/replying_to"
android:textColor="@color/lightGrey"
android:textSize="12sp" />
<TextView
android:id="@+id/comment_form_reply_to_body"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:lineSpacingMultiplier="1.05"
android:fontFamily="@font/inter"
android:textFontWeight="300"
android:textSize="14sp" />
</LinearLayout>
<RelativeLayout
android:id="@+id/comment_form_clear_reply_to"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:layout_alignParentRight="true"
android:layout_width="36dp"
android:layout_height="36dp">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_centerInParent="true"
android:src="@drawable/ic_close"
android:tint="@color/foreground" />
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp">
<RelativeLayout
android:id="@+id/comment_form_avatar_container"
android:layout_width="40dp"
android:layout_height="40dp">
<RelativeLayout
android:layout_centerHorizontal="true"
android:background="@drawable/bg_channel_icon"
android:id="@+id/comment_form_no_thumbnail"
android:layout_width="40dp"
android:layout_height="40dp"
android:visibility="invisible">
<TextView
android:id="@+id/comment_form_thumbnail_alpha"
android:layout_centerInParent="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/inter"
android:textAllCaps="true"
android:textSize="24sp"
android:textColor="@color/white"
android:textFontWeight="300" />
</RelativeLayout>
<ImageView
android:layout_centerInParent="true"
android:id="@+id/comment_form_thumbnail"
android:layout_width="40dp"
android:layout_height="40dp" />
</RelativeLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/inter"
android:textFontWeight="300"
android:inputType="textMultiLine"
android:maxLength="2000"
android:singleLine="false"
android:scrollbars="vertical"
android:textSize="14sp" />
</com.google.android.material.textfield.TextInputLayout>
</RelativeLayout>
<TextView
android:id="@+id/comment_form_text_limit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginTop="2dp"
android:fontFamily="@font/inter"
android:textColor="@color/lightGrey"
android:textFontWeight="300"
android:textSize="12sp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp">
<com.google.android.material.button.MaterialButton
android:id="@+id/comment_form_post"
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/inter" />
<ProgressBar
android:id="@+id/comment_form_post_progress"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/comment_form_post"
android:layout_marginLeft="24dp"
android:visibility="gone" />
</RelativeLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
+10 -4
View File
@@ -128,12 +128,18 @@
</RelativeLayout>
</androidx.cardview.widget.CardView>
<com.google.android.exoplayer2.ui.PlayerView
android:id="@+id/pip_player"
<RelativeLayout
android:id="@+id/pip_player_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
android:visibility="invisible"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:visibility="invisible" />
app:layout_constraintTop_toTopOf="parent">
<com.google.android.exoplayer2.ui.PlayerView
android:id="@+id/pip_player"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
+3 -1
View File
@@ -95,7 +95,9 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
app:tabGravity="center" />
android:paddingLeft="110dp"
app:tabGravity="fill"
app:tabMode="scrollable"/>
<RelativeLayout
android:id="@+id/channel_view_icon_container"
android:layout_width="80dp"
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp">
<ProgressBar
android:id="@+id/channel_comments_progress"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_centerVertical="true"
android:visibility="gone" />
</RelativeLayout>
<androidx.core.widget.NestedScrollView
android:id="@+id/channel_comments_area"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<include layout="@layout/container_comment_form"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="0dp"
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_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:fontFamily="@font/inter"
android:text="@string/no_comments"
android:textFontWeight="300"
android:textSize="14sp"
android:visibility="gone" />
<TextView
android:id="@+id/channel_comments_sdk_initializing"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:fontFamily="@font/inter"
android:text="@string/sdk_initializing_comments"
android:textFontWeight="300"
android:textSize="14sp"
android:visibility="gone" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/channel_comments_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:overScrollMode="never" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>
+139 -24
View File
@@ -37,7 +37,6 @@
<LinearLayout
android:id="@+id/file_view_claim_display_area"
android:orientation="vertical"
android:layout_weight="10"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="visible">
@@ -45,8 +44,7 @@
android:id="@+id/file_view_media_container"
android:background="@color/mediaContainerBackground"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="3.55">
android:layout_height="246dp">
<RelativeLayout
android:id="@+id/file_view_media_meta_container"
android:clickable="true"
@@ -167,8 +165,7 @@
<androidx.core.widget.NestedScrollView
android:id="@+id/file_view_scroll_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="6.45"
android:layout_height="match_parent"
android:clipToPadding="false">
<LinearLayout
android:orientation="vertical"
@@ -471,40 +468,89 @@
android:background="@color/divider"
android:layout_width="match_parent"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp"
android:layout_height="0.5dp" />
<RelativeLayout
android:id="@+id/file_view_publisher_area"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp">
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/file_view_publisher_name_area"
android:id="@+id/file_view_publisher_info_area"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:orientation="vertical"
android:layout_centerVertical="true"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/file_view_publisher_name"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:layout_height="wrap_content"
android:paddingTop="12dp"
android:paddingLeft="16dp"
android:paddingBottom="12dp"
android:layout_toLeftOf="@id/file_view_icon_follow_unfollow">
<RelativeLayout
android:id="@+id/file_view_publisher_avatar"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center_vertical"
android:layout_marginRight="16dp"
android:visibility="gone">
<RelativeLayout
android:layout_centerHorizontal="true"
android:background="@drawable/bg_channel_icon"
android:id="@+id/file_view_publisher_no_thumbnail"
android:layout_width="50dp"
android:layout_height="50dp">
<TextView
android:id="@+id/file_view_publisher_thumbnail_alpha"
android:layout_centerInParent="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/inter"
android:textAllCaps="true"
android:textSize="24sp"
android:textColor="@color/white"
android:textFontWeight="300" />
</RelativeLayout>
<ImageView
android:layout_centerHorizontal="true"
android:id="@+id/file_view_publisher_thumbnail"
android:layout_width="50dp"
android:layout_height="50dp" />
</RelativeLayout>
<LinearLayout
android:id="@+id/file_view_publisher_name_area"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textColor="@color/lbryGreen"
android:fontFamily="@font/inter"
android:textFontWeight="600" />
android:layout_gravity="center_vertical"
android:orientation="vertical">
<TextView
android:id="@+id/file_view_publisher_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/inter"
android:textFontWeight="300"
android:textSize="14sp"
android:visibility="gone" />
<TextView
android:id="@+id/file_view_publisher_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/inter"
android:textColor="@color/lbryGreen"
android:textFontWeight="600"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
<io.lbry.browser.ui.controls.SolidIconView
android:id="@+id/file_view_icon_follow_unfollow"
android:clickable="true"
android:background="?attr/selectableItemBackground"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:text="@string/fa_heart"
android:textColor="@color/red"
android:textSize="20dp" />
@@ -513,7 +559,6 @@
<View
android:background="@color/divider"
android:layout_width="match_parent"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp"
android:layout_height="0.5dp" />
@@ -570,7 +615,7 @@
<LinearLayout
android:id="@+id/file_view_related_content_area"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp">
<RelativeLayout
@@ -589,7 +634,7 @@
android:id="@+id/file_view_related_content_progress"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_alignParentRight="true"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:visibility="gone" />
</RelativeLayout>
@@ -611,6 +656,76 @@
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_marginBottom="12dp"
android:background="@color/divider" />
<LinearLayout
android:id="@+id/file_view_comments_area"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="16dp"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp">
<ProgressBar
android:id="@+id/file_view_comments_progress"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:visibility="gone" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:fontFamily="@font/inter"
android:text="@string/comments"
android:textSize="16sp" />
</RelativeLayout>
<include layout="@layout/container_comment_form" />
<TextView
android:id="@+id/file_view_no_comments"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:fontFamily="@font/inter"
android:text="@string/no_comments"
android:textFontWeight="300"
android:textSize="14sp"
android:visibility="gone" />
<TextView
android:id="@+id/file_view_comments_sdk_initializing"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="8dp"
android:fontFamily="@font/inter"
android:text="@string/sdk_initializing_comments"
android:textFontWeight="300"
android:textSize="14sp"
android:visibility="gone" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/file_view_comments_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:overScrollMode="never" />
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>
@@ -43,7 +43,7 @@
android:adjustViewBounds="true"
android:src="@drawable/gerbil_happy" />
<TextView
android:text="@string/no_channel_created"
android:text="@string/no_publishes_created"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
@@ -0,0 +1,106 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:orientation="vertical"
android:paddingBottom="8dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="8dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/comment_avatar_container"
android:layout_width="40dp"
android:layout_height="40dp">
<RelativeLayout
android:layout_centerHorizontal="true"
android:background="@drawable/bg_channel_icon"
android:id="@+id/comment_no_thumbnail"
android:layout_width="40dp"
android:layout_height="40dp">
<TextView
android:id="@+id/comment_thumbnail_alpha"
android:layout_centerInParent="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/inter"
android:textAllCaps="true"
android:textSize="24sp"
android:textColor="@color/white"
android:textFontWeight="300" />
</RelativeLayout>
<ImageView
android:layout_centerHorizontal="true"
android:id="@+id/comment_thumbnail"
android:layout_width="40dp"
android:layout_height="40dp" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/comment_avatar_container"
android:layout_marginLeft="16dp"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/comment_channel_name"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/inter"
android:textColor="@color/lbryGreen"
android:textSize="14sp" />
<TextView
android:id="@+id/comment_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerInParent="true"
android:fontFamily="@font/inter"
android:textColor="@color/lightGrey"
android:textSize="12sp" />
</RelativeLayout>
<TextView
android:id="@+id/comment_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:lineSpacingMultiplier="1.1"
android:fontFamily="@font/inter"
android:textFontWeight="300"
android:textIsSelectable="true"
android:textSize="14sp" />
<TextView
android:id="@+id/comment_reply_link"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:fontFamily="@font/inter"
android:text="@string/reply"
android:textFontWeight="300"
android:textColor="@color/lbryGreen"
android:textSize="12sp" />
</LinearLayout>
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/comment_replies"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
+585
View File
@@ -0,0 +1,585 @@
<resources>
<string name="app_name">लाइब्रेरी</string>
<string name="navigation_drawer_open">पथ प्रदर्शन दराज को खोलें</string>
<string name="navigation_drawer_close">पथ प्रदर्शन दराज को बंद करें</string>
<!-- Nav menu -->
<string name="find_content">सामग्री ढूंढें</string>
<string name="your_content">आप की सामग्री</string>
<string name="wallet">वॉलेट</string>
<string name="following">फॉलोइंग</string>
<string name="editors_choice">संपादक की पसंद</string>
<string name="your_tags">आपके टैग्स</string>
<string name="all_content">सारी सामग्री</string>
<string name="channels">चैनल्स</string>
<string name="library">लाइब्रेरी</string>
<string name="publishes">प्रकाशित सामग्री</string>
<string name="new_publish">नई प्रकाशित सामग्री</string>
<string name="rewards">पुरस्कार</string>
<string name="invites">आमंत्रण</string>
<string name="settings">समायोजन , सेटिंग्स</string>
<string name="about">के बारे में</string>
<string name="sign_in">साइन इन</string>
<string name="startup_failed">आप शुरू नहीं हो पाया है। कृपया अपना डाटा कनेक्शन चेक करें और पुनः प्रयास करें ।अगर यह समस्या निरंतर बनी रहती है तो कृपया hello@lbry.com पर ईमेल करें</string>
<string name="no_claim_search_content">इस समय प्रदर्शन के लिए कोई सामग्री नहीं है। कृपया अपने चयन को और स्पष्ट करें अथवा कुछ देर बाद प्रयास करें</string>
<!-- Welcome Page -->
<string name="welcome_to_lbry">लाइब्रेरी में आपका स्वागत है</string>
<string name="welcome_paragraph">लाइब्रेरी एक सामुदायिक नियंत्रित सामग्री मंच है।यहां आप ना केवल वीडियोस संगीत किताबें और अन्य सामग्री का आनंद ले सकते हैं बल्कि खुद भी उन्हें बनाकर प्रदर्शित कर सकते हैं।</string>
<string name="welcome_tos">आगे बढ़ने से पहले मैं इनसे सहमत हूं &lt;a href=\"https://lbry.com/termsofservice\"&gt;Terms of Service&lt;/a&gt; और मैं पुष्टि करता हूं कि मैं 13 साल की उम्र से अधिक हूं।</string>
<string name="welcome_please_wait">कृपया प्रतीक्षा करें हम कुछ चीजें तैयार कर रहे हैं</string>
<string name="use_lbry">लाइब्रेरी का उपयोग करें</string>
<!-- URI bar -->
<string name="uri_placeholder">वीडियोस संगीत और अन्य चीजों को खोजें</string>
<!-- Following page -->
<string name="find_channels_to_follow">फॉलो करने के लिए चैनल्स को खोजें</string>
<string name="channels_you_follow">आपके द्वारा फॉलो किए गए चैनलस</string>
<string name="discover">खोजना</string>
<string name="lbry_works_better">लाइब्रेरी का पूर्ण आनंद लेने के लिए कम से कम 5 क्रिएटर्स को फॉलो करें। अगर आपके पास पहले से ही लाइब्रेरी अकाउंट है तो फॉलो किए हुए क्रिएटर्स को देखने के लिए साइन इन करें।</string>
<string name="select_five_subscriptions">आगे बढ़ने के लिए कृपया 5 रचनाकारों को चुने</string>
<string name="n_remaining">%1$d शेष</string>
<string name="done">पूर्ण</string>
<string name="all">सब</string>
<string name="discover_channels">नए चैनल्स को खोजें</string>
<!-- Claim lists -->
<string name="anonymous">गुमनाम</string>
<!-- File view -->
<string name="tags">टैग्स</string>
<string name="share">शेयर</string>
<string name="repost">रीपोस्ट</string>
<string name="tip">टिप</string>
<string name="edit">एडिट</string>
<string name="delete">हटा‌‌एं</string>
<string name="download">डाउनलोड</string>
<string name="open">खोलें</string>
<string name="report">रिपोर्ट</string>
<string name="loading_decentralized_data">लोडिंग विकेंद्रीकृत डाटा</string>
<string name="related_content">संबंधित सामग्री</string>
<string name="share_lbry_content">लाइब्रेरी सामग्री को शेयर करें</string>
<string name="view">व्यू</string>
<string name="play">प्ले , शुरू करें</string>
<string name="unsupported_content">असमर्थित सामग्री</string>
<string name="unsupported_content_desc">कृपया क्षमा करें लेकिन अभी हम इस सामग्री को ऐप में नहीं दिखा पा रहे हैं आप इस फाइल %1$s को अपने डाउनलोड फोल्डर में देख सकते हैं।</string>
<string name="nothing_at_this_location">यह स्थान खाली है</string>
<string name="publish_something_here">यहां कुछ प्रकाशित करें</string>
<string name="cannot_view_claim">यह सामग्री अभी पहुंच के बाहर है , कृपया थोड़ी देर में पुनः प्रयास करें</string>
<string name="zero_duration">0:00</string>
<string name="claim_file_not_found">यह फाइल इस स्थान \"%1$s\" पर मौजूद नहीं है।</string>
<string name="confirm_purchase">खरीद की पुष्टि करें</string>
<string name="delete_file">फाइल को हटाएं</string>
<string name="confirm_delete_file_message">क्या आप यकीनन इस फाइल को अपनी डिवाइस से हटाना चाहते हैं?</string>
<string name="unable_to_view_url">लोड करने में असफल %1$s. कृपया कुछ देर में प्रयास करें</string>
<string name="no_cast_session_available">इस समय कोई भी कास्ट सेशन उपलब्ध नहीं है</string>
<string name="delete_content">सामग्री को हटाए?</string>
<string name="confirm_delete_content_message">क्या आप वाकई इस सामग्री को अनपब्लिश करना चाहते हैं? कोई भी फाइल आपकी डिवाइस से नहीं हटेगी।</string>
<string name="content_deleted">यह सामग्री सफलतापूर्वक ब्लॉकचेन से हटा दी गई है</string>
<string name="content_failed_delete">यह सामग्री इस समय नहीं हटाई जा सकी है । कृपया कुछ देर बाद फिर प्रयास करें</string>
<plurals name="view_count">
<item quantity="one">%1$s व्यूज़</item>
<item quantity="other">%1$s व्यूज़</item>
</plurals>
<plurals name="confirm_purchase_message">
<item quantity="one">यह खरीदेगा \"%1$s\" इतने %2$s क्रेडिट में।</item>
<item quantity="other">यह खरीदेगा \"%1$s\" इतने%2$s क्रेडिटस में।</item>
</plurals>
<!-- Channel view -->
<string name="no_channel_info">यहां फिलहाल कुछ नहीं है। \n कृपया कुछ देर बाद प्रयास करें</string>
<string name="content">सामग्री</string>
<string name="website">वेबसाइट</string>
<string name="reposted">रीपोस्टेड</string>
<plurals name="follower_count">
<item quantity="one">%1$s अनुयायी</item>
<item quantity="other">%1$s फॉलोअर्स।</item>
</plurals>
<!-- Publish -->
<string name="record">रिकॉर्ड</string>
<string name="take_photo">एक तस्वीर खींचे</string>
<string name="upload_file">एक फाइल अपलोड करें</string>
<string name="no_videos_found">हमें आपकी डिवाइस पर कोई वीडियो नहीं मिला। कृपया एक फोटो खींचे या एक वीडियो रिकॉर्ड करें शुरू करने के लिए</string>
<string name="loading_videos">कृपया प्रतीक्षा करें जब तक हम आपके वीडियो को लोड करते हैं</string>
<string name="storage_permission_rationale_videos">आपकी इमेजेस वीडियोस तथा अन्य फाइल्स को दिखाने और पब्लिश करने हेतु लाइब्रेरी को आपकी आज्ञा की आवश्यकता है।</string>
<string name="camera_permission_rationale_record">वीडियोस रिकॉर्ड करने हेतु लाइब्रेरी को आपके कैमरा को इस्तेमाल करने की आज्ञा चाहिए</string>
<string name="camera_permission_rationale_photo">फोटोस लेने हेतु लाइब्रेरी को आपके कैमरा को इस्तेमाल करने की आज्ञा चाहिए</string>
<string name="edit_content">सामग्री में बदलाव करें</string>
<string name="mature_tags">परिपक्व टैग</string>
<string name="price">मूल्य</string>
<string name="free_publish">आपकी सामग्री निशुल्क होगी। टाॅगल को दबाकर मूल्य निश्चित करें।</string>
<string name="content_address">सामग्री का पता</string>
<string name="randomize">बेतरतीब</string>
<string name="address">पता</string>
<string name="content_address_desc">वह पता जहां लोग आप की सामग्री को ढूंढ पाए (ex. lbry://myvideo)</string>
<string name="license">लाइसेंस</string>
<string name="license_desc">लाइसेंस विवरण</string>
<string name="additional_options">अतिरिक्त विकल्प</string>
<string name="show_extra_fields">कृपया अतिरिक्त क्षेत्र दिखाएं</string>
<string name="hide_extra_fields">अतिरिक्त क्षेत्र छिपाएं</string>
<string name="no_file_found">पब्लिश करने हेतु कोई फाइल नहीं मिली</string>
<string name="video_optimization">वीडियो अनुकूलन</string>
<string name="thumbnail_creation_failed">आपकी सामग्री फाइल से खुद-ब-खुद थंबनेल नहीं बनाया जा सका</string>
<string name="video_being_optimized">सभी प्रकार की डिवाइस इस पर बेहतर रूप से चलने हेतु आपके वीडियो को अनुकूलित किया जा रहा है। इस दौरान आप निम्न रिक्त स्थानों को भर सकते हैं।</string>
<string name="video_optimized">विभिन्न प्रकार की डिवाइसेस पर चलने हेतु आपके वीडियो को सफलतापूर्वक अनुकूलित कर दिया गया है। कृपया अपनी सामग्री को पब्लिश करने हेतु आगे बढ़े।</string>
<string name="video_optimize_failed">आपका वीडियो अनुकूलित नहीं किया जा सका। आपकी फाइल बिना किसी बदलाव के साथ अपलोड कर दी जाएगी</string>
<string name="completed_video_duration">संपूरित वीडियो अवधि: %1$s</string>
<string name="sdk_initializing_publish">आप अभी सामग्री प्रकाशित नहीं कर सकते क्योंकि पृष्ठभूमि सेवाएं अभी आरंभ हो रही हैं</string>
<string name="publish_successful">आपकी सामग्री सफलतापूर्वक प्रकाशित हो गई है। इन्हें ब्लॉकचेन पर प्रदर्शित होने में कुछ समय लग सकता है</string>
<string name="transcode_in_progress">वीडियो अनुकूलन प्रगति में है। अगर आप इसे रोकना चाहते हैं तो पेज के अंत में कैंसिल दबाएं।</string>
<string name="optimization_in_progress">वीडियो अनुकूलन प्रकृति में है</string>
<string name="cannot_capture_video">इस डिवाइस पर वीडियो रिकॉर्ड करने के लिए कोई कैमरा ऐप उपलब्ध नहीं है</string>
<string name="cannot_take_photo">इस डिवाइस पर फोटो लेने के लिए कोई कैमरा ऐप उपलब्ध नहीं है</string>
<string name="please_provide_title">कृपया शीर्षक प्रदान करें</string>
<string name="please_specify_address">कृपया एक निश्चित पता प्रदान करें जहां लोग आपकी सामग्री को देख पाए</string>
<string name="address_invalid_characters">आपकी सामग्री पता में अमान्य वर्ण हैं</string>
<string name="address_already_used">आपने सुनिश्चित सामग्री पता पर पहले ही प्रकाशन कर दिया है। कृपया नया पता दर्ज करें।</string>
<string name="no_file_selected">कोई फाइल नहीं चुनी गई। प्रकाशन से पहले कृपया कोई वीडियो या फोटो अथवा किसी फाइल को चुने।</string>
<string name="price_amount_not_set">कृपया एक कीमत दर्ज करें अथवा टाॅगल को बंद कर अपनी सामग्री निशुल्क करें।</string>
<string name="publish_no_thumbnail">प्रकाशित करने से पहले कृपया एक थंबनेल चुनकर अपलोड करें।</string>
<string name="publish_thumbnail_in_progress">प्रकाशित करने से पहले कृपया थंबनेल को अपलोड हो जाने दे।</string>
<string name="language">भाषा</string>
<string name="english">अंग्रेजी</string>
<string name="chinese">चीनी</string>
<string name="french">फ्रेंच</string>
<string name="german">जर्मन</string>
<string name="japanese">जापानी</string>
<string name="russian">रूसी</string>
<string name="spanish">स्पेनिश</string>
<string name="indonesian">इंडोनेशियाई</string>
<string name="italian">इतालवी</string>
<string name="dutch">डच</string>
<string name="turkish">तुर्की</string>
<string name="polish">पोलिश</string>
<string name="malay">मलायी</string>
<string name="portuguese">पुर्तगाली</string>
<string name="vietnamese">वियतनामी</string>
<string name="thai">थाई</string>
<string name="arabic">अरेबिक</string>
<string name="czech">चेक</string>
<string name="croatian">क्रोएशियन</string>
<string name="cambodian">कंबोडियन</string>
<string name="korean">कोरियन</string>
<string name="norwegian">नॉर्वेजियन</string>
<string name="romanian">रोमानियन</string>
<string name="hindi">हिंदी</string>
<string name="greek">ग्रीक</string>
<string name="none">कोई नहीं</string>
<string name="public_domain">पब्लिक डोमेन</string>
<string name="copyrighted">कॉपीराइटेड</string>
<string name="cca_4_0_international">क्रिएटिव कॉमनस अटरीब्यूशन 4.0 इंटरनेशनल</string>
<string name="cca_sa_4_0_international">क्रिएटिव कॉमनस अटरीब्यूशन- शेयर अलाइक 4.0 इंटरनेशनल</string>
<string name="cca_nd_4_0_international">क्रिएटिव कॉमनस अटरीब्यूशन- नो डेरिवेटिव्स 4.0 इंटरनेशनल</string>
<string name="cca_nc_4_0_international">क्रिएटिव कॉमनस अटरीब्यूशन - नॉन कमर्शियल 4.0 इंटरनेशनल</string>
<string name="cca_nc_sa_4_0_international">क्रिएटिव कॉमनस अटरीब्यूशन - नॉन कमर्शियल-शेयर अलाइक 4.0 इंटरनेशनल</string>
<string name="cca_nc_nd_4_0_international">क्रिएटिव कॉमनस अटरीब्यूशन - नॉन कमर्शियल-नो डेरिवेटिव्स 4.0 इंटरनेशनल</string>
<string-array name="publish_currencies">
<item>एल बी सी</item>
<item>यू एस डी</item>
</string-array>
<!-- Publishes -->
<string name="one_or_more_publishes_failed_abandon">एक या एक से अधिक सामग्री वस्तु इस समय नहीं हटाई जा सकती। कृपया थोड़ी देर बाद फिर प्रयास करें।</string>
<plurals name="confirm_delete_publishes">
<item quantity="one">क्या आप निश्चित रूप से चुनी हुई सामग्री को हटाना चाहते हैं</item>
<item quantity="other">क्या आप निश्चित रूप से चुनी हुए सामग्री को हटाना चाहते हैं?</item>
</plurals>
<plurals name="publishes_deleted">
<item quantity="one">चुनी हुई सामग्री वस्तु सफलतापूर्वक हटा दी गई है</item>
<item quantity="other">चुनी हुई सामग्री वस्तु सफलतापूर्वक हटा दी गई है</item>
</plurals>
<!-- Splash -->
<string name="oops_something_went_wrong">उफ़! कुछ गलत हो गया।</string>
<string name="installation_id_loaded">लोडेड इंस्टॉलेशन आईडी</string>
<string name="known_tags_loaded">लोडेड लोकल नोन और फौलोड टैग्स</string>
<string name="exchange_rate_loaded">लोडेड एलबीसी/युएसडी विनिमय मूल्य</string>
<string name="user_authenticated">प्रमाणिकृत उपभोक्ता</string>
<string name="installation_registered">स्थापन पंजीकृत</string>
<string name="subscriptions_loaded">लोडेड प्रमाणीकरण</string>
<string name="subscriptions_resolved">समाधित प्रमाणीकरण</string>
<!-- Settings -->
<string name="user_interface">सामग्री &amp; उपभोक्ता इंटरफ़ेस</string>
<string name="other">अन्य</string>
<string name="enable_dark_mode">अंधेरी थीम शुरू करें</string>
<string name="show_mature_content">परिपक्व सामग्री दिखाएं</string>
<string name="show_url_suggestions">यू आर एल सुझाव दिखाएं</string>
<string name="notifications">अधिसूचना</string>
<string name="subscriptions">सदस्यता</string>
<string name="content_interests">सामग्री रुचियां</string>
<string name="keep_sdk_in_background">बेहतर वॉलेट और नेटवर्क प्रदर्शन के लिए लाइब्रेरी सेवाओं को पृष्ठभूमि में चलने दें</string>
<string name="participate_in_data_network">डाटा नेटवर्क में भाग लें (इसके लिए ऐप एवं पृष्ठभूमि सेवाओं का पुनः शुरू होना आवश्यक है)</string>
<!-- URL suggestions -->
<string name="search_url_title">%1$s - खोजें</string>
<string name="tag_url_title">%1$s - टैग</string>
<string name="search_url_desc">खोज करें \'%1$s\' के लिए।</string>
<string name="explore_tag_url_desc"> \'%1$s\' टैग का अन्वेषण करें</string>
<string name="view_file_url_desc"> %1$s पर सामग्री को देखें</string>
<string name="view_channel_url_desc">%1$s चैनल को देखें</string>
<!-- Search -->
<string name="search_no_results"> \'%1$s\' के लिए कोई परिणाम नहीं आया है।कृपया दूसरा शब्द दर्ज करें।</string>
<string name="search_no_query">आप किसी भी चीज की खोज कर सकते हैं जैसे की मूवीज़ , संगीत, ई बुक्स, सॉफ्टवेयर और बहुत कुछ।</string>
<string name="no_related_content">इस समय कोई भी संबंधित सामग्री दिखाने के लिए नहीं है</string>
<!-- Wallet -->
<string name="balance">बैलेंस</string>
<string name="you_currently_have">आपके पास अभी है</string>
<string name="convert_credits"> आप अपने क्रेडिटस को यूसडी में बदल सकते हैं और उन्हें एक्सचेंज की मदद से निकाल भी सकते हैं। &lt;a href=\"https://lbry.com/faq/exchanges\"&gt;Learn more&lt;/a&gt;.</string>
<string name="convert_credits_bittrex">&lt;a href=\"https://bittrex.com/Account/Register?referralCode=4M1-P30-BON\"&gt; क्रेडिटस को यूसडी में बदलें बिट्रिक्स पर&lt;/a&gt;</string>
<string name="you_also_have"> आपके पास और भी है</string>
<string name="you_staked">आपने स्टेक की है</string>
<string name="in_tips">टिप्स में</string>
<string name="in_your_publishes">आपकी पब्लिशिस में हैं</string>
<string name="in_your_supports">आपके सपोर्ट्स में हैं</string>
<string name="earn_more_tips">मनोरंजक वीडियोस अपलोड करके और अधिक टिप्स कमाए</string>
<string name="sdk_initializing">पृष्ठभूमि सेवाएं शुरू हो रही है</string>
<string name="sdk_still_initializing">पृष्ठभूमि सेवाएं अभी भी शुरू हो रही है। इस दौरान आप अन्य सामग्री को खोज एवं देख सकते हैं।</string>
<string name="sdk_initializing_functionality">आप यह अभी नहीं कर सकते हैं क्योंकि पृष्ठभूमि सेवाएं अभी भी शुरू हो रही है</string>
<string name="backup_synced">आपके वॉलेट का एक बैक आप लाइब्रेरी टीवी के साथ पूर्णतया सिंक है</string>
<string name="backup_notsynced">आपका वॉलेट लाइब्रेरी टीवी के साथ पूर्ण रूप से सिंक नहीं है। अपने वॉलेट के बैक अप के लिए आप खुद जिम्मेदार हैं</string>
<string name="synced_what_does_this_mean">&lt;a href=\"https://lbry.com/faq/account-sync\"&gt;What does this mean?&lt;/a&gt;</string>
<string name="backup_what_does_this_mean">&lt;a href=\"https://lbry.com/faq/how-to-backup-wallet#android\"&gt;What does this mean?&lt;/a&gt;</string>
<string name="receive_credits">क्रेडिटस प्राप्त करें</string>
<string name="use_this_address_hint">किसी अन्य उपयोगकर्ता (या स्वयं) द्वारा भेजे गए क्रेडिट प्राप्त करने के लिए इस वॉलेट पते का उपयोग करें</string>
<string name="get_new_address">नया पता प्राप्त करें</string>
<string name="generate_address_hint">आप किसी भी समय एक नया पता तैयार कर सकते हैं, और किसी भी पिछले पते पर काम करना जारी रखेंगे। कई पतों का उपयोग करना कई स्रोतों से आने वाले भुगतानों पर नज़र रखने के लिए मददगार हो सकता है</string>
<string name="send_credits">क्रेडिट भेजें</string>
<string name="recipient_address">प्राप्तकर्ता का पता</string>
<string name="recipient_address_placeholder">bbFxRyXXXXXXXXXXXZD8nE7XTLUxYnddTs</string>
<string name="amount">रकम</string>
<string name="send">भेजें</string>
<string name="recent_transactions">हाल के लेनदेन</string>
<string name="view_all">सब दिखाओ</string>
<string name="receive">प्राप्त करना</string>
<string name="spend">व्यय , खर्च</string>
<string name="publish">प्रकाशित करना</string>
<string name="support">समर्थन</string>
<string name="abandon">त्याग देना</string>
<string name="channel">चैनल</string>
<string name="channel_update">चैनल नवीनीकरण</string>
<string name="publish_update">नवीनीकरण प्रकाशन</string>
<string name="wallet_sync">वॉलेट सिंक</string>
<string name="sync_status">सिंक की स्थिति</string>
<string name="on">चालू</string>
<string name="off">बंद</string>
<string name="email">ईमेल</string>
<string name="no_connected_email">अनुपलब्ध ईमेल</string>
<string name="manual_backup">&lt;a href=\"https://lbry.com/faq/how-to-backup-wallet#android\"&gt;Manual backup&lt;/a&gt;</string>
<string name="sync_faq">&lt;a href=\"https://lbry.com/faq/how-to-backup-wallet#sync\"&gt;Sync FAQ&lt;/a&gt;</string>
<string name="zero">0</string>
<string name="lbc">एलबीसी</string>
<string name="account_recommended">खाता अनुशंसनीय है</string>
<string name="wallet_account_desc">एक lbry.tv खाता आपको इनाम अर्जित करने, अपने वॉलेट का बैकअप लेने और सब कुछ सिंक में रखने की अनुमति देता है</string>
<string name="wallet_without_account">एक खाते के बिना, आप अपने वॉलेट और LBRY डेटा को सुरक्षित करने के लिए सभी जिम्मेदारी लेते हैं</string>
<string name="skip_account">खाता छोड़ें</string>
<string name="sign_up">साइन अप करें</string>
<string name="address_copied">पता कॉपी किया गया</string>
<string name="invalid_recipient_address">क्रेडिटस भेजने के लिए एक मान्य पता दर्ज करें</string>
<string name="insufficient_balance">अपर्याप्त बैलेंस</string>
<string name="invalid_amount">कृपया वैध मूल्य दर्ज करें</string>
<string name="send_credit_error">आपके क्रेडिट इस समय नहीं भेजे जा सके हैं। कृपया कुछ देर बाद फिर प्रयास करें।</string>
<string name="loading_transactions">लेन-देन लोड हो रहे हैं ...</string>
<string name="no_recent_transactions">दिखाने के लिए हाल के कोई भी लेनदेन नहीं है</string>
<string name="no_transactions">दिखाने के लिए इस समय कोई भी लेनदेन नहीं है</string>
<string name="tx_list_fee">फी %1$s</string>
<string name="transaction_history">लेन-देन का इतिहास।</string>
<string name="unlock">खोलें</string>
<string name="unlock_tips">टिप्स को खोलें?</string>
<string name="confirm_unlock_tips">क्या आप निश्चित रूप से अपनी सारी टिप्स खोलना चाहते हैं?</string>
<plurals name="you_sent_credits">
<item quantity="one">आपने भेजे हैं %1$s क्रेडिट</item>
<item quantity="other">आपने भेजे हैं %1$s क्रेडिटस</item>
</plurals>
<!-- Dialogs -->
<string name="customize_your_tags">अपने टैग्स को अनुकूलित करें</string>
<string name="sort_content_by">सामग्री को क्रमबद्ध तरीके से बांटे</string>
<string name="content_from">के द्वारा सामग्री</string>
<string name="trending_content">रुझान वाली सामग्री</string>
<string name="new_content">नई सामग्री</string>
<string name="top_content">शीर्ष सामग्री</string>
<string name="trending">ट्रेंडिंग</string>
<string name="top">ऊपर</string>
<string name="new_text">नया</string>
<string name="past_24_hours">पिछले 24 घंटे</string>
<string name="past_week">पिछले सप्ताह</string>
<string name="past_month">पिछला महीना</string>
<string name="past_year">पिछला साल</string>
<string name="all_time">आज तक का</string>
<string name="from">से</string>
<string name="for_text">के लिये</string>
<string name="filter_for">के लिए फ़िल्टर करें</string>
<string name="everyone">हर कोई</string>
<string name="tags_you_follow">टैग्स जिन्हें आप फॉलो करते हैं</string>
<string name="customize">अनुकूलित करना</string>
<string name="not_yet_implemented">चुना हुआ व्यू अभी उपलब्ध नहीं है</string>
<string name="customize_tags_hint">ऐसा लगता है कि आपने अभी तक किसी भी टैग को फॉलो नहीं किया है</string>
<string name="search_for_more_tags">और टैग्स की खोज करें</string>
<string name="no_followed_tags">आपने अभी किसी भी टैग को फॉलो नहीं किया है। अपनी रुचि अनुसार टैग्स को जोड़ें।</string>
<string name="no_tag_results">आपके द्वारा ना फॉलो किए गए नए टैग हम नहीं ढूंढ पाए।</string>
<string name="tag_already_added">यह \'%1$s\' टैग पहले से ही जोड़ा जा चुका है</string>
<string name="tag_limit_reached">आप 5 से ज्यादा टैग नहीं जोड़ सकते हैं</string>
<string name="send_a_tip">एक टिप भेजें</string>
<string name="send_a_tip_to"> %1$s को एक टिप भेजें</string>
<string name="send_tip_info_content">यह %1$s, के लिए एक टिप के रूप में दिखाई देगा और यह इसके खोजे जाने की क्षमता को बढ़ाएगा। &lt;a href=\"https://lbry.com/faq/tipping\"&gt;Learn more&lt;/a&gt;.</string>
<string name="send_tip_info_channel">यह %1$s, के लिए एक टिप के रूप में दिखाई देगा और यह चैनल के खोजे जाने की संभावना को बढ़ाएगा। &lt;a href=\"https://lbry.com/faq/tipping\"&gt;Learn more&lt;/a&gt;.</string>
<string name="cancel">रद्द करें</string>
<string name="repost_title">रीपोस्ट %1$s</string>
<string name="repost_your_favorite">अपनी पसंदीदा सामग्री को रीपोस्ट करें ताकि और भी लोग उन्हें खोज पाएं</string>
<string name="channel_to_post_on">पोस्ट करने के लिए चैनल</string>
<string name="show_advanced">और उन्नत दिखाईए</string>
<string name="hide_advanced">और उन्नत छुपाइए</string>
<string name="name">नाम</string>
<string name="min_deposit">0.001</string>
<string name="content_successfully_reposted">सामग्री सफलतापूर्वक रीपोस्ट कर दी गई है</string>
<string name="repost_name_invalid_characters">रीपोस्ट नाम में कुछ अमान्य प्रतीक चिन्ह हैं</string>
<plurals name="you_sent_a_tip">
<item quantity="one">आपने%1$s क्रेडिट टिप के रूप में भेजे हैं, धन्यवाद !</item>
<item quantity="other">आपने %1$s क्रेडिटस टिप के रूप मेंं भेजे हैं। धन्यवाद !</item>
</plurals>
<!-- Verification -->
<string name="provide_email_address">कृपया एक ईमेल एड्रेस प्रदान करें</string>
<string name="email_placeholder">you@example.com</string>
<string name="email_sent_to">एक ईमेल भेजी गई है इन्हें</string>
<string name="please_click_link">साइन इन पूरा करने के लिए कृपया संदेश के लिंक पर क्लिक करें</string>
<string name="resend">पुन: भेजें</string>
<string name="continue_text">जारी रखें</string>
<string name="provide_valid_email">कृपया एक वैध ईमेल एड्रेस दर्ज करें</string>
<string name="please_follow_instructions">जारी रखने के लिए कृपया अपने पते पर भेजे गए ईमेल के निर्देशों का पालन करें</string>
<string name="sign_in_successful">लाइब्रेरी टीवी में आपने सफलतापूर्वक साइन इन कर लिया है</string>
<string name="retrieving_account_information">आपके खाते की जानकारी पुनः प्राप्त की जा रही है</string>
<string name="apply_wallet_data">वॉलेट डेटा संप्रायोजित हो रहा है ...</string>
<string name="please_enter_your_password">कृपया वह पासवर्ड डालें जो आपने अपने वॉलेट को सुरक्षित करने के लिए उपयोग किया था</string>
<string name="please_enter_a_password">कृपया अपना खाता सुरक्षित करने के लिए एक पासवर्ड दर्ज करें</string>
<string name="wallet_security_purposes">नोट: वॉलेट सुरक्षा उद्देश्यों के लिए, LBRY आपका पासवर्ड रीसेट करने में असमर्थ है</string>
<string name="password">पासवर्ड</string>
<string name="enable_sync">सिंक शुरू करें</string>
<string name="wallet_sync_op_failed">इस समय वॉलेट सिंक कार्य पूरा नहीं किया जा सका है। कृपया कुछ देर बाद प्रयास करें। अगर यह समस्या बनी रहती है तो कृपया एक मेल hello@lbry.com पर भेजें।</string>
<string name="phone_number">फोन नंबर</string>
<string name="enter_phone_number">कृपया अपना फोन नंबर दर्ज करें</string>
<string name="not_interested">रुचि नहीं है</string>
<string name="manual_reward_verification">स्वतः इनाम सत्यापन</string>
<string name="account_undergo_review">इनाम कार्यक्रम में भाग लेने के लिए इस खाते को रिव्यू से गुजरना होगा। इसमें कई मिनट या कई दिन भी लग सकते हैं।</string>
<string name="request_to_be_verified">अगर आप निरंतर यह मैसेज देख रहे हैं तो आप सत्यापन के लिए एक निवेदन यहां भेजें &lt;a href=\"https://discordapp.com/invite/Z3bERWA\"&gt;LBRY Discord server&lt;/a&gt;.</string>
<string name="enjoy_free_content">इस दौरान निशुल्क सामग्री का आनंद उठाएं</string>
<string name="verify_phone_number">फोन नंबर को सत्यापित करें</string>
<string name="enter_phone_verify_code"> %1$s इस पर भेजा हुआ सत्यापन कोड दर्ज करें</string>
<string name="code_placeholder">0000</string>
<string name="verify">सत्यापित</string>
<string name="please_enter_valid_phone">कृपया एक वैध फोन नंबर दर्ज करें</string>
<string name="please_enter_verification_code">अपने फोन नंबर पर भेजे गए सत्यापन कोड को दर्ज करें</string>
<!-- Forms -->
<string name="no_added_tags">आपने अभी तक कोई भी टैक्स नहीं जोड़े हैं। खोजे जाने की संभावना बढ़ाने के लिए टैक्स जोड़ें।</string>
<string name="form_no_tag_results">हम नए टैक्स ढूंढने में असमर्थ रहे हैं जो कि अभी तक नहीं जोड़े गए।</string>
<!-- Channels -->
<string name="no_channel_created">आपने कोई चैनल नहीं बनाया है। \n अब नया चैनल बनाकर शुरुआत करें!</string>
<string name="create_a_channel">एक चैनल बनाएं</string>
<string name="create_a_channel_item">एक चैनल बनाएं...</string>
<string name="edit_channel">चैनल को संपादित करें</string>
<string name="delete_selection">चुनी हुई चीज को हटाए?</string>
<string name="delete_channel">चैनल को हटाएं ?</string>
<string name="confirm_delete_channel">क्या आप निश्चित रूप से चैनल को हटाना चाहते हैं?</string>
<string name="channel_deleted">चैनल सफलतापूर्वक हटा दिया गया है</string>
<string name="channel_failed_delete">यह चैनल इस समय नहीं हटाया जा सका है। कृपया कुछ देर बाद फिर प्रयास करें।</string>
<string name="description">विवरण</string>
<string name="yes">हाँ</string>
<string name="no">नहीं</string>
<string name="show_optional_fields">वैकल्पिक क्षेत्र दिखाएं </string>
<string name="hide_optional_fields">वैकल्पिक क्षेत्र छिपाएँ</string>
<string name="save">सहेजें</string>
<string name="channel_name">चैनल का नाम</string>
<string name="title">शीर्षक</string>
<string name="at">\@</string>
<string name="deposit">जमा करो</string>
<string name="deposit_remains_yours">यह LBC आपकी ही रहेगी। यह नाम आरक्षित करने के लिए जमा है और किसी भी समय पूर्ववत किया जा सकता है</string>
<string name="storage_permission_rationale_download">आपकी डिवाइस पर सामग्री डाउनलोड करने हेतु लाइब्रेरी को आपकी आज्ञा की आवश्यकता है</string>
<string name="storage_permission_rationale_images">आपकी डिवाइस स्टोरेज से इमेज को लोड करने के लिए लाइब्रेरी को आपकी आज्ञा की आवश्यकता है</string>
<string name="select_thumbnail">थंबनेल चुने</string>
<string name="select_cover">कवर इमेज चुनें</string>
<string name="undetermined_image_filepath">चुनी हुई इमेज का फाइल पथ निर्धारित नहीं हो पा रहा है। किसी अन्य स्थान से इमेज को चुने।</string>
<string name="wait_for_upload">वर्तमान अपलोड के समाप्त होने तक प्रतीक्षा करें</string>
<string name="image_upload_failed">इमेज अपलोड निवेदन विफल रहा। कृपया फिर प्रयास करें।</string>
<string name="uploading">अपलोडिंग...</string>
<string name="please_enter_channel_name">कृपया एक चैनल का नाम दर्ज करें</string>
<string name="channel_name_invalid_characters">आपके चैनल के नाम में अमान्य वर्ण हैं</string>
<string name="channel_name_already_created">आपने इसी नाम से पहले ही एक चैनल बना लिया है</string>
<string name="please_enter_valid_deposit">कृपया एक वैध डिपाॅजिट मूल्य दर्ज करें</string>
<string name="deposit_more_than_balance">डिपॉजिट आपके बैलेंस से ज्यादा नहीं हो सकता</string>
<string name="channel_save_failed">चैनल सेव विनती विफल रही। कृपया फिर प्रयास करें।</string>
<string name="channel_save_successful">चैनल सफलतापूर्वक सेव हो गया है।</string>
<string name="item_pending_blockchain">आप का दावा अभी ब्लॉकचेन पर लंबित है। आप कुछ देर बाद अपने दावे को एक्सेस एवं संपादित कर सकेंगे।</string>
<string name="pending">विचाराधीन</string>
<string name="create">सर्जन करना</string>
<string name="one_or_more_channels_failed_abandon">एक या एक से अधिक चैनल्स इस समय नहीं हटाए जा सकते। कृपया थोड़ी देर बाद फिर प्रयास करें।</string>
<plurals name="min_deposit_required">
<item quantity="one">%1$s क्रेडिट का न्यूनतम डिपाजिट अपेक्षित है</item>
<item quantity="other">%1$s क्रेडिट्स का न्यूनतम डिपाजिट अपेक्षित है</item>
</plurals>
<plurals name="confirm_delete_channels">
<item quantity="one">क्या आप निश्चित रूप से चुने हुए चैनल को हटाना चाहते हैं</item>
<item quantity="other">क्या आप निश्चित रूप से चुने हुए चैनल्स को हटाना चाहते हैं</item>
</plurals>
<plurals name="channels_deleted">
<item quantity="one">चैनल सफलतापूर्वक हटा दिया गया है</item>
<item quantity="other">चैनल्स सफलतापूर्वक हटा दिए गए हैं।</item>
</plurals>
<!-- Rewards -->
<string name="lbry_credits_allow">लाइब्रेरी क्रेडिटस आपको कंटेंट खरीदने एवं पब्लिश करने का अधिकार देते हैं</string>
<string name="free_credits_worth">ईमेल एड्रेस देने के बाद आप $%1$s तक का मुफ्त क्रेडिटस पा सकते हैं।</string>
<string name="rewards_learn_more">&lt;a href=\"https://lbry.com/faq/earn-credits\"&gt;Learn more&lt;/a&gt;.</string>
<string name="get_started">शुरू हो जाइए</string>
<string name="reward_code_placeholder">abc123</string>
<string name="claim">दावा</string>
<string name="please_enter_claim_code">क्लेम करने हेतु कृपया कस्टम इनाम कोड दर्ज करें।</string>
<string name="unclaimed">लावारिस</string>
<string name="custom_reward_title">कस्टम कोड</string>
<string name="up_to">यहां तक</string>
<string name="custom_reward_description">क्या आप एक सुपरमॉडल या रॉकस्टार हैं जिसे यह कस्टम इनाम कोड मिला है? यहां क्लेम करें।</string>
<plurals name="claim_reward_message">
<item quantity="one">आपने %1$s क्रेडिट इनाम के रूप मेंं क्लेम किए हैं।</item>
<item quantity="other">आपने%1$s क्रेडिटस इनाम के रूप में क्लेम किए हैं।</item>
</plurals>
<plurals name="available_credits">
<item quantity="one">%1$s उपलब्ध क्रेडिट</item>
<item quantity="other">%1$s उपलब्ध क्रेडिटस</item>
</plurals>
<!-- Reward drivers -->
<string name="publishing_requires_credits">प्रकाशन हेतु क्रेडिटस की आवश्यकता होती है।</string>
<string name="channel_creation_requires_credits">चैनल निर्माण के लिए क्रेडिट्स की आवश्यकता होती है।</string>
<string name="earn_rewards_for_inviting">अपने दोस्तों को आमंत्रित करने के बदले में इनाम जीते।</string>
<string name="earn_some_credits_to_access">इस कंटेंट को देखने के लिए कुछ क्रेडिटस कमाऐ।</string>
<string name="tap_here_to_get_some">मुफ्त में कुछ पाने के लिए यहां टैप करें</string>
<string name="free_credits_available">रिवॉर्डस में मुफ्त क्रेडिटस उपलब्ध हैं</string>
<plurals name="wallet_signed_in_free_credits">
<item quantity="one">%1$s मुफ़्त क्रेडिट रिवार्ड्स में उपलब्ध है।</item>
<item quantity="other">%1$s मुफ़्त क्रेडिटस रिवार्ड्स में उपलब्ध हैं।</item>
</plurals>
<plurals name="wallet_get_free_credits">
<item quantity="one">खाता बनाने के बाद%1$s मुफ्त क्रेडिट प्राप्त करें।</item>
<item quantity="other">खाता बनाने के बाद %1$s मुफ्त क्रेडिटस प्राप्त करें।</item>
</plurals>
<!-- Invites -->
<string name="lbry_invite_program">LBRY आमंत्रण कार्यक्रम</string>
<string name="earn_extra_credits_invites">लाइब्रेरी पर हर इंसान को आमंत्रित करने के बदले में आप और अधिक क्रेडिटस कमा सकते हैं।</string>
<string name="invites_learn_more">&lt;a href=\"https://lbry.com/faq/invites\"&gt;Learn more&lt;/a&gt;.</string>
<string name="invite_link">आमंत्रण लिंक</string>
<string name="share_this_link">इस लिंक को अपने दोस्तों के साथ शेयर करें (या दुश्मनों के साथ) और जब वे lbry.tv ज्वाइन करें तब क्रेडिटस पाएं।</string>
<string name="your_invite_link">आपका आमंत्रण लिंक</string>
<string name="customize_invite_link">आमंत्रण लिंक को अनुकूलित करें</string>
<string name="invite_by_email">ईमेल के द्वारा आमंत्रित करें</string>
<string name="invite_someone">अपने परिचित व्यक्ति को ईमेल के द्वारा आमंत्रित करें और उनके lbry.tv ज्वाइन करने पर क्रेडिट कमाएं।</string>
<string name="invite_email_placeholder">imaginary@friend.com</string>
<string name="invite">आमंत्रण</string>
<string name="invite_history">आमंत्रण इतिहास</string>
<string name="earn_credits_for_inviting">क्रेडिट्स कमाए जब भी आप आमंत्रित करेंगे अपने दोस्त को, दुश्मन को, दोस्ती वाले दुश्मन को या दुश्मनी वाले दोस्त को। आखिर हर किसी को कंटेंट की आजादी चाहिए।</string>
<string name="reward">पुरस्कार</string>
<string name="claimed">किया हुआ दावा</string>
<string name="claimable">दावा योग्य</string>
<string name="unclaimable">अयोग्य दावे </string>
<string name="invite_link_copied">आमंत्रण लिंक काॅपीड़</string>
<string name="invite_sent_to">%1$s पर आमंत्रण भेज दिया है</string>
<!-- Library -->
<string name="downloads">डाउनलोडस</string>
<string name="purchases">खरीदारी</string>
<string name="history">इतिहास</string>
<string name="library_no_downloads">आपने इस उपकरण पर कोई भी सामग्री डाउनलोड नहीं की है।</string>
<string name="library_no_history">आपने इस उपकरण पर कोई भी सामग्री नहीं देखी है।</string>
<string name="library_no_purchases">आपने अपने खाते पर कोई भी सामग्री नहीं खरीदी है।</string>
<string name="hide">छुपाएं</string>
<string name="stats">आँकड़े</string>
<string name="video">वीडियो</string>
<string name="audio">ऑडियो</string>
<string name="images">इमेजेस</string>
<string name="mb">एमबी</string>
<string name="kb">केबी</string>
<string name="gb">जीबी</string>
<string name="zero_mb">0एमबी</string>
<plurals name="confirm_delete_files">
<item quantity="one">क्या आप यकीनन इस चुनी हुई फाइल को अपनी डिवाइस से हटाना चाहते हैं?</item>
<item quantity="other">क्या आप यकीनन इस चुनी हुई फाइल्स को अपनी डिवाइस से हटाना चाहते हैं?</item>
</plurals>
<plurals name="files_deleted">
<item quantity="one">फाइल सफलतापूर्वक हटा दी गई है</item>
<item quantity="other">फाइल्स सफलतापूर्वक हटा दी गई है</item>
</plurals>
<!-- About -->
<string name="about_lbry">लाइब्रेरी के बारे में</string>
<string name="content_freedom">सामग्री स्वतंत्रता</string>
<string name="about_paragraph">LBRY एक मुक्त, खुला और समुदाय संचालित डिजिटल बाज़ार है। यह एक विकेन्द्रीकृत सहकर्मी से सहकर्मी सामग्री वितरण मंच है जो रचनाकारों को सामग्री अपलोड और साझा करने के लिए और उनके प्रयास के लिए LBRY क्रेडिट अर्जित करता है। उपयोगकर्ता वीडियो, संगीत, ई-बुक्स और अन्य डिजिटल सामग्री का चयन कर पाएंगे, जिसमें वे रुचि रखते हैं</string>
<string name="get_social">सामाजिक बनें</string>
<string name="social_paragraph">आप LBRY टीम और समुदाय के सदस्यों के साथ Discord, Facebook, Instagram, Twitter या Reddit पर बातचीत कर सकते हैं</string>
<string name="app_info">एप्लिकेशन की जानकारी</string>
<string name="loading">लोडिंग...</string>
<string name="about_link_what_is_lbry">&lt;a href=\"https://lbry.com/faq/what-is-lbry\"&gt;What is LBRY?&lt;/a&gt;</string>
<string name="about_link_android_basics">&lt;a href=\"https://lbry.com/faq/android-basics\"&gt;Android Basics&lt;/a&gt;</string>
<string name="about_link_faq">&lt;a href=\"https://lbry.com/faq\"&gt;FAQ&lt;/a&gt;</string>
<string name="about_link_discord">&lt;a href=\"https://discordapp.com/invite/Z3bERWA\"&gt;Discord&lt;/a&gt;</string>
<string name="about_link_facebook">&lt;a href=\"https://www.facebook.com/LBRYio\"&gt;Facebook&lt;/a&gt;</string>
<string name="about_link_instagram">&lt;a href=\"https://www.instagram.com/LBRYio\"&gt;Instagram&lt;/a&gt;</string>
<string name="about_link_reddit">&lt;a href=\"https://reddit.com/r/lbry\"&gt;Reddit&lt;/a&gt;</string>
<string name="about_link_telegram">&lt;a href=\"https://t.me/lbryofficial\"&gt;Telegram&lt;/a&gt;</string>
<string name="about_link_twitter">&lt;a href=\"https://twitter.com/LBRYio\"&gt;Twitter&lt;/a&gt;</string>
<string name="update_mailing_preferences">मेलिंग प्राथमिकताएँ अपडेट करें</string>
<string name="app_version">एप्लिकेशन वर्ज़न</string>
<string name="lbry_sdk">LBRY एसडीके</string>
<string name="platform">मंच</string>
<string name="installation_id">स्थापना आईडी</string>
<string name="firebase_token">फायरबेस टोकन</string>
<string name="logs">लॉग्स</string>
<string name="send_log">लॉग भेजें</string>
<string name="connected_email">जुड़ा हुआ ईमेल</string>
<string name="unknown">अज्ञात</string>
<string name="cannot_find_lbrynet_log"> lbrynet.log फाइल नहीं ढूंढी जा सकी।</string>
<string name="cannot_share_lbrynet_log">lbrynet.log फाइल शेयर नहीं की जा सकती क्योंकि इसकी अनुमति नहीं है।</string>
<!-- Font Awesome -->
<string name="fa_gift">&#xf06b;</string>
<string name="fa_lock">&#xf023;</string>
<string name="fa_coins">&#xf51e;</string>
<string name="fa_file">&#xf15b;</string>
<string name="fa_hashtag">&#xf292;</string>
<string name="fa_search">&#xf002;</string>
<string name="fa_at">&#xf1fa;</string>
<string name="fa_heart">&#xf004;</string>
<string name="fa_heart_broken">&#xf7a9;</string>
<string name="fa_star">&#xf005;</string>
<string name="fa_globe_americas">&#xf57d;</string>
<string name="fa_upload">&#xf093;</string>
<string name="fa_download">&#xf019;</string>
<string name="fa_cloud_upload">&#xf382;</string>
<string name="fa_wallet">&#xf555;</string>
<string name="fa_award">&#xf559;</string>
<string name="fa_user_friends">&#xf500;</string>
<string name="fa_cog">&#xf013;</string>
<string name="fa_mobile_alt">&#xf3cd;</string>
<string name="fa_repost">&#xf079;</string>
<string name="fa_folder_open">&#xf07c;</string>
</resources>
+585
View File
@@ -0,0 +1,585 @@
<resources>
<string name="app_name">LBRY</string>
<string name="navigation_drawer_open">Navigatiemenu openen</string>
<string name="navigation_drawer_close">Navigatiemenu sluiten</string>
<!-- Nav menu -->
<string name="find_content">Vind Content</string>
<string name="your_content">Uw Content</string>
<string name="wallet">Portemonnee</string>
<string name="following">Volgend</string>
<string name="editors_choice">Bewerkers Keuze</string>
<string name="your_tags">Uw labels</string>
<string name="all_content">Alle Content</string>
<string name="channels">Kanalen</string>
<string name="library">Bibliotheek</string>
<string name="publishes">Publicaties</string>
<string name="new_publish">Nieuwe Publicatie</string>
<string name="rewards">Beloningen</string>
<string name="invites">Uitnodigingen</string>
<string name="settings">Instellingen</string>
<string name="about">Over</string>
<string name="sign_in">Inloggen</string>
<string name="startup_failed">Het opstarten van de applicatie is mislukt. Controleer uw gegevensverbinding en probeer het opnieuw. Als dit probleem zich blijft voordoen, stuur dan een e-mail naar hello@lbry.com</string>
<string name="no_claim_search_content">Geen inhoud om op dit moment weer te geven. Verfijn uw selectie of kom later terug.</string>
<!-- Welcome Page -->
<string name="welcome_to_lbry">Welkom bij LBRY.</string>
<string name="welcome_paragraph">LBRY is een door de gemeenschap gecontroleerd inhoudsplatform waar u video\'s, muziek, boeken en meer kunt vinden en publiceren.</string>
<string name="welcome_tos">Door verder te gaan, ga ik akkoord met &lt;a href=\"https://lbry.com/termsofservice\"&gt;Servicevoorwaarden&lt;/a&gt; en bevestig ik dat ik ouder ben dan 13 jaar.</string>
<string name="welcome_please_wait">Wacht alstublieft terwijl we dingen gereed maken...</string>
<string name="use_lbry">Gebruik LBRY »</string>
<!-- URI bar -->
<string name="uri_placeholder">Doorzoek films, muziek, en meer</string>
<!-- Following page -->
<string name="find_channels_to_follow">Zoek kanalen om te volgen</string>
<string name="channels_you_follow">Kanalen die u volgt</string>
<string name="discover">Ontdek</string>
<string name="lbry_works_better">LBRY werkt beter als u minstens 5 makers volgt die u leuk vindt. Log in om videomakers te laten zien die u volgt als u al een account hebt.</string>
<string name="select_five_subscriptions">Selecteer maximaal 5 makers om door te gaan.</string>
<string name="n_remaining">%1$d meer...</string>
<string name="done">Klaar</string>
<string name="all">Alle</string>
<string name="discover_channels">Ontdek nieuwe kanalen</string>
<!-- Claim lists -->
<string name="anonymous">Anoniem</string>
<!-- File view -->
<string name="tags">Labels</string>
<string name="share">Deel</string>
<string name="repost">Plaats opnieuw</string>
<string name="tip">Fooi</string>
<string name="edit">Bewerk</string>
<string name="delete">Verwijder</string>
<string name="download">Download</string>
<string name="open">Open</string>
<string name="report">Rapporteren</string>
<string name="loading_decentralized_data">Gedecentraliseerde gegevens laden...</string>
<string name="related_content">Gerelateerde Content</string>
<string name="share_lbry_content">Deel LBRY content</string>
<string name="view">Bekijk</string>
<string name="play">Afspelen</string>
<string name="unsupported_content">Niet-ondersteunde Content</string>
<string name="unsupported_content_desc">We kunnen deze inhoud helaas niet weergeven in de applicatie. U vindt het bestand %1$s in uw download map.</string>
<string name="nothing_at_this_location">Er is niets op deze locatie.</string>
<string name="publish_something_here">Publiceer hier iets</string>
<string name="cannot_view_claim">Deze inhoud is op dit moment niet toegankelijk. Probeer het later opnieuw.</string>
<string name="zero_duration">0:00</string>
<string name="claim_file_not_found">Het bestand \"%1$s\" bestaat niet.</string>
<string name="confirm_purchase">Bevestig Aankoop</string>
<string name="delete_file">Verwijder bestand</string>
<string name="confirm_delete_file_message">Weet u zeker dat u dit bestand van uw apparaat wilt verwijderen?</string>
<string name="unable_to_view_url">%1$s kan niet worden geladen. Probeer het later opnieuw.</string>
<string name="no_cast_session_available">Er is op dit moment geen castsessie beschikbaar.</string>
<string name="delete_content">Verwijder content?</string>
<string name="confirm_delete_content_message">Weet u zeker dat u de publicatie van deze inhoud ongedaan wilt maken? Er worden geen bestanden van uw apparaat verwijderd.</string>
<string name="content_deleted">De inhoud is met succes verwijderd van de blockchain.</string>
<string name="content_failed_delete">De inhoud kan op dit moment niet worden verwijderd. Probeer het later opnieuw.</string>
<plurals name="view_count">
<item quantity="one">%1$s weergave</item>
<item quantity="other">%1$s weergaven</item>
</plurals>
<plurals name="confirm_purchase_message">
<item quantity="one">Hiermee wordt \"%1$s\" gekocht voor %2$s credit</item>
<item quantity="other">Hiermee wordt \"%1$s\" gekocht voor %2$s credits</item>
</plurals>
<!-- Channel view -->
<string name="no_channel_info">Er is hier nog niets.\nKom later nog eens terug.</string>
<string name="content">Content</string>
<string name="website">Website</string>
<string name="reposted">Opnieuw geplaatst</string>
<plurals name="follower_count">
<item quantity="one">%1$svolger</item>
<item quantity="other">%1$s volgers</item>
</plurals>
<!-- Publish -->
<string name="record">Opnemen</string>
<string name="take_photo">Neem een Foto</string>
<string name="upload_file">Upload een bestand</string>
<string name="no_videos_found">We konden geen video\'s op uw apparaat vinden. Neem een foto of neem een video op om te starten.</string>
<string name="loading_videos">Wacht alstublieft terwijl we uw foto\'s laden...</string>
<string name="storage_permission_rationale_videos">LBRY heeft toegang nodig om uw video\'s, afbeeldingen en andere bestanden vanaf uw apparaat te kunnen weergeven en publiceren.</string>
<string name="camera_permission_rationale_record">LBRY heeft toegang tot uw camera nodig om video\'s op te nemen.</string>
<string name="camera_permission_rationale_photo">LBRY heeft toegang tot uw camera nodig om foto\'s te maken.</string>
<string name="edit_content">Bewerk content</string>
<string name="mature_tags">Volwassenen labels</string>
<string name="price">Prijs</string>
<string name="free_publish">Uw content is gratis. Druk op de schakelaar om een prijs in te stellen.</string>
<string name="content_address">Content adres</string>
<string name="randomize">Willekeurig</string>
<string name="address">Adres</string>
<string name="content_address_desc">Het adres waar mensen uw content kunnen vinden (bijv: lbry://myvideo)</string>
<string name="license">Licentie</string>
<string name="license_desc">Licentiebeschrijving</string>
<string name="additional_options">Additionele Opties</string>
<string name="show_extra_fields">Weergeef extra velden</string>
<string name="hide_extra_fields">Verberg extra velden</string>
<string name="no_file_found">Geen bestand gevonden om te publiceren.</string>
<string name="video_optimization">Video optimalisatie</string>
<string name="thumbnail_creation_failed">Er kan niet automatisch een miniatuur worden gemaakt op basis van uw inhoudsbestand.</string>
<string name="video_being_optimized">Uw video wordt geoptimaliseerd voor betere ondersteuning op een groot aantal apparaten. U kunt de overige velden hieronder invullen terwijl dit bezig is.</string>
<string name="video_optimized">Uw video is met succes geoptimaliseerd voor een betere weergave op zoveel mogelijk apparaten. Ga door om uw inhoud te publiceren.</string>
<string name="video_optimize_failed">Uw video kan niet worden geoptimaliseerd. Het bestand wordt zonder wijzigingen geüpload.</string>
<string name="completed_video_duration">Voltooide videoduur: %1$s</string>
<string name="sdk_initializing_publish">U kunt momenteel geen inhoud publiceren omdat de achtergrondservice nog steeds wordt geïnitialiseerd.</string>
<string name="publish_successful">Uw inhoud is met succes gepubliceerd. Het kan even duren voordat deze op de blockchain verschijnt.</string>
<string name="transcode_in_progress">Video-optimalisatie wordt uitgevoerd. Als u wilt annuleren, drukt u op Annuleren onderaan de pagina.</string>
<string name="optimization_in_progress">Video-optimalisatie wordt uitgevoerd.</string>
<string name="cannot_capture_video">Er is geen camera applicatie beschikbaar om video\'s op dit apparaat op te nemen.</string>
<string name="cannot_take_photo">Er is geen camera applicatie beschikbaar om foto\'s te maken op dit apparaat.</string>
<string name="please_provide_title">Geef een titel op.</string>
<string name="please_specify_address">Geef een adres op waar mensen uw inhoud kunnen vinden.</string>
<string name="address_invalid_characters">Uw inhoudsadres bevat ongeldige tekens.</string>
<string name="address_already_used">U hebt al gepubliceerd op het opgegeven content adres. Voer een nieuw adres in.</string>
<string name="no_file_selected">Geen bestand geselecteerd. Kies een video of maak een foto of selecteer een bestand voordat u het publiceert.</string>
<string name="price_amount_not_set">Voer een prijs in of schakel de schakelaar uit om uw inhoud gratis te maken.</string>
<string name="publish_no_thumbnail">Selecteer een miniatuur om te uploaden voordat u deze publiceert.</string>
<string name="publish_thumbnail_in_progress">Wacht tot de miniatuur is geüpload voordat u publiceert.</string>
<string name="language">Taal</string>
<string name="english">Engels</string>
<string name="chinese">Chinees</string>
<string name="french">Frans</string>
<string name="german">Duits</string>
<string name="japanese">Japans</string>
<string name="russian">Russisch</string>
<string name="spanish">Spaans</string>
<string name="indonesian">Indonesisch</string>
<string name="italian">Italiaans</string>
<string name="dutch">Nederlands</string>
<string name="turkish">Turks</string>
<string name="polish">Pools</string>
<string name="malay">Maleis</string>
<string name="portuguese">Portugees</string>
<string name="vietnamese">Vietnamees</string>
<string name="thai">Thai</string>
<string name="arabic">Arabisch</string>
<string name="czech">Tsjechisch</string>
<string name="croatian">Kroatisch</string>
<string name="cambodian">Cambodjaans</string>
<string name="korean">Koreaans</string>
<string name="norwegian">Noors</string>
<string name="romanian">Roemeens</string>
<string name="hindi">Hindi</string>
<string name="greek">Grieks</string>
<string name="none">Geen</string>
<string name="public_domain">Publiek Domein</string>
<string name="copyrighted">Auteursrechtelijk beschermd</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">Een of meer inhoudsitems kunnen op dit moment niet worden verwijderd. Probeer het later opnieuw.</string>
<plurals name="confirm_delete_publishes">
<item quantity="one">Weet u zeker dat u de geselecteerde inhoudsitems wilt verwijderen?</item>
<item quantity="other">Weet u zeker dat u de geselecteerde inhoudsitems wilt verwijderen?</item>
</plurals>
<plurals name="publishes_deleted">
<item quantity="one">De inhoudsitems zijn succesvol verwijderd.</item>
<item quantity="other">De inhoudsitems zijn succesvol verwijderd.</item>
</plurals>
<!-- Splash -->
<string name="oops_something_went_wrong">Oeps! Er is iets fout gegaan.</string>
<string name="installation_id_loaded">Geladen installatie ID.</string>
<string name="known_tags_loaded">Geladen lokaal bekende en gevolgde labels.</string>
<string name="exchange_rate_loaded">Geladen LBC/USD wisselkoers.</string>
<string name="user_authenticated">Gebruiker geverifieerd.</string>
<string name="installation_registered">Installatie geregistreerd.</string>
<string name="subscriptions_loaded">Geladen abonnementen.</string>
<string name="subscriptions_resolved">Opgeloste abonnementen.</string>
<!-- Settings -->
<string name="user_interface">Content &amp; User interface</string>
<string name="other">Ander</string>
<string name="enable_dark_mode">Schakel donker thema in</string>
<string name="show_mature_content">Volwassen inhoud weergeven</string>
<string name="show_url_suggestions">Toon URL suggesties</string>
<string name="notifications">Notificaties</string>
<string name="subscriptions">Abonnementen</string>
<string name="content_interests">Content Interesses</string>
<string name="keep_sdk_in_background">Laat de LBRY service op de achtergrond draaien voor verbeterde portemonnee- en netwerkprestaties</string>
<string name="participate_in_data_network">Deelnemen aan het datanetwerk (vereist herstart van applicatie en achtergrondservice)</string>
<!-- URL suggestions -->
<string name="search_url_title">%1$s - Zoeken</string>
<string name="tag_url_title">%1$s - Label</string>
<string name="search_url_desc">Zoek voor \'%1$s\'</string>
<string name="explore_tag_url_desc">Verken de \'%1$s\' label</string>
<string name="view_file_url_desc">Bekijk inhoud op %1$s</string>
<string name="view_channel_url_desc">Bekijk het %1$s kanaal</string>
<!-- Search -->
<string name="search_no_results">Geen resultaten gevonden voor \'\'%1$s. Voer een andere zoekterm in.</string>
<string name="search_no_query">U kunt alles zoeken, inclusief films, muziek, e-boeken, software en meer.</string>
<string name="no_related_content">Geen gerelateerde inhoud om op dit moment weer te geven.</string>
<!-- Wallet -->
<string name="balance">Balans</string>
<string name="you_currently_have">U hebt momenteel</string>
<string name="convert_credits">You can convert your credits to USD and withdraw the converted amount using an exchange. &lt;a href=\"https://lbry.com/faq/exchanges\"&gt;Leer meer&lt;/a&gt;.</string>
<string name="convert_credits_bittrex">&lt;a href=\"https://bittrex.com/Account/Register?referralCode=4M1-P30-BON\"&gt;Zet credits om naar USD op Bittrex&lt;/a&gt;</string>
<string name="you_also_have">U hebt ook</string>
<string name="you_staked">U hebt ingezet</string>
<string name="in_tips">in fooien</string>
<string name="in_your_publishes">in uw publicaties</string>
<string name="in_your_supports">in uw steunen</string>
<string name="earn_more_tips">Verdien meer fooien door coole video\'s te uploaden</string>
<string name="sdk_initializing">De achtergrondservice wordt geïnitialiseerd...</string>
<string name="sdk_still_initializing">De achtergrondservice wordt nog geïnitialiseerd. U kunt ondertussen inhoud verkennen en bekijken.</string>
<string name="sdk_initializing_functionality">U kunt dit nu niet doen omdat de achtergrondservice nog steeds wordt geïnitialiseerd.</string>
<string name="backup_synced">Een back-up van uw portemonnee wordt gesynchroniseerd met lbry.tv</string>
<string name="backup_notsynced">Uw portemonnee is momenteel niet gesynchroniseerd met lbry.tv. U bent verantwoordelijk voor het maken van een back-up van uw portemonnee.</string>
<string name="synced_what_does_this_mean">&lt;a href=\"https://lbry.com/faq/account-sync\"&gt;Wat betekend dit?&lt;/a&gt;</string>
<string name="backup_what_does_this_mean">&lt;a href=\"https://lbry.com/faq/how-to-backup-wallet#android\"&gt;Wat betekend dit?&lt;/a&gt;</string>
<string name="receive_credits">Verkrijg Credits</string>
<string name="use_this_address_hint">Gebruik dit portemonnee adres om tegoeden te ontvangen die door een andere gebruiker (of uzelf) zijn verzonden.</string>
<string name="get_new_address">Verkrijg nieuw adres</string>
<string name="generate_address_hint">U kunt op elk moment een nieuw adres genereren en eerdere adressen blijven werken. Het gebruik van meerdere adressen kan handig zijn om inkomende betalingen van meerdere bronnen bij te houden.</string>
<string name="send_credits">Stuur Credits</string>
<string name="recipient_address">Ontvangend adres</string>
<string name="recipient_address_placeholder">bbFxRyXXXXXXXXXXXZD8nE7XTLUxYnddTs</string>
<string name="amount">Hoeveelheid</string>
<string name="send">Verstuur</string>
<string name="recent_transactions">Recente Transacties</string>
<string name="view_all">Bekijk Alles</string>
<string name="receive">Ontvang</string>
<string name="spend">Uitgeven</string>
<string name="publish">Publiceer</string>
<string name="support">Steun</string>
<string name="abandon">Verlaat</string>
<string name="channel">Kanaal</string>
<string name="channel_update">Kanaal Update</string>
<string name="publish_update">Publiceer Update</string>
<string name="wallet_sync">Portemonnee Synchronisatie</string>
<string name="sync_status">Synchronisatie status</string>
<string name="on">Aan</string>
<string name="off">Uit</string>
<string name="email">E-mail</string>
<string name="no_connected_email">Geen verbonden e-mail</string>
<string name="manual_backup">&lt;a href=\"https://lbry.com/faq/how-to-backup-wallet#android\"&gt;Handmatige back-up&lt;/a&gt;</string>
<string name="sync_faq">&lt;a href=\"https://lbry.com/faq/how-to-backup-wallet#sync\"&gt;Synchroniseer FAQ&lt;/a&gt;</string>
<string name="zero">0</string>
<string name="lbc">LBC</string>
<string name="account_recommended">Account Aanbevolen</string>
<string name="wallet_account_desc">Met een lbry.tv account kunt u beloningen verdienen, uw portemonnee back-uppen, en alles gesynchroniseerd houden.</string>
<string name="wallet_without_account">Zonder een account, neemt u alle verantwoordelijkheid op u om uw portemonnee en uw LBRY data te beveiligen.</string>
<string name="skip_account">Account Overslaan</string>
<string name="sign_up">Aanmelden</string>
<string name="address_copied">Adres gekopieerd</string>
<string name="invalid_recipient_address">Voer een geldig adres in om credits naar te verzenden</string>
<string name="insufficient_balance">Onvoldoende saldo</string>
<string name="invalid_amount">Voer een geldig bedrag in</string>
<string name="send_credit_error">Uw tegoeden kunnen op dit moment niet worden verzonden. Probeer het later opnieuw.</string>
<string name="loading_transactions">Transacties laden...</string>
<string name="no_recent_transactions">Er zijn geen recente transacties om weer te geven.</string>
<string name="no_transactions">Er zijn op dit moment geen transacties om weer te geven.</string>
<string name="tx_list_fee">belasting %1$s</string>
<string name="transaction_history">Transactie geschiedenis</string>
<string name="unlock">Ontgrendelen</string>
<string name="unlock_tips">Tips ontgrendelen?</string>
<string name="confirm_unlock_tips">Weet u zeker dat u al uw tips wilt ontgrendelen?</string>
<plurals name="you_sent_credits">
<item quantity="one">U heeft %1$s credits verzonden</item>
<item quantity="other">U heeft %1$s credits verzonden</item>
</plurals>
<!-- Dialogs -->
<string name="customize_your_tags">Bewerk uw labels</string>
<string name="sort_content_by">Sorteer content op</string>
<string name="content_from">Content van</string>
<string name="trending_content">Trending content</string>
<string name="new_content">Nieuw content</string>
<string name="top_content">Top content</string>
<string name="trending">Trending</string>
<string name="top">Top</string>
<string name="new_text">Nieuw</string>
<string name="past_24_hours">Afgelopen 24 uur</string>
<string name="past_week">Afgelopen week</string>
<string name="past_month">Afgelopen maand</string>
<string name="past_year">Afgelopen jaar</string>
<string name="all_time">Altijd</string>
<string name="from">van</string>
<string name="for_text">voor</string>
<string name="filter_for">Filter op</string>
<string name="everyone">Iedereen</string>
<string name="tags_you_follow">Labels die u volgt</string>
<string name="customize">Aanpassen</string>
<string name="not_yet_implemented">De geselecteerde weergave is nog niet beschikbaar.</string>
<string name="customize_tags_hint">Het lijkt erop dat u nog geen labels hebt gevolgd.</string>
<string name="search_for_more_tags">Zoek naar meer labels</string>
<string name="no_followed_tags">U hebt nog geen labels gevolgd. Ga aan de slag door labels toe te voegen waarin u geïnteresseerd bent!</string>
<string name="no_tag_results">We kunnen geen nieuwe labels vinden die u niet volgt.</string>
<string name="tag_already_added">De \'%1$s\' label is al toegevoegd.</string>
<string name="tag_limit_reached">U kunt niet meer dan 5 labels toevoegen.</string>
<string name="send_a_tip">Stuur een fooi</string>
<string name="send_a_tip_to">Stuur een tip naar %1$s</string>
<string name="send_tip_info_content">Dit zal verschijnen als een tip voor %1$s, wat de mogelijkheid vergroot om ontdekt te worden terwijl het actief is. &lt;a href=\"https://lbry.com/faq/tipping\"&gt;Learn more&lt;/a&gt;.</string>
<string name="send_tip_info_channel">Dit zal verschijnen als een tip voor %1$s, wat het vermogen van het kanaal om ontdekt te worden terwijl het actief is, zal vergroten. &lt;a href=\"https://lbry.com/faq/tipping\"&gt;Learn more&lt;/a&gt;.</string>
<string name="cancel">Annuleer</string>
<string name="repost_title">Plaats opnieuw %1$s</string>
<string name="repost_your_favorite">Plaats uw favoriete inhoud opnieuw zodat meer mensen ze kunnen ontdekken!</string>
<string name="channel_to_post_on">Kanaal om op te posten</string>
<string name="show_advanced">Toon geavanceerd</string>
<string name="hide_advanced">Geavanceerd verbergen</string>
<string name="name">Naam</string>
<string name="min_deposit">0.001</string>
<string name="content_successfully_reposted">De inhoud is met succes opnieuw geplaatst!</string>
<string name="repost_name_invalid_characters">De herpostnaam bevat ongeldige tekens.</string>
<plurals name="you_sent_a_tip">
<item quantity="one">Je hebt %1$s credits als tip gestuurd, Mahalo!</item>
<item quantity="other">U hebt %1$s credits als tip gestuurd, Mahalo!</item>
</plurals>
<!-- Verification -->
<string name="provide_email_address">Geef een e-mailadres op.</string>
<string name="email_placeholder">you@example.com</string>
<string name="email_sent_to">Er is een e-mail gestuurd naar</string>
<string name="please_click_link">Klik op de link in het bericht om het aanmelden te voltooien.</string>
<string name="resend">Opnieuw verzenden</string>
<string name="continue_text">Doorgaan</string>
<string name="provide_valid_email">Vul een geldig e-mailadres in</string>
<string name="please_follow_instructions">Volg de instructies in de e-mail die naar uw adres is gestuurd om door te gaan.</string>
<string name="sign_in_successful">U bent succesvol aangemeld bij lbry.tv</string>
<string name="retrieving_account_information">Accountgegevens ophalen...</string>
<string name="apply_wallet_data">Portemonnee gegevens toepassen...</string>
<string name="please_enter_your_password">Vul het wachtwoord in waarmee u uw portemonnee heeft beveiligd.</string>
<string name="please_enter_a_password">Voer een wachtwoord in om uw portemonnee te beveiligen.</string>
<string name="wallet_security_purposes">Opmerking: om veiligheidsredenen kan LBRY uw wachtwoord niet opnieuw instellen.</string>
<string name="password">Wachtwoord</string>
<string name="enable_sync">Activeer synchronisatie</string>
<string name="wallet_sync_op_failed">De synchronisatie van de portemonnee kan op dit moment niet worden voltooid. Probeer het later opnieuw. Als dit probleem zich blijft voordoen, stuur dan een e-mail naar hello@lbry.com.</string>
<string name="phone_number">Telefoonnummer</string>
<string name="enter_phone_number">Voer uw telefoonnummer in.</string>
<string name="not_interested">Niet geïnteresseerd</string>
<string name="manual_reward_verification">Handmatige Beloningsverificatie</string>
<string name="account_undergo_review">Dit account moet worden beoordeeld voordat u kunt deelnemen aan het beloningsprogramma. Dit kan enkele minuten tot meerdere dagen duren.</string>
<string name="request_to_be_verified">Als je dit bericht blijft zien, vraag dan om verificatie op de &lt;a href=\"https://discordapp.com/invite/Z3bERWA\"&gt;LBRY Discord server&lt;/a&gt;</string>
<string name="enjoy_free_content">Geniet ondertussen van gratis content!</string>
<string name="verify_phone_number">Verifieer Telefoonnummer</string>
<string name="enter_phone_verify_code">Voer de verificatiecode in die naar %1$s is gestuurd</string>
<string name="code_placeholder">0000</string>
<string name="verify">Verifieer</string>
<string name="please_enter_valid_phone">Voer alstublieft een geldig telefoonnummer in.</string>
<string name="please_enter_verification_code">Voer de verificatiecode in die naar uw telefoonnummer is gestuurd.</string>
<!-- Forms -->
<string name="no_added_tags">U heeft nog geen labels toegevoegd. Voeg labels toe om de ontdekking te verbeteren.</string>
<string name="form_no_tag_results">We konden geen nieuwe labels vinden die nog niet zijn toegevoegd.</string>
<!-- Channels -->
<string name="no_channel_created">U hebt geen kanaal gemaakt.\nStart nu door een nieuw kanaal te maken!</string>
<string name="create_a_channel">Creëer een kanaal</string>
<string name="create_a_channel_item">Creëer een kanaal...</string>
<string name="edit_channel">Bewerk kanaal</string>
<string name="delete_selection">Verwijder selectie?</string>
<string name="delete_channel">Verwijder kanaal?</string>
<string name="confirm_delete_channel">Weet u zeker dat u dit kanaal wilt verwijderen?</string>
<string name="channel_deleted">Het kanaal is succesvol verwijderd.</string>
<string name="channel_failed_delete">Het kanaal kan op dit moment niet worden verwijderd. Probeer het later opnieuw.</string>
<string name="description">Beschrijving</string>
<string name="yes">Ja</string>
<string name="no">Nee</string>
<string name="show_optional_fields">Weergeef optionele velden</string>
<string name="hide_optional_fields">Verberg extra velden</string>
<string name="save">Opslaan</string>
<string name="channel_name">Kanaalnaam</string>
<string name="title">Titel</string>
<string name="at">\@</string>
<string name="deposit">Waarborgsom </string>
<string name="deposit_remains_yours">Deze LBC blijft van u. Het is een waarborgsom en kan op ieder moment ongedaan worden.</string>
<string name="storage_permission_rationale_download">LBRY heeft toegang nodig om inhoud naar uw apparaat te downloaden.</string>
<string name="storage_permission_rationale_images">LBRY heeft toegang nodig om afbeeldingen van uw apparaat opslag te laden.</string>
<string name="select_thumbnail">Selecteer een miniatuur</string>
<string name="select_cover">Selecteer omslagafbeelding</string>
<string name="undetermined_image_filepath">Het bestand pad kon niet worden bepaald voor de geselecteerde afbeelding. Selecteer een afbeelding op een andere locatie.</string>
<string name="wait_for_upload">Wacht tot de huidige upload is voltooid.</string>
<string name="image_upload_failed">Het verzoek voor het uploaden van afbeeldingen is mislukt. Probeer het alstublieft opnieuw.</string>
<string name="uploading">Uploaden...</string>
<string name="please_enter_channel_name">Voer een kanaalnaam in.</string>
<string name="channel_name_invalid_characters">Uw kanaalnaam bevat ongeldige tekens.</string>
<string name="channel_name_already_created">U hebt al een kanaal met dezelfde naam gemaakt.</string>
<string name="please_enter_valid_deposit">Voer een geldig stortingsbedrag in.</string>
<string name="deposit_more_than_balance">Storting kan niet hoger zijn dan uw saldo.</string>
<string name="channel_save_failed">Het kanaalopslagverzoek is mislukt. Probeer het alstublieft opnieuw.</string>
<string name="channel_save_successful">Het kanaal is succesvol opgeslagen.</string>
<string name="item_pending_blockchain">De claim is in afwachting van publicatie op de blockchain. U kunt de claim binnen enkele ogenblikken openen of bewerken.</string>
<string name="pending">In afwachting</string>
<string name="create">Creëer</string>
<string name="one_or_more_channels_failed_abandon">Een of meer kanalen kunnen op dit moment niet worden verwijderd. Probeer het later opnieuw.</string>
<plurals name="min_deposit_required">
<item quantity="one">Een minimale storting van %1$s credits is vereist.</item>
<item quantity="other">Een minimale storting van %1$s credits is vereist.</item>
</plurals>
<plurals name="confirm_delete_channels">
<item quantity="one">Weet u zeker dat u de geselecteerde kanalen wilt verwijderen?</item>
<item quantity="other">Weet u zeker dat u de geselecteerde kanalen wilt verwijderen?</item>
</plurals>
<plurals name="channels_deleted">
<item quantity="one">De kanalen zijn succesvol verwijderd.</item>
<item quantity="other">De kanalen zijn succesvol verwijderd.</item>
</plurals>
<!-- Rewards -->
<string name="lbry_credits_allow">Met LBRY-credits kunt u content publiceren of kopen.</string>
<string name="free_credits_worth">U kunt gratis tegoeden ter waarde van $%1$s krijgen nadat u een e-mailadres heeft opgegeven.</string>
<string name="rewards_learn_more">&lt;a href=\"https://lbry.com/faq/earn-credits\"&gt;Leer meer&lt;/a&gt;.</string>
<string name="get_started">Begin</string>
<string name="reward_code_placeholder">abc123</string>
<string name="claim">Opeisen</string>
<string name="please_enter_claim_code">Voer een aangepaste beloningscode in om te claimen.</string>
<string name="unclaimed">Niet opgeëist</string>
<string name="custom_reward_title">Aangepaste Code</string>
<string name="up_to">tot</string>
<string name="custom_reward_description">Bent u een supermodel of een rockster die een aangepaste beloningscode ontvangen heeft? Eis het hier op.</string>
<plurals name="claim_reward_message">
<item quantity="one">Je hebt %1$s credits opgeëist als beloning.</item>
<item quantity="other">Je hebt %1$s credits opgeëist als beloning.</item>
</plurals>
<plurals name="available_credits">
<item quantity="one">%1$s beschikbare credits</item>
<item quantity="other">%1$s beschikbare credits</item>
</plurals>
<!-- Reward drivers -->
<string name="publishing_requires_credits">Publiceren vereist credits.</string>
<string name="channel_creation_requires_credits">Voor het maken van kanalen zijn credits nodig.</string>
<string name="earn_rewards_for_inviting">Verdien beloningen door uw vrienden uit te nodigen.</string>
<string name="earn_some_credits_to_access">Verdien wat credits om toegang te krijgen tot deze inhoud.</string>
<string name="tap_here_to_get_some">Tik hier om er een paar gratis te krijgen.</string>
<string name="free_credits_available">Gratis credits beschikbaar in beloningen.</string>
<plurals name="wallet_signed_in_free_credits">
<item quantity="one">%1$s gratis credits beschikbaar in beloningen.</item>
<item quantity="other">%1$sgratis credits beschikbaar in beloningen.</item>
</plurals>
<plurals name="wallet_get_free_credits">
<item quantity="one">Ontvang %1$s gratis credits na het aanmaken van een account.</item>
<item quantity="other">Ontvang %1$s gratis credits na het aanmaken van een account.</item>
</plurals>
<!-- Invites -->
<string name="lbry_invite_program">LBRY Uitnodigingsprogramma</string>
<string name="earn_extra_credits_invites">U kunt extra credits verdienen voor elke persoon die u uitnodigt om LBRY te gebruiken.</string>
<string name="invites_learn_more">&lt;a href=\"https://lbry.com/faq/invites\"&gt;Leer meer&lt;/a&gt;.</string>
<string name="invite_link">Uitnodigingslink</string>
<string name="share_this_link">Deel deze link met vrienden (of vijanden) en ontvang credits wanneer ze lid worden van lbry.tv.</string>
<string name="your_invite_link">Uw uitnodigingslink</string>
<string name="customize_invite_link">Uitnodigingslink aanpassen</string>
<string name="invite_by_email">Nodig uit per e-mail</string>
<string name="invite_someone">Nodig iemand die u kent via e-mail uit en verdien credits wanneer ze lid worden van lbry.tv.</string>
<string name="invite_email_placeholder">imaginary@friend.com</string>
<string name="invite">Nodig uit</string>
<string name="invite_history">Uitnodigingsgeschiedenis</string>
<string name="earn_credits_for_inviting">Verdien credits voor het uitnodigen van een vriend, een vijand, een vijand of een vriend. Iedereen heeft inhoudelijke vrijheid nodig.</string>
<string name="reward">Beloning</string>
<string name="claimed">Beweerde</string>
<string name="claimable">Opeisbaar</string>
<string name="unclaimable">Niet-opeisbaar</string>
<string name="invite_link_copied">Uitnodigingslink gekopieerd</string>
<string name="invite_sent_to">Uitnodiging verstuurd naar %1$s</string>
<!-- Library -->
<string name="downloads">Downloads</string>
<string name="purchases">Aankopen</string>
<string name="history">Geschiedenis</string>
<string name="library_no_downloads">U hebt geen inhoud gedownload naar dit apparaat.</string>
<string name="library_no_history">U hebt geen inhoud op dit apparaat bekeken.</string>
<string name="library_no_purchases">U heeft geen inhoud voor uw account gekocht.</string>
<string name="hide">Verberg</string>
<string name="stats">Statistieken</string>
<string name="video">Video</string>
<string name="audio">Audio</string>
<string name="images">Afbeeldingen</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">Weet u zeker dat u de geselecteerde bestanden van uw apparaat wilt verwijderen?</item>
<item quantity="other">Weet u zeker dat u de geselecteerde bestanden van uw apparaat wilt verwijderen?</item>
</plurals>
<plurals name="files_deleted">
<item quantity="one">De bestanden zijn succesvol verwijderd.</item>
<item quantity="other">De bestanden zijn succesvol verwijderd.</item>
</plurals>
<!-- About -->
<string name="about_lbry">Over LBRY</string>
<string name="content_freedom">Content Vrijheid</string>
<string name="about_paragraph">LBRY is een gratis, open, en gemeenschap gerund digitale marktplaats. Het is een gedecentraliseerde peer-to-peer inhoud verspreidingsplatform voor mensen om inhoud te uploaden en delen, en LBRY krediet te verdienen voor hun inspanningen. Gebruikers kunnen een ruime keuze aan video\'s, muziek, e-books en andere digitale inhoud waar ze geïnteresseerd in zijn vinden.</string>
<string name="get_social">Wordt Sociaal</string>
<string name="social_paragraph">U kunt in aanraking komen met het LBRY team en leden van de gemeenschap op Discord, Facebook, Instagram, Twitter of Reddit.</string>
<string name="app_info">Applicatie info</string>
<string name="loading">Laden...</string>
<string name="about_link_what_is_lbry">&lt;a href=\"https://lbry.com/faq/what-is-lbry\"&gt;Wat is LBRY?&lt;/a&gt;</string>
<string name="about_link_android_basics">&lt;a href=\"https://lbry.com/faq/android-basics\"&gt;Basisprincipes van Android&lt;/a&gt;</string>
<string name="about_link_faq">&lt;a href=\"https://lbry.com/faq\"&gt;FAQ&lt;/a&gt;</string>
<string name="about_link_discord">&lt;a href=\"https://discordapp.com/invite/Z3bERWA\"&gt;Discord&lt;/a&gt;</string>
<string name="about_link_facebook">&lt;a href=\"https://www.facebook.com/LBRYio\"&gt;Facebook&lt;/a&gt;</string>
<string name="about_link_instagram">&lt;a href=\"https://www.instagram.com/LBRYio\"&gt;Instagram&lt;/a&gt;</string>
<string name="about_link_reddit">&lt;a href=\"https://reddit.com/r/lbry\"&gt;Reddit&lt;/a&gt;</string>
<string name="about_link_telegram">&lt;a href=\"https://t.me/lbryofficial\"&gt;Telegram&lt;/a&gt;</string>
<string name="about_link_twitter">&lt;a href=\"https://twitter.com/LBRYio\"&gt;Twitter&lt;/a&gt;</string>
<string name="update_mailing_preferences">Update e-mailvoorkeuren</string>
<string name="app_version">Applicatie versie</string>
<string name="lbry_sdk">LBRY SDK</string>
<string name="platform">Platform</string>
<string name="installation_id">Installatie ID</string>
<string name="firebase_token">Firebase Token</string>
<string name="logs">Logs</string>
<string name="send_log">Verstuur log</string>
<string name="connected_email">Verbonden e-mail</string>
<string name="unknown">Onbekend</string>
<string name="cannot_find_lbrynet_log">Kan het bestand lbrynet.log niet vinden.</string>
<string name="cannot_share_lbrynet_log">Het bestand lbrynet.log kan niet worden gedeeld vanwege machtigingsbeperkingen.</string>
<!-- Font Awesome -->
<string name="fa_gift">&#xf06b;</string>
<string name="fa_lock">&#xf023;</string>
<string name="fa_coins">&#xf51e;</string>
<string name="fa_file">&#xf15b;</string>
<string name="fa_hashtag">&#xf292;</string>
<string name="fa_search">&#xf002;</string>
<string name="fa_at">&#xf1fa;</string>
<string name="fa_heart">&#xf004;</string>
<string name="fa_heart_broken">&#xf7a9;</string>
<string name="fa_star">&#xf005;</string>
<string name="fa_globe_americas">&#xf57d;</string>
<string name="fa_upload">&#xf093;</string>
<string name="fa_download">&#xf019;</string>
<string name="fa_cloud_upload">&#xf382;</string>
<string name="fa_wallet">&#xf555;</string>
<string name="fa_award">&#xf559;</string>
<string name="fa_user_friends">&#xf500;</string>
<string name="fa_cog">&#xf013;</string>
<string name="fa_mobile_alt">&#xf3cd;</string>
<string name="fa_repost">&#xf079;</string>
<string name="fa_folder_open">&#xf07c;</string>
</resources>
+26
View File
@@ -59,6 +59,9 @@
<string name="report">Report</string>
<string name="loading_decentralized_data">Loading decentralized data...</string>
<string name="related_content">Related Content</string>
<string name="comments">Comments</string>
<string name="no_comments">No comments to display at this time.</string>
<string name="sdk_initializing_comments">Comments will display after the background service is initialized.</string>
<string name="share_lbry_content">Share LBRY content</string>
<string name="view">View</string>
<string name="play">Play</string>
@@ -78,6 +81,26 @@
<string name="confirm_delete_content_message">Are you sure you want to unpublish this content? No files will be removed from your device.</string>
<string name="content_deleted">The content was successfully deleted from the blockchain.</string>
<string name="content_failed_delete">The content could not be deleted at this time. Please try again later.</string>
<string name="comment">Comment</string>
<string name="comment_as">Comment as</string>
<string name="please_enter_comment">Please enter a comment to post.</string>
<string name="please_select_channel">Please select a channel to post your comment as.</string>
<string name="comment_posted">Your comment was successfully posted.</string>
<string name="please_select_repost_channel">Please select a channel to repost on.</string>
<string name="reply">Reply</string>
<string name="replying_to">Replying to %1$s</string>
<plurals name="post_and_tip">
<item quantity="one">Post and tip %1$s credit?</item>
<item quantity="other">Post and tip %1$s credits?</item>
</plurals>
<plurals name="post_for_credits">
<item quantity="one">Post for %1$s credit</item>
<item quantity="other">Post for %1$s credits</item>
</plurals>
<plurals name="confirm_post_comment">
<item quantity="one">This will post your comment with a tip of %1$s credit for %2$s</item>
<item quantity="other">This will post your comment with a tip of %1$s credits for %2$s</item>
</plurals>
<plurals name="view_count">
<item quantity="one">%1$s view</item>
<item quantity="other">%1$s views</item>
@@ -98,6 +121,7 @@
</plurals>
<!-- Publish -->
<string name="no_publishes_created">It looks like you have not published content to LBRY yet.</string>
<string name="record">Record</string>
<string name="take_photo">Take a Photo</string>
<string name="upload_file">Upload a file</string>
@@ -120,6 +144,7 @@
<string name="show_extra_fields">Show extra fields</string>
<string name="hide_extra_fields">Hide extra fields</string>
<string name="no_file_found">No file found to publish.</string>
<string name="publish_invalid_claim_type">Invalid claim specified for editing.</string>
<string name="video_optimization">Video optimization</string>
<string name="thumbnail_creation_failed">A thumbnail could not be automatically created from your content file.</string>
<string name="video_being_optimized">Your video is being optimized for better support on a wide range of devices. You can fill out the remaining fields below while this is in progress.</string>
@@ -388,6 +413,7 @@
<string name="verify">Verify</string>
<string name="please_enter_valid_phone">Please enter a valid phone number.</string>
<string name="please_enter_verification_code">Please enter the verification code sent to your phone number.</string>
<string name="fetch_current_user_error">User account could not be retrieved at this time. Please try again later.</string>
<!-- Forms -->
<string name="no_added_tags">You have not added any tags yet. Add tags to improve discovery.</string>