1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-27 17:56:09 +00:00

Add new icons for notifications. This should solve problems pointed on issue #57

This commit is contained in:
Loic Blot 2015-05-23 18:06:29 +02:00
parent 8e4c07f924
commit 1483b9d516
8 changed files with 26 additions and 28 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 916 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 B

View File

@ -26,7 +26,7 @@ public class OCSMSNotificationManager {
public OCSMSNotificationManager(final Context context) { public OCSMSNotificationManager(final Context context) {
_context = context; _context = context;
_notification = new NrzNotification(_context, R.drawable.ic_launcher); _notification = new NrzNotification(_context, R.drawable.ic_stat_ocsms);
} }
public void setSyncProcessMsg() { public void setSyncProcessMsg() {

View File

@ -12,7 +12,7 @@ package fr.unix_experience.owncloud_sms.providers;
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details. * GNU Affero General Public License for more details.
* *
* You should have received a copy of the GNU Affero General Public License * You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
@ -25,8 +25,8 @@ import android.net.Uri;
public class SmsDataProvider extends ContentProvider { public class SmsDataProvider extends ContentProvider {
public SmsDataProvider () {} public SmsDataProvider () {}
public SmsDataProvider (Context ct) { public SmsDataProvider (final Context ct) {
super(); super();
_context = ct; _context = ct;
} }
@ -36,60 +36,58 @@ public class SmsDataProvider extends ContentProvider {
return false; return false;
} }
public Cursor query(String mailBox) { public Cursor query(final String mailBox) {
return query(Uri.parse(mailBox), return query(Uri.parse(mailBox),
new String[] { "read", "date", "address", "seen", "body", "_id", "type", }, new String[] { "read", "date", "address", "seen", "body", "_id", "type", },
null, null, null null, null, null
); );
} }
public Cursor query(String mailBox, String selection) { public Cursor query(final String mailBox, final String selection) {
return query(Uri.parse(mailBox), return query(Uri.parse(mailBox),
new String[] { "read", "date", "address", "seen", "body", "_id", "type", }, new String[] { "read", "date", "address", "seen", "body", "_id", "type", },
selection, null, null selection, null, null
); );
} }
public Cursor query(String mailBox, String selection, String[] selectionArgs) { public Cursor query(final String mailBox, final String selection, final String[] selectionArgs) {
return query(Uri.parse(mailBox), return query(Uri.parse(mailBox),
new String[] { "read", "date", "address", "seen", "body", "_id", "type", }, new String[] { "read", "date", "address", "seen", "body", "_id", "type", },
selection, selectionArgs, null selection, selectionArgs, null
); );
} }
@Override @Override
public Cursor query(Uri uri, String[] projection, String selection, public Cursor query(final Uri uri, final String[] projection, final String selection,
String[] selectionArgs, String sortOrder) { final String[] selectionArgs, final String sortOrder) {
if (_context != null && _context.getContentResolver() != null) { if (_context != null && _context.getContentResolver() != null) {
return _context.getContentResolver().query(uri, projection, selection, selectionArgs, sortOrder); return _context.getContentResolver().query(uri, projection, selection, selectionArgs, sortOrder);
} }
return null; return null;
} }
@Override @Override
public String getType(Uri uri) { public String getType(final Uri uri) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null;
} }
@Override @Override
public Uri insert(Uri uri, ContentValues values) { public Uri insert(final Uri uri, final ContentValues values) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null;
} }
@Override @Override
public int delete(Uri uri, String selection, String[] selectionArgs) { public int delete(final Uri uri, final String selection, final String[] selectionArgs) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return 0; return 0;
} }
@Override @Override
public int update(Uri uri, ContentValues values, String selection, public int update(final Uri uri, final ContentValues values, final String selection,
String[] selectionArgs) { final String[] selectionArgs) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return 0; return 0;
} }