Repo created
This commit is contained in:
parent
f2d952b743
commit
3ecd57d1b2
475 changed files with 37130 additions and 2 deletions
23
srcs/juloo.keyboard2/ClipboardHistoryCheckBox.java
Normal file
23
srcs/juloo.keyboard2/ClipboardHistoryCheckBox.java
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package juloo.keyboard2;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.CheckBox;
|
||||
import android.widget.CompoundButton;
|
||||
|
||||
final class ClipboardHistoryCheckBox extends CheckBox
|
||||
implements CompoundButton.OnCheckedChangeListener
|
||||
{
|
||||
public ClipboardHistoryCheckBox(Context ctx, AttributeSet attrs)
|
||||
{
|
||||
super(ctx, attrs);
|
||||
setChecked(Config.globalConfig().clipboard_history_enabled);
|
||||
setOnCheckedChangeListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton _v, boolean isChecked)
|
||||
{
|
||||
ClipboardHistoryService.set_history_enabled(isChecked);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue