use snackbar when copying to clipboard
This commit is contained in:
parent
b8b0b73ffb
commit
4f35eb65a5
|
@ -224,8 +224,14 @@ public class CommonActivity extends ActionBarActivity implements SharedPreferenc
|
||||||
clipboard.setText(str);
|
clipboard.setText(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
Toast toast = Toast.makeText(this, R.string.text_copied_to_clipboard, Toast.LENGTH_SHORT);
|
Snackbar.make(findViewById(android.R.id.content), R.string.text_copied_to_clipboard, Snackbar.LENGTH_SHORT)
|
||||||
toast.show();
|
.setAction(R.string.dialog_close, new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setAppTheme(SharedPreferences prefs) {
|
protected void setAppTheme(SharedPreferences prefs) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user