Some fixes for lint

This commit is contained in:
Javi Rueda 2020-12-08 11:03:19 +01:00
parent e6b83877f1
commit 9e56a86492
28 changed files with 103 additions and 100 deletions

View file

@ -107,6 +107,7 @@ import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import org.java_websocket.client.WebSocketClient; import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake; import org.java_websocket.handshake.ServerHandshake;
import org.jetbrains.annotations.NotNull;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
@ -221,6 +222,8 @@ import lombok.Setter;
import lombok.SneakyThrows; import lombok.SneakyThrows;
import okhttp3.OkHttpClient; import okhttp3.OkHttpClient;
import static android.os.Build.VERSION_CODES.M;
public class MainActivity extends AppCompatActivity implements SdkStatusListener, public class MainActivity extends AppCompatActivity implements SdkStatusListener,
SharedPreferences.OnSharedPreferenceChangeListener, SharedPreferences.OnSharedPreferenceChangeListener,
ActionMode.Callback, SelectionModeListener { ActionMode.Callback, SelectionModeListener {
@ -434,7 +437,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
initKeyStore(); initKeyStore();
loadAuthToken(); loadAuthToken();
if (!isDarkMode()) { if (Build.VERSION.SDK_INT >= M && !isDarkMode()) {
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
} }
initSpecialRouteMap(); initSpecialRouteMap();
@ -1315,7 +1318,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
private void toggleUrlSuggestions(boolean visible) { private void toggleUrlSuggestions(boolean visible) {
View container = findViewById(R.id.url_suggestions_container); View container = findViewById(R.id.url_suggestions_container);
View closeIcon = findViewById(R.id.wunderbar_close); View closeIcon = findViewById(R.id.wunderbar_close);
EditText wunderbar = findViewById(R.id.wunderbar); //EditText wunderbar = findViewById(R.id.wunderbar);
//wunderbar.setPadding(0, 0, visible ? getScaledValue(36) : 0, 0); //wunderbar.setPadding(0, 0, visible ? getScaledValue(36) : 0, 0);
container.setVisibility(visible ? View.VISIBLE : View.GONE); container.setVisibility(visible ? View.VISIBLE : View.GONE);
@ -1863,17 +1866,13 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
new DecimalFormat(Helper.LBC_CURRENCY_FORMAT_PATTERN).format(amountClaimed)); new DecimalFormat(Helper.LBC_CURRENCY_FORMAT_PATTERN).format(amountClaimed));
} }
Snackbar.make(findViewById(R.id.content_main), message, Snackbar.LENGTH_LONG).show(); Snackbar.make(findViewById(R.id.content_main), message, Snackbar.LENGTH_LONG).show();
if (sp != null) { sp.edit().putBoolean(PREFERENCE_KEY_INTERNAL_NEW_ANDROID_REWARD_CLAIMED, true).apply();
sp.edit().putBoolean(PREFERENCE_KEY_INTERNAL_NEW_ANDROID_REWARD_CLAIMED, true).apply();
}
} }
@Override @Override
public void onError(Exception error) { public void onError(Exception error) {
// pass. fail silently // pass. fail silently
if (sp != null) { sp.edit().putBoolean(PREFERENCE_KEY_INTERNAL_NEW_ANDROID_REWARD_CLAIMED, true).apply();
sp.edit().putBoolean(PREFERENCE_KEY_INTERNAL_NEW_ANDROID_REWARD_CLAIMED, true).apply();
}
} }
}); });
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
@ -1958,7 +1957,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
notificationListAdapter.setInSelectionMode(false); notificationListAdapter.setInSelectionMode(false);
notificationListAdapter.notifyDataSetChanged(); notificationListAdapter.notifyDataSetChanged();
} }
if (isDarkMode()) { if (Build.VERSION.SDK_INT >= M && isDarkMode()) {
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
} }
this.actionMode = null; this.actionMode = null;
@ -2022,8 +2021,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
if (nowPlayingClaimUrl != null) { if (nowPlayingClaimUrl != null) {
Intent launchIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(nowPlayingClaimUrl)); Intent launchIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(nowPlayingClaimUrl));
launchIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); launchIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent intent = PendingIntent.getActivity(MainActivity.this, 0, launchIntent, 0); return PendingIntent.getActivity(MainActivity.this, 0, launchIntent, 0);
return intent;
} }
return null; return null;
} }
@ -2236,8 +2234,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
@Override @Override
public void onSyncSetSuccess(String hash) { public void onSyncSetSuccess(String hash) {
Lbryio.lastRemoteHash = hash; Lbryio.lastRemoteHash = hash;
WalletSync walletSync = new WalletSync(hash, data); Lbryio.lastWalletSync = new WalletSync(hash, data);
Lbryio.lastWalletSync = walletSync;
if (pendingSyncSetQueue.size() > 0) { if (pendingSyncSetQueue.size() > 0) {
fullSyncInProgress = true; fullSyncInProgress = true;
@ -2417,8 +2414,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
pendingFollowingReload = true; pendingFollowingReload = true;
} }
private void handleOpenChannelUrl(Intent intent) { private void handleOpenChannelUrl(Intent intent) {
String url = intent.getStringExtra("url"); pendingChannelUrl = intent.getStringExtra("url");
pendingChannelUrl = url;
} }
}; };
registerReceiver(requestsReceiver, intentFilter); registerReceiver(requestsReceiver, intentFilter);
@ -2578,7 +2574,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
} }
@Override @Override
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) { public void onRequestPermissionsResult(int requestCode, @NotNull String[] permissions, @NotNull int[] grantResults) {
switch (requestCode) { switch (requestCode) {
case REQUEST_STORAGE_PERMISSION: case REQUEST_STORAGE_PERMISSION:
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
@ -2613,7 +2609,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
super.onActivityResult(requestCode, resultCode, data); super.onActivityResult(requestCode, resultCode, data);
if (requestCode == REQUEST_FILE_PICKER) { if (requestCode == REQUEST_FILE_PICKER) {
startingFilePickerActivity = false; startingFilePickerActivity = false;
if (resultCode == RESULT_OK) { if (resultCode == RESULT_OK && data != null) {
Uri fileUri = data.getData(); Uri fileUri = data.getData();
String filePath = Helper.getRealPathFromURI_API19(this, fileUri); String filePath = Helper.getRealPathFromURI_API19(this, fileUri);
for (FilePickerListener listener : filePickerListeners) { for (FilePickerListener listener : filePickerListeners) {
@ -2724,8 +2720,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
int backCount = getSupportFragmentManager().getBackStackEntryCount(); int backCount = getSupportFragmentManager().getBackStackEntryCount();
if (backCount > 0) { if (backCount > 0) {
try { try {
Fragment fragment = getSupportFragmentManager().getFragments().get(backCount - 1); return getSupportFragmentManager().getFragments().get(backCount - 1);
return fragment;
} catch (IndexOutOfBoundsException ex) { } catch (IndexOutOfBoundsException ex) {
return null; return null;
} }
@ -2849,8 +2844,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
// resolve subscriptions // resolve subscriptions
if (subUrls.size() > 0 && Lbryio.cacheResolvedSubscriptions.size() != Lbryio.subscriptions.size()) { if (subUrls.size() > 0 && Lbryio.cacheResolvedSubscriptions.size() != Lbryio.subscriptions.size()) {
List<Claim> resolvedSubs = Lbry.resolve(subUrls, Lbry.LBRY_TV_CONNECTION_STRING); Lbryio.cacheResolvedSubscriptions = Lbry.resolve(subUrls, Lbry.LBRY_TV_CONNECTION_STRING);
Lbryio.cacheResolvedSubscriptions = resolvedSubs;
} }
// if no exceptions occurred here, subscriptions have been loaded and resolved // if no exceptions occurred here, subscriptions have been loaded and resolved
startupStages.set(STARTUP_STAGE_SUBSCRIPTIONS_RESOLVED - 1, new StartupStage(STARTUP_STAGE_SUBSCRIPTIONS_RESOLVED, true)); startupStages.set(STARTUP_STAGE_SUBSCRIPTIONS_RESOLVED - 1, new StartupStage(STARTUP_STAGE_SUBSCRIPTIONS_RESOLVED, true));

View file

@ -2168,7 +2168,6 @@ public class FileViewFragment extends BaseFragment implements
} }
private void openClaimExternally(Claim claim, String mediaType) { private void openClaimExternally(Claim claim, String mediaType) {
File file = new File(claim.getFile().getDownloadPath());
Uri fileUri = Uri.parse(claim.getFile().getDownloadPath()); Uri fileUri = Uri.parse(claim.getFile().getDownloadPath());
Intent intent = new Intent(); Intent intent = new Intent();

View file

@ -31,7 +31,7 @@
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:src="@drawable/ic_close" android:src="@drawable/ic_close"
android:tint="@color/white" /> app:tint="@color/white" />
</RelativeLayout> </RelativeLayout>
<ProgressBar <ProgressBar

View file

@ -62,7 +62,7 @@
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:src="@drawable/ic_close" android:src="@drawable/ic_close"
android:tint="@color/actionBarForeground" /> app:tint="@color/actionBarForeground" />
</LinearLayout> </LinearLayout>
<RelativeLayout <RelativeLayout
@ -79,7 +79,7 @@
android:layout_height="24dp" android:layout_height="24dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_notifications" android:src="@drawable/ic_notifications"
android:tint="@color/actionBarForeground" /> app:tint="@color/actionBarForeground" />
<TextView <TextView
android:id="@+id/notifications_badge_count" android:id="@+id/notifications_badge_count"
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/comment_form_card" android:id="@+id/comment_form_card"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -99,7 +100,7 @@
android:layout_height="24dp" android:layout_height="24dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_close" android:src="@drawable/ic_close"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</RelativeLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>

View file

@ -174,9 +174,9 @@
<ImageView <ImageView
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:tint="@color/foreground"
android:src="@drawable/ic_close" android:src="@drawable/ic_close"
android:layout_centerInParent="true"/> android:layout_centerInParent="true"
app:tint="@color/foreground" />
</RelativeLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>
</androidx.cardview.widget.CardView> </androidx.cardview.widget.CardView>

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
@ -44,8 +45,8 @@
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/lbryGreen" android:visibility="gone"
android:visibility="gone" /> app:tint="@color/lbryGreen" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
@ -70,8 +71,8 @@
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/lbryGreen" android:visibility="gone"
android:visibility="gone" /> app:tint="@color/lbryGreen" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
@ -96,8 +97,8 @@
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/lbryGreen" android:visibility="gone"
android:visibility="gone" /> app:tint="@color/lbryGreen" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
@ -122,8 +123,8 @@
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/lbryGreen" android:visibility="gone"
android:visibility="gone" /> app:tint="@color/lbryGreen" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
@ -148,7 +149,7 @@
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/lbryGreen" android:visibility="gone"
android:visibility="gone" /> app:tint="@color/lbryGreen" />
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
@ -53,8 +54,8 @@
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/lbryGreen" android:visibility="gone"
android:visibility="gone" /> app:tint="@color/lbryGreen" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
@ -88,7 +89,7 @@
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/lbryGreen" android:visibility="gone"
android:visibility="gone" /> app:tint="@color/lbryGreen" />
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
@ -35,7 +36,7 @@
android:layout_height="18dp" android:layout_height="18dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_trending" android:src="@drawable/ic_trending"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
<TextView <TextView
android:layout_toEndOf="@+id/sort_by_trending_item_icon" android:layout_toEndOf="@+id/sort_by_trending_item_icon"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -53,8 +54,8 @@
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/lbryGreen" android:visibility="gone"
android:visibility="gone" /> app:tint="@color/lbryGreen" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
@ -70,7 +71,7 @@
android:layout_height="18dp" android:layout_height="18dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_new" android:src="@drawable/ic_new"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
<TextView <TextView
android:layout_toEndOf="@+id/sort_by_new_item_icon" android:layout_toEndOf="@+id/sort_by_new_item_icon"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -88,8 +89,8 @@
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/lbryGreen" android:visibility="gone"
android:visibility="gone" /> app:tint="@color/lbryGreen" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
@ -105,7 +106,7 @@
android:layout_height="18dp" android:layout_height="18dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_top" android:src="@drawable/ic_top"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
<TextView <TextView
android:layout_toEndOf="@+id/sort_by_top_item_icon" android:layout_toEndOf="@+id/sort_by_top_item_icon"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -123,7 +124,7 @@
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/lbryGreen" android:visibility="gone"
android:visibility="gone" /> app:tint="@color/lbryGreen" />
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>

View file

@ -22,7 +22,7 @@
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_marginBottom="16dp" android:layout_marginBottom="16dp"
android:src="@drawable/ic_replay_10" android:src="@drawable/ic_replay_10"
android:tint="@color/white" /> app:tint="@color/white" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
@ -74,7 +74,7 @@
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_marginBottom="16dp" android:layout_marginBottom="16dp"
android:src="@drawable/ic_forward_10" android:src="@drawable/ic_forward_10"
android:tint="@color/white" /> app:tint="@color/white" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
@ -92,7 +92,7 @@
android:layout_height="24dp" android:layout_height="24dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_cast" android:src="@drawable/ic_cast"
android:tint="@color/white" /> app:tint="@color/white" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
@ -133,7 +133,7 @@
android:layout_height="24dp" android:layout_height="24dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_fullscreen" android:src="@drawable/ic_fullscreen"
android:tint="@color/white" /> app:tint="@color/white" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout

View file

@ -79,7 +79,7 @@
android:layout_marginStart="2dp" android:layout_marginStart="2dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:src="@drawable/ic_arrow_dropdown" android:src="@drawable/ic_arrow_dropdown"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</LinearLayout> </LinearLayout>
<TextView <TextView
@ -120,7 +120,7 @@
android:layout_marginStart="2dp" android:layout_marginStart="2dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:src="@drawable/ic_arrow_dropdown" android:src="@drawable/ic_arrow_dropdown"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</LinearLayout> </LinearLayout>
<TextView <TextView
@ -161,7 +161,7 @@
android:layout_marginStart="2dp" android:layout_marginStart="2dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:src="@drawable/ic_arrow_dropdown" android:src="@drawable/ic_arrow_dropdown"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View file

@ -157,8 +157,8 @@
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:tint="@color/foreground" android:src="@drawable/ic_edit"
android:src="@drawable/ic_edit" /> app:tint="@color/foreground" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/channel_view_delete" android:id="@+id/channel_view_delete"
@ -172,8 +172,8 @@
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:tint="@color/foreground" android:src="@drawable/ic_delete"
android:src="@drawable/ic_delete" /> app:tint="@color/foreground" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/channel_view_share" android:id="@+id/channel_view_share"
@ -186,8 +186,8 @@
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:layout_width="22dp" android:layout_width="22dp"
android:layout_height="22dp" android:layout_height="22dp"
android:tint="@color/foreground" android:src="@drawable/ic_share"
android:src="@drawable/ic_share" /> app:tint="@color/foreground" />
</RelativeLayout> </RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/channel_view_tip" android:id="@+id/channel_view_tip"

View file

@ -56,7 +56,7 @@
android:layout_marginStart="2dp" android:layout_marginStart="2dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:src="@drawable/ic_arrow_dropdown" android:src="@drawable/ic_arrow_dropdown"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
@ -85,7 +85,7 @@
android:layout_marginStart="2dp" android:layout_marginStart="2dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:src="@drawable/ic_arrow_dropdown" android:src="@drawable/ic_arrow_dropdown"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View file

@ -38,7 +38,7 @@
android:layout_height="16dp" android:layout_height="16dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_edit" android:src="@drawable/ic_edit"
android:tint="@color/white" /> app:tint="@color/white" />
</RelativeLayout> </RelativeLayout>
@ -112,7 +112,7 @@
android:layout_height="16dp" android:layout_height="16dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_edit" android:src="@drawable/ic_edit"
android:tint="@color/white" /> app:tint="@color/white" />
</RelativeLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>

View file

@ -261,7 +261,7 @@
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_toStartOf="@+id/file_view_title_layout" android:layout_toStartOf="@+id/file_view_title_layout"
android:src="@drawable/ic_arrow_dropdown" android:src="@drawable/ic_arrow_dropdown"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</RelativeLayout> </RelativeLayout>
<LinearLayout <LinearLayout
@ -292,7 +292,7 @@
android:layout_height="24dp" android:layout_height="24dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_share" android:src="@drawable/ic_share"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</RelativeLayout> </RelativeLayout>
<TextView <TextView
@ -395,7 +395,7 @@
android:layout_height="24dp" android:layout_height="24dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_edit" android:src="@drawable/ic_edit"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</RelativeLayout> </RelativeLayout>
<TextView <TextView
@ -437,7 +437,7 @@
android:layout_height="20dp" android:layout_height="20dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_download" android:src="@drawable/ic_download"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</RelativeLayout> </RelativeLayout>
<TextView <TextView
@ -471,7 +471,7 @@
android:layout_height="24dp" android:layout_height="24dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_delete" android:src="@drawable/ic_delete"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</RelativeLayout> </RelativeLayout>
<TextView <TextView
@ -504,7 +504,7 @@
android:layout_height="24dp" android:layout_height="24dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_unpublish" android:src="@drawable/ic_unpublish"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</RelativeLayout> </RelativeLayout>
<TextView <TextView
@ -537,7 +537,7 @@
android:layout_height="24dp" android:layout_height="24dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_report" android:src="@drawable/ic_report"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</RelativeLayout> </RelativeLayout>
<TextView <TextView

View file

@ -82,7 +82,7 @@
android:layout_marginStart="2dp" android:layout_marginStart="2dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:src="@drawable/ic_arrow_dropdown" android:src="@drawable/ic_arrow_dropdown"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
@ -110,7 +110,7 @@
android:layout_marginStart="2dp" android:layout_marginStart="2dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:src="@drawable/ic_arrow_dropdown" android:src="@drawable/ic_arrow_dropdown"
android:tint="@color/foreground" /> app:tint="@color/foreground" />
</LinearLayout> </LinearLayout>
<TextView <TextView

View file

@ -3,8 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
tools:context=".ui.gallery.GalleryFragment">
<TextView <TextView
android:id="@+id/text_gallery" android:id="@+id/text_gallery"

View file

@ -3,8 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
tools:context=".ui.home.HomeFragment">
<TextView <TextView
android:id="@+id/text_home" android:id="@+id/text_home"

View file

@ -36,8 +36,8 @@
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="48dp" android:layout_height="48dp"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:tint="@color/white" android:src="@drawable/ic_record"
android:src="@drawable/ic_record" /> app:tint="@color/white" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -76,8 +76,8 @@
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="48dp" android:layout_height="48dp"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:tint="@color/white" android:src="@drawable/ic_photo"
android:src="@drawable/ic_photo" /> app:tint="@color/white" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -116,8 +116,8 @@
android:layout_width="48dp" android:layout_width="48dp"
android:layout_height="48dp" android:layout_height="48dp"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:tint="@color/white" android:src="@drawable/ic_upload"
android:src="@drawable/ic_upload" /> app:tint="@color/white" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/pageBackground"> android:background="@color/pageBackground">
@ -67,7 +68,7 @@
android:layout_height="16dp" android:layout_height="16dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_edit" android:src="@drawable/ic_edit"
android:tint="@color/white" /> app:tint="@color/white" />
</RelativeLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>

View file

@ -80,8 +80,8 @@
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:tint="@color/white" android:src="@drawable/ic_share"
android:src="@drawable/ic_share" /> app:tint="@color/white" />
</RelativeLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="16dp" android:paddingStart="16dp"
@ -118,7 +119,7 @@
android:layout_height="36dp" android:layout_height="36dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/nextLbryGreen" /> app:tint="@color/nextLbryGreen" />
</RelativeLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="16dp" android:paddingStart="16dp"
@ -129,7 +130,7 @@
android:layout_height="36dp" android:layout_height="36dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/nextLbryGreen" /> app:tint="@color/nextLbryGreen" />
</RelativeLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="?attr/selectableItemBackground" android:background="?attr/selectableItemBackground"
android:clickable="true" android:clickable="true"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -40,7 +41,7 @@
android:layout_height="36dp" android:layout_height="36dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/nextLbryGreen" /> app:tint="@color/nextLbryGreen" />
</RelativeLayout> </RelativeLayout>
</RelativeLayout> </RelativeLayout>
<LinearLayout <LinearLayout

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:clickable="true" android:clickable="true"
android:foreground="?attr/selectableItemBackground" android:foreground="?attr/selectableItemBackground"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -23,9 +24,9 @@
android:layout_width="16dp" android:layout_width="16dp"
android:layout_height="16dp" android:layout_height="16dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:tint="@color/lbryGreen"
android:src="@drawable/ic_check_circle" android:src="@drawable/ic_check_circle"
android:visibility="invisible" /> android:visibility="invisible"
app:tint="@color/lbryGreen" />
<ProgressBar <ProgressBar
android:id="@+id/reward_item_loading" android:id="@+id/reward_item_loading"
android:layout_centerInParent="true" android:layout_centerInParent="true"

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"> xmlns:tools="http://schemas.android.com/tools">
@ -8,8 +9,8 @@
android:layout_width="16dp" android:layout_width="16dp"
android:layout_height="16dp" android:layout_height="16dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:tint="@color/white" android:src="@drawable/ic_check"
android:src="@drawable/ic_check" /> app:tint="@color/white" />
<TextView <TextView
android:id="@+id/startup_stage_text" android:id="@+id/startup_stage_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
@ -134,7 +135,7 @@
android:layout_height="36dp" android:layout_height="36dp"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:src="@drawable/ic_check" android:src="@drawable/ic_check"
android:tint="@color/nextLbryGreen" /> app:tint="@color/nextLbryGreen" />
</RelativeLayout> </RelativeLayout>
<LinearLayout <LinearLayout
android:id="@+id/claim_thumbnail_placeholder" android:id="@+id/claim_thumbnail_placeholder"

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:clickable="true" android:clickable="true"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -18,7 +19,7 @@
android:layout_height="16dp" android:layout_height="16dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginEnd="4dp" android:layout_marginEnd="4dp"
android:tint="@color/darkForeground" /> app:tint="@color/darkForeground" />
<TextView <TextView
android:id="@+id/tag_name" android:id="@+id/tag_name"
android:layout_width="wrap_content" android:layout_width="wrap_content"