~singpolyma/cheogram-android

6132024c169e2ffdc4d8ccbd7e174791b6d28e5b — Stephen Paul Weber 2 years ago 92aed12
Revert "Intercept DIAL and CALL to tel: and rewrite to cheogram"

This reverts commit 227dd8d2bcbb86599b22483bc56972aab66d7890.
M src/main/AndroidManifest.xml => src/main/AndroidManifest.xml +0 -8
@@ 144,14 144,6 @@
                <data android:host="jabber" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <action android:name="android.intent.action.CALL" />
                <action android:name="android.intent.action.DIAL" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="tel" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SENDTO" />

                <category android:name="android.intent.category.DEFAULT" />

M src/main/java/eu/siacs/conversations/ui/UriHandlerActivity.java => src/main/java/eu/siacs/conversations/ui/UriHandlerActivity.java +0 -2
@@ 260,8 260,6 @@ public class UriHandlerActivity extends AppCompatActivity {
                break;
            case Intent.ACTION_VIEW:
            case Intent.ACTION_SENDTO:
            case Intent.ACTION_DIAL:
            case Intent.ACTION_CALL:
                if (handleUri(data.getData())) {
                    finish();
                }

M src/main/java/eu/siacs/conversations/utils/XmppUri.java => src/main/java/eu/siacs/conversations/utils/XmppUri.java +0 -2
@@ 179,8 179,6 @@ public class XmppUri {
            } catch (final UnsupportedEncodingException ignored) {
                jid = null;
            }
        } else if ("tel".equalsIgnoreCase(scheme)) {
            jid = uri.getSchemeSpecificPart().replaceAll("[^\\d\\+]+", "") + "@cheogram.com";
        } else {
            jid = null;
        }