More crash fixes. Change comment cost to 2 LBC.

This commit is contained in:
Akinwale Ariwodola 2020-06-02 08:55:34 +01:00
parent 61263dd59d
commit 9ed8864f23
11 changed files with 55 additions and 30 deletions
app/src/main/java/io/lbry/browser

View file

@ -746,13 +746,22 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener
public void openPublishesOnSuccessfulPublish() {
// close publish form
try {
getSupportFragmentManager().popBackStack();
openFragment(PublishesFragment.class, true, NavMenuItem.ID_ITEM_PUBLISHES);
} catch (IllegalStateException ex) {
// pass
onBackPressed();
}
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) {