Skip to content

Commit 09669f9

Browse files
committed
Bug fix and Release 0.17.6 ready
1 parent 8013afd commit 09669f9

File tree

7 files changed

+21
-20
lines changed

7 files changed

+21
-20
lines changed
628 KB
Binary file not shown.

app/__32bit/release/output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":17031,"versionName":"0.17.4","enabled":true,"outputFile":"app-__32bit-release.apk","fullName":"__32bitRelease","baseName":"__32bit-release","dirName":""},"path":"app-__32bit-release.apk","properties":{}}]
1+
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":17061,"versionName":"0.17.6","enabled":true,"outputFile":"app-__32bit-release.apk","fullName":"__32bitRelease","baseName":"__32bit-release","dirName":""},"path":"app-__32bit-release.apk","properties":{}}]
628 KB
Binary file not shown.

app/__64bit/release/output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":17032,"versionName":"0.17.4","enabled":true,"outputFile":"app-__64bit-release.apk","fullName":"__64bitRelease","baseName":"__64bit-release","dirName":""},"path":"app-__64bit-release.apk","properties":{}}]
1+
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":17062,"versionName":"0.17.6","enabled":true,"outputFile":"app-__64bit-release.apk","fullName":"__64bitRelease","baseName":"__64bit-release","dirName":""},"path":"app-__64bit-release.apk","properties":{}}]

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ android {
1515
defaultConfig {
1616
applicationId 'com.aryan.lbrybrowser'
1717
minSdkVersion 21
18-
targetSdkVersion 32
18+
targetSdkVersion 29
1919
versionCode 1706
2020
versionName '0.17.6'
2121
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

app/src/main/java/io/lbry/browser/ui/channel/ChannelFragment.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import android.widget.TextView;
1515

1616
import androidx.annotation.NonNull;
17-
import androidx.appcompat.app.AlertDialog;
1817
import androidx.fragment.app.Fragment;
1918
import androidx.fragment.app.FragmentActivity;
2019
import androidx.viewpager2.adapter.FragmentStateAdapter;
@@ -25,6 +24,7 @@
2524
import com.google.android.material.snackbar.Snackbar;
2625
import com.google.android.material.tabs.TabLayout;
2726
import com.google.android.material.tabs.TabLayoutMediator;
27+
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
2828

2929
import java.text.DecimalFormat;
3030
import java.text.NumberFormat;
@@ -159,16 +159,16 @@ public void onClick(View view) {
159159
@Override
160160
public void onClick(View view) {
161161
if (claim != null) {
162-
AlertDialog.Builder builder = new AlertDialog.Builder(getContext()).
163-
setTitle(R.string.delete_channel).
164-
setMessage(R.string.confirm_delete_channel)
162+
new MaterialAlertDialogBuilder(getContext())
163+
.setTitle(R.string.delete_channel)
164+
.setMessage(R.string.confirm_delete_channel)
165165
.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
166166
@Override
167167
public void onClick(DialogInterface dialogInterface, int i) {
168168
deleteCurrentClaim();
169169
}
170-
}).setNegativeButton(R.string.no, null);
171-
builder.show();
170+
}).setNegativeButton(R.string.no, null)
171+
.show();
172172
}
173173
}
174174
});
@@ -271,16 +271,17 @@ public void onClick(View view) {
271271
boolean isFollowing = Lbryio.isFollowing(claim);
272272
if (isFollowing) {
273273
Context context = getContext();
274-
AlertDialog.Builder builder = new AlertDialog.Builder(context).
275-
setTitle(R.string.confirm_unfollow).
276-
setMessage(R.string.confirm_unfollow_message)
274+
new MaterialAlertDialogBuilder(context)
275+
.setTitle(R.string.confirm_unfollow)
276+
.setMessage(R.string.confirm_unfollow_message)
277277
.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
278278
@Override
279279
public void onClick(DialogInterface dialogInterface, int i) {
280280
doFollowUnfollow(isFollowing, view);
281281
}
282-
}).setNegativeButton(R.string.no, null);
283-
builder.show();
282+
})
283+
.setNegativeButton(R.string.no, null)
284+
.show();
284285
} else {
285286
doFollowUnfollow(isFollowing, view);
286287
}

app/src/main/java/io/lbry/browser/ui/library/LibraryFragment.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
import android.widget.TextView;
1616

1717
import androidx.annotation.NonNull;
18-
import androidx.appcompat.app.AlertDialog;
1918
import androidx.appcompat.view.ActionMode;
2019
import androidx.cardview.widget.CardView;
2120
import androidx.recyclerview.widget.LinearLayoutManager;
2221
import androidx.recyclerview.widget.RecyclerView;
2322

2423
import com.google.android.material.snackbar.Snackbar;
24+
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
2525

2626
import org.json.JSONException;
2727
import org.json.JSONObject;
@@ -644,16 +644,16 @@ public boolean onActionItemClicked(androidx.appcompat.view.ActionMode actionMode
644644
if (context != null) {
645645
final List<Claim> selectedClaims = new ArrayList<>(contentListAdapter.getSelectedItems());
646646
String message = getResources().getQuantityString(R.plurals.confirm_delete_files, selectedClaims.size());
647-
AlertDialog.Builder builder = new AlertDialog.Builder(context).
648-
setTitle(R.string.delete_selection).
649-
setMessage(message)
647+
new MaterialAlertDialogBuilder(context)
648+
.setTitle(R.string.delete_selection)
649+
.setMessage(message)
650650
.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
651651
@Override
652652
public void onClick(DialogInterface dialogInterface, int i) {
653653
handleDeleteSelectedClaims(selectedClaims);
654654
}
655-
}).setNegativeButton(R.string.no, null);
656-
builder.show();
655+
}).setNegativeButton(R.string.no, null)
656+
.show();
657657
}
658658
return true;
659659
}

0 commit comments

Comments
 (0)