mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 14:47:29 +00:00
use .equals() for String
This commit is contained in:
parent
0fc2fe2faf
commit
f6a224ec01
@ -29,7 +29,7 @@ public final class FlavorTown {
|
|||||||
public static void updateCheck(@NonNull final Context context) {
|
public static void updateCheck(@NonNull final Context context) {
|
||||||
Resources res = context.getResources();
|
Resources res = context.getResources();
|
||||||
new UpdateChecker(version -> {
|
new UpdateChecker(version -> {
|
||||||
if (version != BuildConfig.VERSION_NAME && !BuildConfig.DEBUG) {
|
if (!version.equals(BuildConfig.VERSION_NAME) && !BuildConfig.DEBUG) {
|
||||||
new AlertDialog.Builder(context)
|
new AlertDialog.Builder(context)
|
||||||
.setTitle(res.getString(R.string.update_available, version))
|
.setTitle(res.getString(R.string.update_available, version))
|
||||||
.setMessage(R.string.update_notice)
|
.setMessage(R.string.update_notice)
|
||||||
|
Loading…
Reference in New Issue
Block a user