Search in sources :

Example 1 with ShareToMultipleFragment

use of com.waz.zclient.conversation.ShareToMultipleFragment in project wire-android by wireapp.

the class ShareActivity method onRequestPermissionsResult.

@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    ShareToMultipleFragment fragment = ((ShareToMultipleFragment) getSupportFragmentManager().findFragmentByTag(ShareToMultipleFragment.TAG()));
    if (fragment != null) {
        fragment.updatePreview();
    }
}
Also used : ShareToMultipleFragment(com.waz.zclient.conversation.ShareToMultipleFragment)

Example 2 with ShareToMultipleFragment

use of com.waz.zclient.conversation.ShareToMultipleFragment in project wire-android by wireapp.

the class ShareActivity method onBackPressed.

@Override
public void onBackPressed() {
    Fragment fragment = getSupportFragmentManager().findFragmentByTag(ShareToMultipleFragment.TAG());
    if (fragment != null && ((ShareToMultipleFragment) fragment).onBackPressed()) {
        return;
    }
    super.onBackPressed();
}
Also used : ShareToMultipleFragment(com.waz.zclient.conversation.ShareToMultipleFragment) SharingConversationListManagerFragment(com.waz.zclient.pages.main.sharing.SharingConversationListManagerFragment) Fragment(android.support.v4.app.Fragment)

Aggregations

ShareToMultipleFragment (com.waz.zclient.conversation.ShareToMultipleFragment)2 Fragment (android.support.v4.app.Fragment)1 SharingConversationListManagerFragment (com.waz.zclient.pages.main.sharing.SharingConversationListManagerFragment)1