forked from Disroot/disapp
Fixed app crash on tappin mail icon
This commit is contained in:
parent
b16b0a925a
commit
e5ff66e05d
2 changed files with 4 additions and 5 deletions
|
@ -151,21 +151,17 @@ public class MainActivity extends AppCompatActivity implements View.OnLongClickL
|
|||
// Locate the button in activity_main.xml
|
||||
button = findViewById(R.id.MailBtn);//MailBtn
|
||||
button.setOnLongClickListener(new View.OnLongClickListener() {
|
||||
|
||||
@Override
|
||||
public boolean onLongClick(View v) {
|
||||
showMailInfo();
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
// Capture button clicks
|
||||
button.setOnClickListener(new View.OnClickListener() {
|
||||
public void onClick(View arg0) {
|
||||
// Start NewActivity.class
|
||||
String k9 = "com.fsck.k9";
|
||||
Intent mail = getPackageManager().getLaunchIntentForPackage(k9);
|
||||
if(mail == null&&(firstStart.getBoolean("firsttap", false))) {
|
||||
if(mail == null) {
|
||||
mail = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id="+k9));
|
||||
}//first time tap check
|
||||
if (firstStart.getBoolean("firsttap", true)){
|
||||
|
@ -174,8 +170,10 @@ public class MainActivity extends AppCompatActivity implements View.OnLongClickL
|
|||
}
|
||||
else startActivity(mail);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
button = findViewById(R.id.CloudBtn);//CloudBtn
|
||||
button.setOnLongClickListener(new View.OnLongClickListener() {
|
||||
@Override
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<changelog>
|
||||
<release version="0.9.2" versioncode="7" >
|
||||
<change>Fixed app crash on tapping mail icon</change>
|
||||
<change>Fixed first time asking xmpp client</change>
|
||||
<change>Italian translation added</change>
|
||||
<change>fixed Spanish typos</change>
|
||||
|
|
Loading…
Reference in a new issue