Skip to content

Commit

Permalink
links are clickable, if using the stock Android text editor
Browse files Browse the repository at this point in the history
  • Loading branch information
konradrenner committed Mar 23, 2016
1 parent 47925df commit fdce3ea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "org.kore.kolabnotes.android"
minSdkVersion 16
targetSdkVersion 23
versionCode 63
versionName "1.10.1"
versionCode 64
versionName "1.10.2"

//Running test
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import android.text.Html;
import android.text.Spanned;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.util.Base64;
import android.util.Log;
import android.view.LayoutInflater;
Expand Down Expand Up @@ -189,6 +190,7 @@ public void onFocusChange(View view, boolean b) {
}else{
editText = (EditText) activity.findViewById(R.id.detail_description_plain);
editText.setVisibility(View.VISIBLE);
editText.setMovementMethod(LinkMovementMethod.getInstance());
}

// Handle Back Navigation :D
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,8 @@ protected void onPostExecute(String s) {
.setAutoCancel(true).build();

notificationManager.notify(0, notification);

reloadData();
}
}

Expand Down Expand Up @@ -1392,6 +1394,7 @@ protected void onPostExecute(String s) {
.setAutoCancel(true).build();

notificationManager.notify(random.nextInt(), notification);
reloadData();
}
}

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/layout/fragment_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@
android:textColorHint="@color/secondary_text_default_material_light"
android:hint="@string/description_hint"
android:editable="true"
android:autoLink="all"
android:linksClickable="true"
android:bufferType="spannable"
android:enabled="true" />

Expand Down

0 comments on commit fdce3ea

Please sign in to comment.