Added icons to plugins (still unused).
BIN
res/drawable-hdpi/mpris_plugin_action.png
Normal file
After Width: | Height: | Size: 477 B |
BIN
res/drawable-hdpi/share_plugin_action.png
Normal file
After Width: | Height: | Size: 441 B |
BIN
res/drawable-hdpi/touchpad_plugin_action.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-mdpi/mpris_plugin_action.png
Normal file
After Width: | Height: | Size: 311 B |
BIN
res/drawable-mdpi/share_plugin_action.png
Normal file
After Width: | Height: | Size: 373 B |
BIN
res/drawable-mdpi/touchpad_plugin_action.png
Normal file
After Width: | Height: | Size: 841 B |
BIN
res/drawable-xhdpi/mpris_plugin_action.png
Normal file
After Width: | Height: | Size: 667 B |
BIN
res/drawable-xhdpi/share_plugin_action.png
Normal file
After Width: | Height: | Size: 684 B |
BIN
res/drawable-xhdpi/touchpad_plugin_action.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
res/drawable-xxhdpi/mpris_plugin_action.png
Normal file
After Width: | Height: | Size: 686 B |
BIN
res/drawable-xxhdpi/share_plugin_action.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
res/drawable-xxhdpi/touchpad_plugin_action.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
@ -57,11 +57,6 @@ public class BatteryPlugin extends Plugin {
|
||||
return context.getResources().getString(R.string.pref_plugin_battery_desc);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Drawable getIcon() {
|
||||
return context.getResources().getDrawable(R.drawable.icon);
|
||||
}
|
||||
|
||||
private final BroadcastReceiver receiver = new BroadcastReceiver() {
|
||||
@Override
|
||||
public void onReceive(Context context, Intent batteryIntent) {
|
||||
|
@ -51,7 +51,7 @@ public class MousePadPlugin extends Plugin {
|
||||
|
||||
@Override
|
||||
public Drawable getIcon() {
|
||||
return context.getResources().getDrawable(R.drawable.icon);
|
||||
return context.getResources().getDrawable(R.drawable.touchpad_plugin_action);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -68,7 +68,7 @@ public class MprisPlugin extends Plugin {
|
||||
|
||||
@Override
|
||||
public Drawable getIcon() {
|
||||
return context.getResources().getDrawable(R.drawable.icon);
|
||||
return context.getResources().getDrawable(R.drawable.mpris_plugin_action);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -56,11 +56,6 @@ public class PingPlugin extends Plugin {
|
||||
return context.getResources().getString(R.string.pref_plugin_ping_desc);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Drawable getIcon() {
|
||||
return context.getResources().getDrawable(R.drawable.icon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onPackageReceived(NetworkPackage np) {
|
||||
|
||||
|
@ -53,9 +53,6 @@ public class SftpPlugin extends Plugin {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Drawable getIcon() {
|
||||
return context.getResources().getDrawable(R.drawable.icon);
|
||||
}
|
||||
public boolean onCreate() {
|
||||
server.init(context, device);
|
||||
return true;
|
||||
|
@ -65,7 +65,7 @@ public class SharePlugin extends Plugin {
|
||||
|
||||
@Override
|
||||
public Drawable getIcon() {
|
||||
return context.getResources().getDrawable(R.drawable.icon);
|
||||
return context.getResources().getDrawable(R.drawable.share_plugin_action);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -62,11 +62,6 @@ public class TelephonyPlugin extends Plugin {
|
||||
return context.getResources().getString(R.string.pref_plugin_telephony_desc);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Drawable getIcon() {
|
||||
return context.getResources().getDrawable(R.drawable.icon);
|
||||
}
|
||||
|
||||
private final BroadcastReceiver receiver = new BroadcastReceiver() {
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
|