parent
50a1437a75
commit
6a522dfc72
|
@ -21,3 +21,4 @@
|
|||
* Tapping on a disroot domain from external app (such as browser or chat app) opens Disroot app
|
||||
* Added reload button
|
||||
* Welcome activity added
|
||||
* if Pix-art is installed then it will be launched as chat app
|
||||
|
|
|
@ -129,11 +129,20 @@ public class MainActivity extends AppCompatActivity implements View.OnLongClickL
|
|||
button.setOnClickListener(new View.OnClickListener() {
|
||||
public void onClick(View arg0) {
|
||||
String Conversations = "eu.siacs.conversations";
|
||||
Intent xmpp = getPackageManager().getLaunchIntentForPackage(Conversations);
|
||||
if(xmpp == null) {
|
||||
xmpp = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id="+Conversations));
|
||||
Intent xmpp1 = getPackageManager().getLaunchIntentForPackage(Conversations);
|
||||
String PixArt = "de.pixart.messenger";
|
||||
Intent xmpp2 = getPackageManager().getLaunchIntentForPackage(PixArt);
|
||||
if((xmpp1 == null)&&(xmpp2 == null)) {
|
||||
xmpp1 = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id="+Conversations));
|
||||
}
|
||||
startActivity(xmpp);
|
||||
if((xmpp1 == null)&&(xmpp2 != null)) {
|
||||
startActivity(xmpp2);
|
||||
}
|
||||
//need to change to give user choise
|
||||
if((xmpp1 != null)&&(xmpp2 != null)) {
|
||||
startActivity(xmpp2);
|
||||
}
|
||||
startActivity(xmpp1);
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<string name="action_chat">Chat</string>
|
||||
<string name="action_pad">Etherpad</string>
|
||||
<string name="action_calc">EtherCalc</string>
|
||||
<string name="action_bin">Zerobin</string>
|
||||
<string name="action_bin">Private bin</string>
|
||||
<string name="action_upload">Upload</string>
|
||||
<string name="action_searx">Searx</string>
|
||||
<string name="action_poll">Poll</string>
|
||||
|
|
Loading…
Reference in New Issue