Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Gcm settings screens #2149

Merged
merged 8 commits into from
Apr 12, 2018
Merged

Gcm settings screens #2149

merged 8 commits into from
Apr 12, 2018

Conversation

Tyuoli
Copy link
Contributor

@Tyuoli Tyuoli commented Apr 12, 2018

#2130

notifaccountenable
notifaccountdisable
notifdevicedisable
notifprivacyscreenlight

Fixing display issues for dark and black themes is in progress :
notifprivacyscreendark

Tyuoli added 4 commits April 11, 2018 17:23
Creation of a new notification privacy management screen
Handling the selection of radio button for the choice of notification privacy preferences
@Tyuoli Tyuoli requested a review from manuroe April 12, 2018 13:03
import butterknife.ButterKnife;
import im.vector.R;

public class NotificationPrivacyActivity extends RiotAppCompatActivity {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be nice to have a description of the class.

if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){
tvNeedPermission.setVisibility(View.VISIBLE);
} else{
tvNeedPermission.setVisibility(View.GONE);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tv_apps_no_permission needs to be hidden too.

} else {
switchPreference.setEnabled((null != rules) && isConnected);
switchPreference.setChecked(preferences.getBoolean(resourceText, false));
}
}
}
}

// If notifications are disable for the current user account or for the current user device
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/disable/disabled

@@ -145,6 +141,8 @@
private static final int REQUEST_PHONEBOOK_COUNTRY = 789;
private static final int REQUEST_LOCALE = 777;
private static final int REQUEST_NOTIFICATION_RINGTONE = 888;
// TODO use this constant to handle startActivityForResult for notification privacy
private static final int REQUEST_NOTIFICATION_PRIVACY = 999;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if we could skip this key and call refreshNotificationPrivacy on onResume. Is it a stupid idea?

@Tyuoli Tyuoli merged commit 5e4853f into better_gcm_notifications Apr 12, 2018
@Tyuoli Tyuoli deleted the gcm_settings_screens branch April 12, 2018 16:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants