removed SuperToast library
This commit is contained in:
parent
2e0507d7a3
commit
cddfd42668
|
@ -143,7 +143,6 @@ dependencies {
|
||||||
compile 'com.commonsware.cwac:layouts:0.4.2'
|
compile 'com.commonsware.cwac:layouts:0.4.2'
|
||||||
compile 'com.rengwuxian.materialedittext:library:2.1.4'
|
compile 'com.rengwuxian.materialedittext:library:2.1.4'
|
||||||
compile 'com.pnikosis:materialish-progress:1.7'
|
compile 'com.pnikosis:materialish-progress:1.7'
|
||||||
compile 'com.github.johnpersano:supertoasts:1.3.4.1@aar'
|
|
||||||
compile 'com.github.mariotaku:MessageBubbleView:1.2'
|
compile 'com.github.mariotaku:MessageBubbleView:1.2'
|
||||||
compile 'com.github.mariotaku:DragSortListView:0.6.1'
|
compile 'com.github.mariotaku:DragSortListView:0.6.1'
|
||||||
compile 'com.github.uucky:ColorPicker-Android:0.9.7@aar'
|
compile 'com.github.uucky:ColorPicker-Android:0.9.7@aar'
|
||||||
|
|
|
@ -97,9 +97,6 @@ import com.afollestad.appthemeengine.customizers.ATEToolbarCustomizer;
|
||||||
import com.afollestad.appthemeengine.util.ATEUtil;
|
import com.afollestad.appthemeengine.util.ATEUtil;
|
||||||
import com.afollestad.materialdialogs.DialogAction;
|
import com.afollestad.materialdialogs.DialogAction;
|
||||||
import com.afollestad.materialdialogs.MaterialDialog;
|
import com.afollestad.materialdialogs.MaterialDialog;
|
||||||
import com.github.johnpersano.supertoasts.SuperToast;
|
|
||||||
import com.github.johnpersano.supertoasts.SuperToast.Duration;
|
|
||||||
import com.github.johnpersano.supertoasts.SuperToast.OnDismissListener;
|
|
||||||
import com.twitter.Extractor;
|
import com.twitter.Extractor;
|
||||||
|
|
||||||
import org.apache.commons.lang3.ArrayUtils;
|
import org.apache.commons.lang3.ArrayUtils;
|
||||||
|
@ -209,6 +206,13 @@ public class ComposeActivity extends BaseActivity implements OnMenuItemClickList
|
||||||
private SupportMenuInflater mMenuInflater;
|
private SupportMenuInflater mMenuInflater;
|
||||||
private ItemTouchHelper mItemTouchHelper;
|
private ItemTouchHelper mItemTouchHelper;
|
||||||
|
|
||||||
|
private final Runnable mBackTimeoutRunnable = new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
mNavigateBackPressed = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// Views
|
// Views
|
||||||
private RecyclerView mAttachedMediaPreview;
|
private RecyclerView mAttachedMediaPreview;
|
||||||
private ActionMenuView mMenuBar;
|
private ActionMenuView mMenuBar;
|
||||||
|
@ -892,14 +896,9 @@ public class ComposeActivity extends BaseActivity implements OnMenuItemClickList
|
||||||
if (ACTION_NAVIGATION_BACK.equals(action)) {
|
if (ACTION_NAVIGATION_BACK.equals(action)) {
|
||||||
if (mEditText.length() == 0 && !mTextChanged) {
|
if (mEditText.length() == 0 && !mTextChanged) {
|
||||||
if (!mNavigateBackPressed) {
|
if (!mNavigateBackPressed) {
|
||||||
final SuperToast toast = SuperToast.create(this, getString(R.string.press_again_to_close), Duration.SHORT);
|
Toast.makeText(this, getString(R.string.press_again_to_close), Toast.LENGTH_SHORT).show();
|
||||||
toast.setOnDismissListener(new OnDismissListener() {
|
mEditText.removeCallbacks(mBackTimeoutRunnable);
|
||||||
@Override
|
mEditText.postDelayed(mBackTimeoutRunnable, 2000);
|
||||||
public void onDismiss(View view) {
|
|
||||||
mNavigateBackPressed = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
toast.show();
|
|
||||||
} else {
|
} else {
|
||||||
onBackPressed();
|
onBackPressed();
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,10 +66,8 @@ import android.widget.ImageView;
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
import android.widget.Toast;
|
||||||
|
|
||||||
import com.github.johnpersano.supertoasts.SuperToast;
|
|
||||||
import com.github.johnpersano.supertoasts.SuperToast.Duration;
|
|
||||||
import com.github.johnpersano.supertoasts.SuperToast.OnDismissListener;
|
|
||||||
import com.squareup.otto.Subscribe;
|
import com.squareup.otto.Subscribe;
|
||||||
|
|
||||||
import org.mariotaku.sqliteqb.library.Columns.Column;
|
import org.mariotaku.sqliteqb.library.Columns.Column;
|
||||||
|
@ -199,6 +197,13 @@ public class MessagesConversationFragment extends BaseSupportFragment implements
|
||||||
private boolean mTextChanged, mQueryTextChanged;
|
private boolean mTextChanged, mQueryTextChanged;
|
||||||
private View mInputPanel;
|
private View mInputPanel;
|
||||||
|
|
||||||
|
private final Runnable mBackTimeoutRunnable = new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
mNavigateBackPressed = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void notifyTaskStateChanged(TaskStateChangedEvent event) {
|
public void notifyTaskStateChanged(TaskStateChangedEvent event) {
|
||||||
updateRefreshState();
|
updateRefreshState();
|
||||||
|
@ -585,14 +590,9 @@ public class MessagesConversationFragment extends BaseSupportFragment implements
|
||||||
if (editText.length() == 0 && !textChanged) {
|
if (editText.length() == 0 && !textChanged) {
|
||||||
final FragmentActivity activity = getActivity();
|
final FragmentActivity activity = getActivity();
|
||||||
if (!mNavigateBackPressed) {
|
if (!mNavigateBackPressed) {
|
||||||
final SuperToast toast = SuperToast.create(activity, getString(R.string.press_again_to_close), Duration.SHORT);
|
Toast.makeText(activity, R.string.press_again_to_close, Toast.LENGTH_SHORT).show();
|
||||||
toast.setOnDismissListener(new OnDismissListener() {
|
editText.removeCallbacks(mBackTimeoutRunnable);
|
||||||
@Override
|
editText.postDelayed(mBackTimeoutRunnable, 2000);
|
||||||
public void onDismiss(View view) {
|
|
||||||
mNavigateBackPressed = false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
toast.show();
|
|
||||||
mNavigateBackPressed = true;
|
mNavigateBackPressed = true;
|
||||||
} else {
|
} else {
|
||||||
activity.onBackPressed();
|
activity.onBackPressed();
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textAppearance="?android:textAppearanceSmall"
|
android:textAppearance="?android:textAppearanceSmall"
|
||||||
android:textColor="@color/light_gray"
|
android:textColor="@color/material_grey"
|
||||||
tools:text="\@username"/>
|
tools:text="\@username"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
Loading…
Reference in New Issue